Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Side by Side Diff: LayoutTests/fast/events/touch/script-tests/document-create-touch-list.js

Issue 23522051: Get rid of custom code for Document::createTouchList() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add missing references Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 description("This tests support for the document.createTouchList API."); 1 description("This tests support for the document.createTouchList API.");
2 2
3 shouldBeTrue('"createTouchList" in document'); 3 shouldBeTrue('"createTouchList" in document');
4 4
5 // Test createTouchList with no arguments. 5 // Test createTouchList with no arguments.
6 var touchList = document.createTouchList(); 6 var touchList = document.createTouchList();
7 shouldBeNonNull("touchList"); 7 shouldBeNonNull("touchList");
8 shouldBe("touchList.length", "0"); 8 shouldBe("touchList.length", "0");
9 shouldBeNull("touchList.item(0)"); 9 shouldBeNull("touchList.item(0)");
10 shouldBeNull("touchList.item(1)"); 10 shouldBeNull("touchList.item(1)");
(...skipping 22 matching lines...) Expand all
33 33
34 document.body.dispatchEvent(evt); 34 document.body.dispatchEvent(evt);
35 } catch(e) { 35 } catch(e) {
36 testFailed("An exception was thrown: " + e.message); 36 testFailed("An exception was thrown: " + e.message);
37 } 37 }
38 38
39 // Test createTouchList with invalid arguments which throws exceptions. 39 // Test createTouchList with invalid arguments which throws exceptions.
40 try { 40 try {
41 var tl = document.createTouchList(1, 2); 41 var tl = document.createTouchList(1, 2);
42 } catch(e) { 42 } catch(e) {
43 testFailed("An exception was thrown: " + e.message); 43 testPassed("An exception was thrown: " + e.message);
44 } 44 }
45 isSuccessfullyParsed(); 45 isSuccessfullyParsed();
46 46
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698