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

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

Issue 10542126: Merge 119158 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 6 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
OLDNEW
1 description("This test ensures that WebKit doesn't crash when the document.creat eTouchList API is called with non-Touch parameters"); 1 description("This test ensures that WebKit doesn't crash when the document.creat eTouchList API is called with non-Touch parameters");
2 2
3 shouldBeNull('document.createTouchList(document).item(0)'); 3 shouldBeNull('document.createTouchList(document).item(0)');
4 shouldBeNull('document.createTouchList({"a":1}).item(0)'); 4 shouldBeNull('document.createTouchList({"a":1}).item(0)');
5 shouldBeNull('document.createTouchList(new Array(5)).item(0)'); 5 shouldBeNull('document.createTouchList(new Array(5)).item(0)');
6 shouldBeNull('document.createTouchList("string").item(0)'); 6 shouldBeNull('document.createTouchList("string").item(0)');
7 shouldBeNull('document.createTouchList(null).item(0)'); 7 shouldBeNull('document.createTouchList(null).item(0)');
8 shouldBeNull('document.createTouchList(undefined).item(0)'); 8 shouldBeNull('document.createTouchList(undefined).item(0)');
9 9
10 var t = document.createTouch(window, document.body, 12341, 60, 65, 100, 105); 10 var t = document.createTouch(window, document.body, 12341, 60, 65, 100, 105);
11 var t2 = document.createTouch(window, document.body, 12342, 50, 55, 115, 120); 11 var t2 = document.createTouch(window, document.body, 12342, 50, 55, 115, 120);
12 var tl = document.createTouchList(t, document, t2); 12 var tl = document.createTouchList(t, document, t2);
13 13
14 shouldBe('tl.length', '3'); 14 shouldBe('tl.length', '3');
15 shouldBeNonNull('tl.item(0)'); 15 shouldBeNonNull('tl.item(0)');
16 shouldBeNull('tl.item(1)'); 16 shouldBeNull('tl.item(1)');
17 shouldBeNonNull('tl.item(2)'); 17 shouldBeNonNull('tl.item(2)');
18 18
19 isSuccessfullyParsed(); 19 isSuccessfullyParsed();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698