Title: [206619] trunk/LayoutTests
Revision
206619
Author
cdu...@apple.com
Date
2016-09-29 15:16:58 -0700 (Thu, 29 Sep 2016)

Log Message

[iOS] Update Touch constructor test to cover clientX / clientY attributes
https://bugs.webkit.org/show_bug.cgi?id=162757

Reviewed by Sam Weinig.

Update Touch constructor test to cover clientX / clientY attributes.

* fast/events/touch/touch-constructor.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (206618 => 206619)


--- trunk/LayoutTests/ChangeLog	2016-09-29 22:15:57 UTC (rev 206618)
+++ trunk/LayoutTests/ChangeLog	2016-09-29 22:16:58 UTC (rev 206619)
@@ -1,5 +1,16 @@
 2016-09-29  Chris Dumez  <cdu...@apple.com>
 
+        [iOS] Update Touch constructor test to cover clientX / clientY attributes
+        https://bugs.webkit.org/show_bug.cgi?id=162757
+
+        Reviewed by Sam Weinig.
+
+        Update Touch constructor test to cover clientX / clientY attributes.
+
+        * fast/events/touch/touch-constructor.html:
+
+2016-09-29  Chris Dumez  <cdu...@apple.com>
+
         [iOS] Add test for Touch constructor
         https://bugs.webkit.org/show_bug.cgi?id=162736
         <rdar://problem/28520007>

Modified: trunk/LayoutTests/fast/events/touch/touch-constructor.html (206618 => 206619)


--- trunk/LayoutTests/fast/events/touch/touch-constructor.html	2016-09-29 22:15:57 UTC (rev 206618)
+++ trunk/LayoutTests/fast/events/touch/touch-constructor.html	2016-09-29 22:16:58 UTC (rev 206619)
@@ -45,6 +45,14 @@
         shouldBe("createdTouch.pageY", "init.pageY");
     else
         shouldBe("createdTouch.pageY", "0");
+    if (init.hasOwnProperty("clientX"))
+        shouldBe("createdTouch.clientX", "init.clientX");
+    else
+        shouldBe("createdTouch.clientX", "0");
+    if (init.hasOwnProperty("clientY"))
+        shouldBe("createdTouch.clientY", "init.clientY");
+    else
+        shouldBe("createdTouch.clientY", "0");
     if (init.hasOwnProperty("force"))
         shouldBe("createdTouch.force", "init.force");
     else
@@ -60,8 +68,8 @@
 validateTouch(touch, { identifier: 1, target: document.body, clientX: 1, clientY: 2, screenX: 3, screenY: 4, pageX: 5, pageY: 6, force: 7 });
 
 debug("");
-shouldNotThrow("touch = new Touch({ identifier: 1, target: document.body, clientX: 1.5, clientY: 2.5, screenX: 3.5, screenY: 4.5, pageX: 5.5, pageY: 6.5, force: 7.5 })");
-validateTouch(touch, { identifier: 1, target: document.body, clientX: 1.5, clientY: 2.5, screenX: 3.5, screenY: 4.5, pageX: 5.5, pageY: 6.5, force: 7.5 });
+shouldNotThrow("touch = new Touch({ identifier: 1, target: document.body, clientX: 1.5, clientY: 2.5, screenX: 3.5, screenY: 4.5, pageX: 5.5, pageY: 6.5, force: 7.5, clientX: 8.5, clientY: 9.5 })");
+validateTouch(touch, { identifier: 1, target: document.body, clientX: 1.5, clientY: 2.5, screenX: 3.5, screenY: 4.5, pageX: 5.5, pageY: 6.5, force: 7.5, clientX: 8.5, clientY: 9.5 });
 </script>
 <script src=""
 </body>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to