Clean-up touchadjustment tests.
authorallan.jensen@nokia.com <allan.jensen@nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Aug 2012 18:45:12 +0000 (18:45 +0000)
committerallan.jensen@nokia.com <allan.jensen@nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Aug 2012 18:45:12 +0000 (18:45 +0000)
commitfc535622e44af78f138f5800853ed5dd44f65a35
tree1617a033ed6df1fe93112b8a9013dc6987bf7ed5
parent750ca9c2bf8a3d610c7e7c08788bc185885f9db1
Clean-up touchadjustment tests.
https://bugs.webkit.org/show_bug.cgi?id=92869

Reviewed by Jocelyn Turcotte.

Review and cleanup the touchadjustment tests, so they are more consistent,
uses best practices and are good examples for future touchadjustment tests.

Gather commonly used functions in touchadjustment.js.
Add HTML5 doctype to ensure strict parsing rules.
Remove redundant testRunner calls, and use js-test-post.js instead.
Fix XHTMLisms in small-target-test.html
Fix ignored offset mistake in nested-touch.html that resulted in three identical tests.

* touchadjustment/big-div-expected.txt:
* touchadjustment/big-div.html:
* touchadjustment/block-testing-expected.txt:
* touchadjustment/block-testing.html:
* touchadjustment/disabled-formelements-expected.txt:
* touchadjustment/disabled-formelements.html:
* touchadjustment/event-triggered-widgets-expected.txt:
* touchadjustment/event-triggered-widgets.html:
* touchadjustment/html-label-expected.txt:
* touchadjustment/html-label.html:
* touchadjustment/iframe.html:
* touchadjustment/nested-shadow-node.html:
* touchadjustment/nested-touch-expected.txt:
* touchadjustment/nested-touch.html:
* touchadjustment/resources/inner-frame.html:
* touchadjustment/resources/touchadjustment.js: Added.
(findAbsoluteBounds):
(nodeToString):
(touchPoint):
(offsetTouchPoint):
* touchadjustment/rotated-node-expected.txt:
* touchadjustment/rotated-node.html:
* touchadjustment/scroll-offset-expected.txt:
* touchadjustment/scroll-offset.html:
* touchadjustment/search-cancel.html:
* touchadjustment/small-target-test-expected.txt:
* touchadjustment/small-target-test.html:
* touchadjustment/touch-inlines-expected.txt:
* touchadjustment/touch-inlines.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@124351 268f45cc-cd09-0410-ab3c-d52691b4dbfc
26 files changed:
LayoutTests/ChangeLog
LayoutTests/touchadjustment/big-div-expected.txt
LayoutTests/touchadjustment/big-div.html
LayoutTests/touchadjustment/block-testing-expected.txt
LayoutTests/touchadjustment/block-testing.html
LayoutTests/touchadjustment/disabled-formelements-expected.txt
LayoutTests/touchadjustment/disabled-formelements.html
LayoutTests/touchadjustment/event-triggered-widgets-expected.txt
LayoutTests/touchadjustment/event-triggered-widgets.html
LayoutTests/touchadjustment/html-label-expected.txt
LayoutTests/touchadjustment/html-label.html
LayoutTests/touchadjustment/iframe.html
LayoutTests/touchadjustment/nested-shadow-node.html
LayoutTests/touchadjustment/nested-touch-expected.txt
LayoutTests/touchadjustment/nested-touch.html
LayoutTests/touchadjustment/resources/inner-frame.html
LayoutTests/touchadjustment/resources/touchadjustment.js [new file with mode: 0644]
LayoutTests/touchadjustment/rotated-node-expected.txt
LayoutTests/touchadjustment/rotated-node.html
LayoutTests/touchadjustment/scroll-offset-expected.txt
LayoutTests/touchadjustment/scroll-offset.html
LayoutTests/touchadjustment/search-cancel.html
LayoutTests/touchadjustment/small-target-test-expected.txt
LayoutTests/touchadjustment/small-target-test.html
LayoutTests/touchadjustment/touch-inlines-expected.txt
LayoutTests/touchadjustment/touch-inlines.html