Changeset 58644 in webkit
- Timestamp:
- May 2, 2010 12:50:41 AM (14 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 8 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r58640 r58644 1 2010-05-02 Ben Murdoch <benm@google.com> 2 3 Reviewed by Darin Adler. 4 5 fast/events/touch has non-standard script test wrappers 6 https://bugs.webkit.org/show_bug.cgi?id=38084 7 8 Tidy up the touch event layout tests. Make the script-tests TEMPLATE.html 9 generate asynchronous style tests using js-test-post-function.js and move 10 the non-standard synchronous test into the resources directory. 11 12 * fast/events/touch/basic-multi-touch-events.html: Regenerate from TEMPLATE.html 13 * fast/events/touch/basic-single-touch-events.html: ditto. 14 * fast/events/touch/send-oncancel-event.html: ditto. 15 * fast/events/touch/touch-target.html: ditto. 16 * fast/events/touch/create-touch-event.html: Link to script in resources rather than 17 script-tests as this test is not generated from TEMPLATE.html. 18 * fast/events/touch/resources/create-touch-event.js: Copied from LayoutTests/fast/events/touch/script-tests/create-touch-event.js. 19 * fast/events/touch/script-tests/TEMPLATE.html: Update to generate asynchronous tests. 20 * fast/events/touch/script-tests/create-touch-event.js: Removed. 21 * fast/events/touch/script-tests/touch-target.js: Refactor to work with new wrapper 22 generated from TEMPLATE.html. 23 24 1 25 2010-05-01 Alexey Proskuryakov <ap@apple.com> 2 26 -
trunk/LayoutTests/fast/events/touch/basic-multi-touch-events.html
r54817 r58644 5 5 <script src="../../js/resources/js-test-pre.js"></script> 6 6 <script src="../../js/resources/js-test-post-function.js"></script> 7 <!-- 8 Touch tests that involve the ontouchstart, ontouchmove, ontouchend or ontouchcancel callbacks 9 should be written in an asynchronous fashion so they can be run on mobile platforms like Android. 10 This template will generate an asynchronous style test by using the js-test-post-function script. 11 You will need to invoke isSuccessfullyParsed() in your test script when the test completes. 12 --> 7 13 </head> 8 14 <body> … … 10 16 <div id="console"></div> 11 17 <script src="script-tests/basic-multi-touch-events.js"></script> 12 13 18 </body> 14 19 </html> -
trunk/LayoutTests/fast/events/touch/basic-single-touch-events.html
r54817 r58644 5 5 <script src="../../js/resources/js-test-pre.js"></script> 6 6 <script src="../../js/resources/js-test-post-function.js"></script> 7 <!-- 8 Touch tests that involve the ontouchstart, ontouchmove, ontouchend or ontouchcancel callbacks 9 should be written in an asynchronous fashion so they can be run on mobile platforms like Android. 10 This template will generate an asynchronous style test by using the js-test-post-function script. 11 You will need to invoke isSuccessfullyParsed() in your test script when the test completes. 12 --> 7 13 </head> 8 14 <body> -
trunk/LayoutTests/fast/events/touch/create-touch-event.html
r54253 r58644 8 8 <p id="description"></p> 9 9 <div id="console"></div> 10 <script src=" script-tests/create-touch-event.js"></script>10 <script src="resources/create-touch-event.js"></script> 11 11 <script src="../../js/resources/js-test-post.js"></script> 12 12 </body> -
trunk/LayoutTests/fast/events/touch/script-tests/TEMPLATE.html
r54253 r58644 4 4 <link rel="stylesheet" href="../../js/resources/js-test-style.css"> 5 5 <script src="../../js/resources/js-test-pre.js"></script> 6 <script src="../../js/resources/js-test-post-function.js"></script> 7 <!-- 8 Touch tests that involve the ontouchstart, ontouchmove, ontouchend or ontouchcancel callbacks 9 should be written in an asynchronous fashion so they can be run on mobile platforms like Android. 10 This template will generate an asynchronous style test by using the js-test-post-function script. 11 You will need to invoke isSuccessfullyParsed() in your test script when the test completes. 12 --> 6 13 </head> 7 14 <body> … … 9 16 <div id="console"></div> 10 17 <script src="YOUR_JS_FILE_HERE"></script> 11 <script src="../../js/resources/js-test-post.js"></script>12 18 </body> 13 19 </html> -
trunk/LayoutTests/fast/events/touch/script-tests/touch-target.js
r55230 r58644 1 var targetsDiv = document.createElement("div"); 2 targetsDiv.id = "targetsDiv"; 3 1 4 var div1 = document.createElement("div"); 2 5 div1.id = "targetA"; … … 14 17 var touchMoveCount = 0; 15 18 16 document.getElementById('targetsDiv').appendChild(div1); 17 document.getElementById('targetsDiv').appendChild(document.createElement('br')); 18 document.getElementById('targetsDiv').appendChild(div2); 19 document.body.insertBefore(targetsDiv, document.getElementById('console')); 20 targetsDiv.appendChild(div1); 21 targetsDiv.appendChild(document.createElement('br')); 22 targetsDiv.appendChild(div2); 19 23 20 24 function touchStartHandler() -
trunk/LayoutTests/fast/events/touch/send-oncancel-event.html
r58058 r58644 4 4 <link rel="stylesheet" href="../../js/resources/js-test-style.css"> 5 5 <script src="../../js/resources/js-test-pre.js"></script> 6 <script src="../../js/resources/js-test-post-function.js"></script> 7 <!-- 8 Touch tests that involve the ontouchstart, ontouchmove, ontouchend or ontouchcancel callbacks 9 should be written in an asynchronous fashion so they can be run on mobile platforms like Android. 10 This template will generate an asynchronous style test by using the js-test-post-function script. 11 You will need to invoke isSuccessfullyParsed() in your test script when the test completes. 12 --> 6 13 </head> 7 14 <body> … … 9 16 <div id="console"></div> 10 17 <script src="script-tests/send-oncancel-event.js"></script> 11 <script src="../../js/resources/js-test-post-function.js"></script>12 18 </body> 13 19 </html> -
trunk/LayoutTests/fast/events/touch/touch-target.html
r55230 r58644 5 5 <script src="../../js/resources/js-test-pre.js"></script> 6 6 <script src="../../js/resources/js-test-post-function.js"></script> 7 <!-- 8 Touch tests that involve the ontouchstart, ontouchmove, ontouchend or ontouchcancel callbacks 9 should be written in an asynchronous fashion so they can be run on mobile platforms like Android. 10 This template will generate an asynchronous style test by using the js-test-post-function script. 11 You will need to invoke isSuccessfullyParsed() in your test script when the test completes. 12 --> 7 13 </head> 8 14 <body> 9 15 <p id="description"></p> 10 <div id="targetsDiv"></div>11 16 <div id="console"></div> 12 17 <script src="script-tests/touch-target.js"></script>
Note: See TracChangeset
for help on using the changeset viewer.