Move the TouchList.item(too_big) test per request from Cathy.
authorArt Barstow <art.barstow@nokia.com>
Thu, 28 Mar 2013 12:38:05 -0400
changeset 197 59a6fc3c0e0b
parent 196 5ad5e906fc23
child 198 de8bd158db7a
Move the TouchList.item(too_big) test per request from Cathy.
tests/touch-events-v1/submissions/Nokia/create-touch-touchlist.html
--- 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();
 	}