Add the new TouchList.item(too_big) test that Art submitted yesterday (in the submissions/Nokia/ folder).
authorArt Barstow <art.barstow@nokia.com>
Fri, 29 Mar 2013 16:04:08 -0400
changeset 199 65de4c56206e
parent 198 de8bd158db7a
child 213 c8eccbb92b31
Add the new TouchList.item(too_big) test that Art submitted yesterday (in the submissions/Nokia/ folder).
tests/touch-events-v1/approved/create-touch-touchlist.html
--- a/tests/touch-events-v1/approved/create-touch-touchlist.html	Thu Mar 28 13:10:59 2013 -0400
+++ b/tests/touch-events-v1/approved/create-touch-touchlist.html	Fri Mar 29 16:04:08 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) {