test/touchevents/single-touch.html
changeset 43 fc6abcf8b74c
parent 42 49296bde5e04
child 44 ad7715ddbcda
--- a/test/touchevents/single-touch.html	Sun Apr 24 21:28:56 2011 -0700
+++ b/test/touchevents/single-touch.html	Sun Apr 24 21:29:55 2011 -0700
@@ -17,6 +17,11 @@
         touchstart_received = true;
 
         test(function() {
+          assert_true(ev.target instanceof Element, "target must be an Element.");
+          assert_equals(ev.relatedTarget, null, "relatedTarget must be null for touchstart event.");
+        }, "TouchEvent target attributes are correct.");
+
+        test(function() {
           assert_equals(ev.touches.length, 1, "One touch point.");
           assert_equals(ev.changedTouches.length, 1, "One changed touch point.");
           assert_equals(ev.targetTouches.length, 1, "One target touch point.");