1description("This test ensures that WebKit doesn't crash when the document.createTouchList API is called with non-Touch parameters"); 2 3shouldBeNull('document.createTouchList(document).item(0)'); 4shouldBeNull('document.createTouchList({"a":1}).item(0)'); 5shouldBeNull('document.createTouchList(new Array(5)).item(0)'); 6shouldBeNull('document.createTouchList("string").item(0)'); 7shouldBeNull('document.createTouchList(null).item(0)'); 8shouldBeNull('document.createTouchList(undefined).item(0)'); 9 10var t = document.createTouch(window, document.body, 12341, 60, 65, 100, 105); 11var t2 = document.createTouch(window, document.body, 12342, 50, 55, 115, 120); 12var tl = document.createTouchList(t, document, t2); 13 14shouldBe('tl.length', '3'); 15shouldBeNonNull('tl.item(0)'); 16shouldBeNull('tl.item(1)'); 17shouldBeNonNull('tl.item(2)'); 18 19successfullyParsed = true; 20isSuccessfullyParsed(); 21