Add a test for interface names.
authorMatt Brubeck <mbrubeck@mozilla.com>
Tue, 26 Apr 2011 10:09:28 -0700
changeset 50 c030af565635
parent 49 85f4245b42f8
child 51 fdd08cbcf438
Add a test for interface names.
test/touchevents/single-touch.html
--- a/test/touchevents/single-touch.html	Tue Apr 26 09:33:08 2011 -0700
+++ b/test/touchevents/single-touch.html	Tue Apr 26 10:09:28 2011 -0700
@@ -39,6 +39,12 @@
         var tt = ev.targetTouches[0];
 
         test(function() {
+          assert_true(ev instanceof TouchEvent, "Event is a TouchEvent.");
+          assert_true(ev.touches instanceof TouchList, "touches is a TouchList");
+          assert_true(t instanceof Touch, "touches[0] is a Touch");
+        }, "Interface names are correct.");
+
+        test(function() {
           assert_equals(t.identifier, 0, "touches identifier is 0.");
           assert_equals(ct.identifier, 0, "changedTouches identifier is 0.");
           assert_equals(tt.identifier, 0, "targetTouches identifier is 0.");