Move the TouchList.item(too_big) test per request from Cathy.
--- a/tests/touch-events-v1/submissions/Nokia/create-touch-touchlist.html Thu Mar 28 09:01:23 2013 -0400
+++ b/tests/touch-events-v1/submissions/Nokia/create-touch-touchlist.html Thu Mar 28 12:38:05 2013 -0400
@@ -103,6 +103,11 @@
for (var i=0; i < tl.length; i++) {
check_Touch_object(tl.item(i));
}
+ // TouchList.item(x) should return null if x is >= TouchList.length
+ test(function() {
+ var t = tl.item(tl.length);
+ assert_equals(t, null, "TouchList.item(TouchList.length) must return null");
+ }, "TouchList.item returns null if the index is >= the length of the list");
}
function check_touch_clientXY(touch) {
@@ -156,14 +161,6 @@
if (touchList)
check_TouchList_object(touchList);
- // TouchList.item(x) should return null if x is >= TouchList.length
- if (touchList) {
- test(function() {
- touch1 = touchList.item(touchList.length);
- assert_equals(touch1, null, "touchList.item(touchList.length) must return null");
- }, "TouchList.item returns null if the index is >= the length of the list");
- }
-
target0.innerHTML = "Test complete."
done();
}