Added a new tests: TouchList.item(index) returns null if index is >= the length of the touch list
authorArt Barstow <art.barstow@nokia.com>
Thu, 28 Mar 2013 09:01:23 -0400
changeset 196 5ad5e906fc23
parent 195 de5bcc4200eb
child 197 59a6fc3c0e0b
Added a new tests: TouchList.item(index) returns null if index is >= the length of the touch list
tests/touch-events-v1/submissions/Nokia/create-touch-touchlist.html
--- a/tests/touch-events-v1/submissions/Nokia/create-touch-touchlist.html	Thu Mar 28 08:32:17 2013 -0400
+++ b/tests/touch-events-v1/submissions/Nokia/create-touch-touchlist.html	Thu Mar 28 09:01:23 2013 -0400
@@ -156,6 +156,14 @@
 		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();
 	}