Updated single-touch test file to remove createTouch and createTouchList tests,
authorCathy Chan <cathy.chan@nokia.com>
Tue, 22 Jan 2013 13:52:20 -0500
changeset 179 7cd6d8c1e3bc
parent 178 67530967ba81
child 182 6db1e9aed6f5
Updated single-touch test file to remove createTouch and createTouchList tests,
which are now covered in create-touch-touchlist test file.
tests/touch-events-v1/approved/single-touch.html
--- a/tests/touch-events-v1/approved/single-touch.html	Tue Jan 22 13:42:26 2013 -0500
+++ b/tests/touch-events-v1/approved/single-touch.html	Tue Jan 22 13:52:20 2013 -0500
@@ -13,7 +13,7 @@
 -->
 
 <head>
-  <title>Touch Events tests (based on Matt Brubeck's single-touch tests)</title>
+  <title>Touch Events Single Touch Tests</title>
   <meta name="viewport" content="width=device-width">
   <script src="/resources/testharness.js"></script>
   <script>
@@ -173,34 +173,6 @@
       var invalid_touchmove_received = false;
       var touchstart_identifier;
       
-      var touch;
-      test(function() {
-        touch = document.createTouch(window, target0, 42, 15, 20, 35, 40);
-        assert_equals(touch.target, target0, "touch.target is target0");
-        assert_equals(touch.identifier, 42, "touch.identifier is requested value");
-        assert_equals(touch.pageX, 15, "touch.pageX is requested value");
-        assert_equals(touch.pageY, 20, "touch.pageY is requested value");
-        check_touch_clientXY(touch);
-        assert_equals(touch.screenX, 35, "touch.screenX is requested value");
-        assert_equals(touch.screenY, 40, "touch.screenY is requested value");
-      }, "document.createTouch exists and creates a Touch object with requested properties");
-
-      var touchList;
-      test(function() {
-        touchList = document.createTouchList(touch);
-        assert_equals(touchList.length, 1, "touchList.length is 1");
-        assert_equals(touchList.item(0), touch, "touchList.item(0) is input touch");
-      }, "document.createTouchList exists and correctly creates a TouchList from a single Touch");
-
-      if (touchList)
-        check_TouchList_object(touchList);
-
-      test(function() {
-        touchList = document.createTouchList([touch]);
-        assert_equals(touchList.length, 1, "touchList.length is 1");
-        assert_equals(touchList.item(0), touch, "touchList.item(0) is input touch");
-      }, "document.createTouchList exists and correctly creates a TouchList from a Touch array");
-      
       on_event(target0, "touchstart", function onTouchStart(ev) {
         ev.preventDefault();