Title: [264254] trunk/LayoutTests/imported/w3c
Revision
264254
Author
[email protected]
Date
2020-07-10 20:02:12 -0700 (Fri, 10 Jul 2020)

Log Message

Resync web-platform-tests/touch-events from upstream
https://bugs.webkit.org/show_bug.cgi?id=214209

Reviewed by Darin Adler.

Resync web-platform-tests/touch-events from upstream 859527a3513029d2.

* web-platform-tests/touch-events/META.yml: Added.
* web-platform-tests/touch-events/OWNERS: Removed.
* web-platform-tests/touch-events/create-touch-touchlist-expected.txt: Removed.
* web-platform-tests/touch-events/create-touch-touchlist.html: Removed.
* web-platform-tests/touch-events/historical.html:
* web-platform-tests/touch-events/idlharness.window-expected.txt: Added.
* web-platform-tests/touch-events/idlharness.window.html: Added.
* web-platform-tests/touch-events/idlharness.window.js: Added.
* web-platform-tests/touch-events/support/touch.js: Renamed from LayoutTests/imported/w3c/web-platform-tests/touch-events/touch-support.js.
* web-platform-tests/touch-events/support/w3c-import.log: Added.
* web-platform-tests/touch-events/touch-touchevent-constructor.html:
* web-platform-tests/touch-events/w3c-import.log:

Modified Paths

Added Paths

Removed Paths

Diff

Modified: trunk/LayoutTests/imported/w3c/ChangeLog (264253 => 264254)


--- trunk/LayoutTests/imported/w3c/ChangeLog	2020-07-11 02:37:25 UTC (rev 264253)
+++ trunk/LayoutTests/imported/w3c/ChangeLog	2020-07-11 03:02:12 UTC (rev 264254)
@@ -1,5 +1,27 @@
 2020-07-10  Chris Dumez  <[email protected]>
 
+        Resync web-platform-tests/touch-events from upstream
+        https://bugs.webkit.org/show_bug.cgi?id=214209
+
+        Reviewed by Darin Adler.
+
+        Resync web-platform-tests/touch-events from upstream 859527a3513029d2.
+
+        * web-platform-tests/touch-events/META.yml: Added.
+        * web-platform-tests/touch-events/OWNERS: Removed.
+        * web-platform-tests/touch-events/create-touch-touchlist-expected.txt: Removed.
+        * web-platform-tests/touch-events/create-touch-touchlist.html: Removed.
+        * web-platform-tests/touch-events/historical.html:
+        * web-platform-tests/touch-events/idlharness.window-expected.txt: Added.
+        * web-platform-tests/touch-events/idlharness.window.html: Added.
+        * web-platform-tests/touch-events/idlharness.window.js: Added.
+        * web-platform-tests/touch-events/support/touch.js: Renamed from LayoutTests/imported/w3c/web-platform-tests/touch-events/touch-support.js.
+        * web-platform-tests/touch-events/support/w3c-import.log: Added.
+        * web-platform-tests/touch-events/touch-touchevent-constructor.html:
+        * web-platform-tests/touch-events/w3c-import.log:
+
+2020-07-10  Chris Dumez  <[email protected]>
+
         Resync web-platform-tests/eventsource from upstream
         https://bugs.webkit.org/show_bug.cgi?id=214203
 

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/META.yml (0 => 264254)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/META.yml	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/META.yml	2020-07-11 03:02:12 UTC (rev 264254)
@@ -0,0 +1,5 @@
+spec: https://w3c.github.io/touch-events/
+suggested_reviewers:
+  - jtangelder
+  - zqzhang
+  - cynthia

Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/OWNERS (264253 => 264254)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/OWNERS	2020-07-11 02:37:25 UTC (rev 264253)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/OWNERS	2020-07-11 03:02:12 UTC (rev 264254)
@@ -1,3 +0,0 @@
-@jtangelder
-@zqzhang
-@cynthia

Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/create-touch-touchlist-expected.txt (264253 => 264254)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/create-touch-touchlist-expected.txt	2020-07-11 02:37:25 UTC (rev 264253)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/create-touch-touchlist-expected.txt	2020-07-11 03:02:12 UTC (rev 264254)
@@ -1,6 +0,0 @@
-
-PASS document.createTouch exists and creates a Touch object with requested properties 
-PASS document.createTouchList exists and correctly creates a TouchList from zero Touch objects 
-FAIL document.createTouchList exists and correctly creates a TouchList from a single Touch assert_true: radiusX attribute in Touch object expected true got false
-FAIL document.createTouchList exists and correctly creates a TouchList from two Touch objects assert_true: radiusX attribute in Touch object expected true got false
-

Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/create-touch-touchlist.html (264253 => 264254)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/create-touch-touchlist.html	2020-07-11 02:37:25 UTC (rev 264253)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/create-touch-touchlist.html	2020-07-11 03:02:12 UTC (rev 264254)
@@ -1,50 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-<title>document.createTouch and document.createTouchList Tests</title>
-<script src=""
-<script src=""
-<script src=""
-<body>
-<div id="target0"></div>
-<script>
-test(function() {
-    var testTarget = document.getElementById('target0');
-    var touch1 = document.createTouch(window, testTarget, 42, 15, 20, 35, 40);
-    assert_equals(touch1.target, testTarget, "touch.target is target0");
-    assert_equals(touch1.identifier, 42, "touch.identifier is requested value");
-    assert_equals(touch1.pageX, 15, "touch.pageX is requested value");
-    assert_equals(touch1.pageY, 20, "touch.pageY is requested value");
-    assert_equals(touch1.screenX, 35, "touch.screenX is requested value");
-    assert_equals(touch1.screenY, 40, "touch.screenY is requested value");
-}, "document.createTouch exists and creates a Touch object with requested properties");
-
-test(function() {
-    var touchList = document.createTouchList();
-    assert_equals(touchList.length, 0, "touchList.length is 0");
-    check_TouchList_object(touchList);
-}, "document.createTouchList exists and correctly creates a TouchList from zero Touch objects");
-
-test(function() {
-    var testTarget = document.getElementById('target0');
-    var touch1 = document.createTouch(window, testTarget, 42, 15, 20, 35, 40);
-    var touchList = document.createTouchList(touch1);
-    assert_equals(touchList.length, 1, "touchList.length is 1");
-    assert_equals(touchList.item(0), touch1, "touchList.item(0) is touch1");
-    check_TouchList_object(touchList);
-}, "document.createTouchList exists and correctly creates a TouchList from a single Touch");
-
-test(function() {
-    var testTarget = document.getElementById('target0');
-    var touch1 = document.createTouch(window, testTarget, 42, 15, 20, 35, 40);
-    var touch2 = document.createTouch(window, target0, 44, 25, 30, 45, 50);
-    var touchList = document.createTouchList(touch1, touch2);
-    assert_equals(touchList.length, 2, "touchList.length is 2");
-    assert_equals(touchList.item(0), touch1, "touchList.item(0) is touch1");
-    assert_equals(touchList.item(1), touch2, "touchList.item(1) is touch2");
-    check_TouchList_object(touchList);
-}, "document.createTouchList exists and correctly creates a TouchList from two Touch objects");
-</script>
-</head>
-</body>
-</html>

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/historical.html (264253 => 264254)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/historical.html	2020-07-11 02:37:25 UTC (rev 264253)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/historical.html	2020-07-11 03:02:12 UTC (rev 264254)
@@ -3,7 +3,7 @@
 <title>Historical touch events features</title>
 <script src=""
 <script src=""
-<script src=""
+<script src=""
 <body>
 <script>
 [
@@ -16,7 +16,7 @@
     assert_false(name in Touch.prototype,
                  "Should not be supported on the prototype");
 
-    var touch = document.createTouch(window, window, 0, 0, 0, 0, 0);
+    var touch = new Touch({identifier: 12341, target:document.body});
     assert_false(name in touch,
                  "Should not be supported on the instance");
   }, "Touch::" + name);
@@ -26,7 +26,8 @@
   assert_false("identifiedTouch" in TouchList.prototype,
                "Should not be supported on the prototype");
 
-  var touchList = document.createTouchList();
+  var touchevent = new TouchEvent("touchstart", {});
+  var touchList = touchevent.touches;
   assert_false("identifiedTouch" in touchList,
                "Should not be supported on the instance");
 }, "TouchList::identifiedTouch");
@@ -39,4 +40,20 @@
   assert_false("initTouchEvent" in touchEvent,
                "Should not be supported on the instance");
 }, "TouchEvent::initTouchEvent");
+
+test(function() {
+  assert_false("createTouch" in Document.prototype,
+               "Should not be supported on the prototype");
+
+  assert_false("createTouch" in document,
+               "Should not be supported on the instance");
+}, "Document::createTouch");
+
+test(function() {
+  assert_false("createTouchList" in Document.prototype,
+               "Should not be supported on the prototype");
+
+  assert_false("createTouchList" in document,
+               "Should not be supported on the instance");
+}, "Document::createTouchList");
 </script>

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/idlharness.window-expected.txt (0 => 264254)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/idlharness.window-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/idlharness.window-expected.txt	2020-07-11 03:02:12 UTC (rev 264254)
@@ -0,0 +1,125 @@
+
+PASS idl_test setup 
+PASS idl_test validation 
+PASS Partial interface mixin GlobalEventHandlers: original interface mixin defined 
+PASS Partial interface mixin GlobalEventHandlers: member names are unique 
+PASS Partial interface UIEvent: member names are unique 
+PASS Partial interface Document: member names are unique 
+PASS Partial interface Document[2]: member names are unique 
+PASS Partial interface Window: member names are unique 
+PASS Document includes GlobalEventHandlers: member names are unique 
+PASS Document includes DocumentAndElementEventHandlers: member names are unique 
+PASS Document includes NonElementParentNode: member names are unique 
+PASS Document includes ParentNode: member names are unique 
+PASS Document includes XPathEvaluatorBase: member names are unique 
+PASS HTMLElement includes GlobalEventHandlers: member names are unique 
+PASS HTMLElement includes DocumentAndElementEventHandlers: member names are unique 
+PASS HTMLElement includes ElementContentEditable: member names are unique 
+PASS HTMLElement includes HTMLOrSVGElement: member names are unique 
+PASS Window includes GlobalEventHandlers: member names are unique 
+PASS Window includes WindowEventHandlers: member names are unique 
+PASS Window includes WindowOrWorkerGlobalScope: member names are unique 
+PASS Window includes AnimationFrameProvider: member names are unique 
+PASS Window includes WindowSessionStorage: member names are unique 
+PASS Window includes WindowLocalStorage: member names are unique 
+PASS Element includes ParentNode: member names are unique 
+PASS Element includes NonDocumentTypeChildNode: member names are unique 
+PASS Element includes ChildNode: member names are unique 
+PASS Element includes Slottable: member names are unique 
+FAIL Touch interface: existence and properties of interface object assert_own_property: self does not have own property "Touch" expected property "Touch" missing
+FAIL Touch interface object length assert_own_property: self does not have own property "Touch" expected property "Touch" missing
+FAIL Touch interface object name assert_own_property: self does not have own property "Touch" expected property "Touch" missing
+FAIL Touch interface: existence and properties of interface prototype object assert_own_property: self does not have own property "Touch" expected property "Touch" missing
+FAIL Touch interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "Touch" expected property "Touch" missing
+FAIL Touch interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "Touch" expected property "Touch" missing
+FAIL Touch interface: attribute identifier assert_own_property: self does not have own property "Touch" expected property "Touch" missing
+FAIL Touch interface: attribute target assert_own_property: self does not have own property "Touch" expected property "Touch" missing
+FAIL Touch interface: attribute screenX assert_own_property: self does not have own property "Touch" expected property "Touch" missing
+FAIL Touch interface: attribute screenY assert_own_property: self does not have own property "Touch" expected property "Touch" missing
+FAIL Touch interface: attribute clientX assert_own_property: self does not have own property "Touch" expected property "Touch" missing
+FAIL Touch interface: attribute clientY assert_own_property: self does not have own property "Touch" expected property "Touch" missing
+FAIL Touch interface: attribute pageX assert_own_property: self does not have own property "Touch" expected property "Touch" missing
+FAIL Touch interface: attribute pageY assert_own_property: self does not have own property "Touch" expected property "Touch" missing
+FAIL Touch interface: attribute radiusX assert_own_property: self does not have own property "Touch" expected property "Touch" missing
+FAIL Touch interface: attribute radiusY assert_own_property: self does not have own property "Touch" expected property "Touch" missing
+FAIL Touch interface: attribute rotationAngle assert_own_property: self does not have own property "Touch" expected property "Touch" missing
+FAIL Touch interface: attribute force assert_own_property: self does not have own property "Touch" expected property "Touch" missing
+FAIL Touch interface: attribute altitudeAngle assert_own_property: self does not have own property "Touch" expected property "Touch" missing
+FAIL Touch interface: attribute azimuthAngle assert_own_property: self does not have own property "Touch" expected property "Touch" missing
+FAIL Touch interface: attribute touchType assert_own_property: self does not have own property "Touch" expected property "Touch" missing
+FAIL Touch must be primary interface of new Touch({identifier: 1, target: document}) assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: Touch"
+FAIL Stringification of new Touch({identifier: 1, target: document}) assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: Touch"
+FAIL Touch interface: new Touch({identifier: 1, target: document}) must inherit property "identifier" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: Touch"
+FAIL Touch interface: new Touch({identifier: 1, target: document}) must inherit property "target" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: Touch"
+FAIL Touch interface: new Touch({identifier: 1, target: document}) must inherit property "screenX" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: Touch"
+FAIL Touch interface: new Touch({identifier: 1, target: document}) must inherit property "screenY" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: Touch"
+FAIL Touch interface: new Touch({identifier: 1, target: document}) must inherit property "clientX" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: Touch"
+FAIL Touch interface: new Touch({identifier: 1, target: document}) must inherit property "clientY" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: Touch"
+FAIL Touch interface: new Touch({identifier: 1, target: document}) must inherit property "pageX" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: Touch"
+FAIL Touch interface: new Touch({identifier: 1, target: document}) must inherit property "pageY" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: Touch"
+FAIL Touch interface: new Touch({identifier: 1, target: document}) must inherit property "radiusX" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: Touch"
+FAIL Touch interface: new Touch({identifier: 1, target: document}) must inherit property "radiusY" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: Touch"
+FAIL Touch interface: new Touch({identifier: 1, target: document}) must inherit property "rotationAngle" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: Touch"
+FAIL Touch interface: new Touch({identifier: 1, target: document}) must inherit property "force" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: Touch"
+FAIL Touch interface: new Touch({identifier: 1, target: document}) must inherit property "altitudeAngle" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: Touch"
+FAIL Touch interface: new Touch({identifier: 1, target: document}) must inherit property "azimuthAngle" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: Touch"
+FAIL Touch interface: new Touch({identifier: 1, target: document}) must inherit property "touchType" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: Touch"
+FAIL TouchList interface: existence and properties of interface object assert_own_property: self does not have own property "TouchList" expected property "TouchList" missing
+FAIL TouchList interface object length assert_own_property: self does not have own property "TouchList" expected property "TouchList" missing
+FAIL TouchList interface object name assert_own_property: self does not have own property "TouchList" expected property "TouchList" missing
+FAIL TouchList interface: existence and properties of interface prototype object assert_own_property: self does not have own property "TouchList" expected property "TouchList" missing
+FAIL TouchList interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "TouchList" expected property "TouchList" missing
+FAIL TouchList interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "TouchList" expected property "TouchList" missing
+FAIL TouchList interface: attribute length assert_own_property: self does not have own property "TouchList" expected property "TouchList" missing
+FAIL TouchList interface: operation item(unsigned long) assert_own_property: self does not have own property "TouchList" expected property "TouchList" missing
+FAIL TouchEvent interface: existence and properties of interface object assert_own_property: self does not have own property "TouchEvent" expected property "TouchEvent" missing
+FAIL TouchEvent interface object length assert_own_property: self does not have own property "TouchEvent" expected property "TouchEvent" missing
+FAIL TouchEvent interface object name assert_own_property: self does not have own property "TouchEvent" expected property "TouchEvent" missing
+FAIL TouchEvent interface: existence and properties of interface prototype object assert_own_property: self does not have own property "TouchEvent" expected property "TouchEvent" missing
+FAIL TouchEvent interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "TouchEvent" expected property "TouchEvent" missing
+FAIL TouchEvent interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "TouchEvent" expected property "TouchEvent" missing
+FAIL TouchEvent interface: attribute touches assert_own_property: self does not have own property "TouchEvent" expected property "TouchEvent" missing
+FAIL TouchEvent interface: attribute targetTouches assert_own_property: self does not have own property "TouchEvent" expected property "TouchEvent" missing
+FAIL TouchEvent interface: attribute changedTouches assert_own_property: self does not have own property "TouchEvent" expected property "TouchEvent" missing
+FAIL TouchEvent interface: attribute altKey assert_own_property: self does not have own property "TouchEvent" expected property "TouchEvent" missing
+FAIL TouchEvent interface: attribute metaKey assert_own_property: self does not have own property "TouchEvent" expected property "TouchEvent" missing
+FAIL TouchEvent interface: attribute ctrlKey assert_own_property: self does not have own property "TouchEvent" expected property "TouchEvent" missing
+FAIL TouchEvent interface: attribute shiftKey assert_own_property: self does not have own property "TouchEvent" expected property "TouchEvent" missing
+FAIL TouchEvent must be primary interface of new TouchEvent("name") assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: TouchEvent"
+FAIL Stringification of new TouchEvent("name") assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: TouchEvent"
+FAIL TouchEvent interface: new TouchEvent("name") must inherit property "touches" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: TouchEvent"
+FAIL TouchEvent interface: new TouchEvent("name") must inherit property "targetTouches" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: TouchEvent"
+FAIL TouchEvent interface: new TouchEvent("name") must inherit property "changedTouches" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: TouchEvent"
+FAIL TouchEvent interface: new TouchEvent("name") must inherit property "altKey" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: TouchEvent"
+FAIL TouchEvent interface: new TouchEvent("name") must inherit property "metaKey" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: TouchEvent"
+FAIL TouchEvent interface: new TouchEvent("name") must inherit property "ctrlKey" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: TouchEvent"
+FAIL TouchEvent interface: new TouchEvent("name") must inherit property "shiftKey" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: TouchEvent"
+FAIL HTMLElement interface: attribute ontouchstart assert_true: The prototype object must have a property "ontouchstart" expected true got false
+FAIL HTMLElement interface: attribute ontouchend assert_true: The prototype object must have a property "ontouchend" expected true got false
+FAIL HTMLElement interface: attribute ontouchmove assert_true: The prototype object must have a property "ontouchmove" expected true got false
+FAIL HTMLElement interface: attribute ontouchcancel assert_true: The prototype object must have a property "ontouchcancel" expected true got false
+FAIL Window interface: attribute ontouchstart assert_own_property: The global object must have a property "ontouchstart" expected property "ontouchstart" missing
+FAIL Window interface: attribute ontouchend assert_own_property: The global object must have a property "ontouchend" expected property "ontouchend" missing
+FAIL Window interface: attribute ontouchmove assert_own_property: The global object must have a property "ontouchmove" expected property "ontouchmove" missing
+FAIL Window interface: attribute ontouchcancel assert_own_property: The global object must have a property "ontouchcancel" expected property "ontouchcancel" missing
+FAIL GlobalEventHandlers interface: window must inherit property "ontouchstart" with the proper type assert_inherits: property "ontouchstart" not found in prototype chain
+FAIL GlobalEventHandlers interface: window must inherit property "ontouchend" with the proper type assert_inherits: property "ontouchend" not found in prototype chain
+FAIL GlobalEventHandlers interface: window must inherit property "ontouchmove" with the proper type assert_inherits: property "ontouchmove" not found in prototype chain
+FAIL GlobalEventHandlers interface: window must inherit property "ontouchcancel" with the proper type assert_inherits: property "ontouchcancel" not found in prototype chain
+FAIL GlobalEventHandlers interface: document must inherit property "ontouchstart" with the proper type assert_inherits: property "ontouchstart" not found in prototype chain
+FAIL GlobalEventHandlers interface: document must inherit property "ontouchend" with the proper type assert_inherits: property "ontouchend" not found in prototype chain
+FAIL GlobalEventHandlers interface: document must inherit property "ontouchmove" with the proper type assert_inherits: property "ontouchmove" not found in prototype chain
+FAIL GlobalEventHandlers interface: document must inherit property "ontouchcancel" with the proper type assert_inherits: property "ontouchcancel" not found in prototype chain
+FAIL GlobalEventHandlers interface: document.body must inherit property "ontouchstart" with the proper type assert_inherits: property "ontouchstart" not found in prototype chain
+FAIL GlobalEventHandlers interface: document.body must inherit property "ontouchend" with the proper type assert_inherits: property "ontouchend" not found in prototype chain
+FAIL GlobalEventHandlers interface: document.body must inherit property "ontouchmove" with the proper type assert_inherits: property "ontouchmove" not found in prototype chain
+FAIL GlobalEventHandlers interface: document.body must inherit property "ontouchcancel" with the proper type assert_inherits: property "ontouchcancel" not found in prototype chain
+FAIL Document interface: attribute ontouchstart assert_true: The prototype object must have a property "ontouchstart" expected true got false
+FAIL Document interface: attribute ontouchend assert_true: The prototype object must have a property "ontouchend" expected true got false
+FAIL Document interface: attribute ontouchmove assert_true: The prototype object must have a property "ontouchmove" expected true got false
+FAIL Document interface: attribute ontouchcancel assert_true: The prototype object must have a property "ontouchcancel" expected true got false
+FAIL Document interface: document must inherit property "ontouchstart" with the proper type assert_inherits: property "ontouchstart" not found in prototype chain
+FAIL Document interface: document must inherit property "ontouchend" with the proper type assert_inherits: property "ontouchend" not found in prototype chain
+FAIL Document interface: document must inherit property "ontouchmove" with the proper type assert_inherits: property "ontouchmove" not found in prototype chain
+FAIL Document interface: document must inherit property "ontouchcancel" with the proper type assert_inherits: property "ontouchcancel" not found in prototype chain
+

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/idlharness.window.html (0 => 264254)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/idlharness.window.html	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/idlharness.window.html	2020-07-11 03:02:12 UTC (rev 264254)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/idlharness.window.js (0 => 264254)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/idlharness.window.js	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/idlharness.window.js	2020-07-11 03:02:12 UTC (rev 264254)
@@ -0,0 +1,19 @@
+// META: script=/resources/WebIDLParser.js
+// META: script=/resources/idlharness.js
+
+// https://w3c.github.io/touch-events/
+
+'use strict';
+
+idl_test(
+  ['touch-events'],
+  ['uievents', 'html', 'dom'],
+  idl_array => {
+    idl_array.add_objects({
+      Document: ['document'],
+      GlobalEventHandlers: ['window', 'document', 'document.body'],
+      Touch: ['new Touch({identifier: 1, target: document})'],
+      TouchEvent: ['new TouchEvent("name")'],
+    });
+  }
+);

Copied: trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/support/touch.js (from rev 264253, trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/touch-support.js) (0 => 264254)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/support/touch.js	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/support/touch.js	2020-07-11 03:02:12 UTC (rev 264254)
@@ -0,0 +1,106 @@
+// Check a Touch object's attributes for existence and correct type
+// TA: 1.1.2, 1.1.3
+function check_Touch_object(t) {
+    assert_equals(Object.prototype.toString.call(t), "[object Touch]", "touch is of type Touch");
+    [
+        ["long", "identifier"],
+        ["EventTarget", "target"],
+        ["long", "screenX"],
+        ["long", "screenY"],
+        ["long", "clientX"],
+        ["long", "clientY"],
+        ["long", "pageX"],
+        ["long", "pageY"],
+        ["long", "radiusX"],
+        ["long", "radiusY"],
+        ["long", "rotationAngle"],
+        ["long", "force"],
+    ].forEach(function(attr) {
+        var type = attr[0];
+        var name = attr[1];
+
+        // existence check
+        assert_true(name in t, name + " attribute in Touch object");
+
+        // type check
+        switch (type) {
+            case "long":
+                assert_equals(typeof t[name], "number", name + " attribute of type long");
+                break;
+            case "EventTarget":
+                // An event target is some type of Element
+                assert_true(t[name] instanceof Element, "EventTarget must be an Element.");
+                break;
+            default:
+                break;
+        }
+    });
+}
+
+// Check a TouchList object's attributes and methods for existence and proper type
+// Also make sure all of the members of the list are Touch objects
+// TA: 1.2.1, 1.2.2, 1.2.5, 1.2.6
+function check_TouchList_object(tl) {
+    assert_equals(Object.prototype.toString.call(tl), "[object TouchList]", "touch list is of type TouchList");
+    [
+        ["unsigned long", "length"],
+        ["function", "item"],
+    ].forEach(function(attr) {
+        var type = attr[0];
+        var name = attr[1];
+
+        // existence check
+        assert_true(name in tl, name + " attribute in TouchList");
+
+        // type check
+        switch (type) {
+            case "unsigned long":
+                assert_equals(typeof tl[name], "number", name + " attribute of type long");
+                break;
+            case "function":
+                assert_equals(typeof tl[name], "function", name + " attribute of type function");
+                break;
+            default:
+                break;
+        }
+    });
+    // Each member of tl should be a proper Touch object
+    for (var i = 0; i < tl.length; i++) {
+        check_Touch_object(tl.item(i));
+    }
+    // TouchList.item(x) should return null if x is >= TouchList.length
+    var t = tl.item(tl.length);
+    assert_equals(t, null, "TouchList.item returns null if the index is >= the length of the list");
+}
+
+// Check a TouchEvent event's attributes for existence and proper type
+// Also check that each of the event's TouchList objects are valid
+// TA: 1.{3,4,5}.1.1, 1.{3,4,5}.1.2
+function check_TouchEvent(ev) {
+    assert_true(ev instanceof TouchEvent, ev.type + " event is a TouchEvent event");
+    [
+        ["TouchList", "touches"],
+        ["TouchList", "targetTouches"],
+        ["TouchList", "changedTouches"],
+        ["boolean", "altKey"],
+        ["boolean", "metaKey"],
+        ["boolean", "ctrlKey"],
+        ["boolean", "shiftKey"],
+    ].forEach(function(attr) {
+        var type = attr[0];
+        var name = attr[1];
+        // existence check
+        assert_true(name in ev, name + " attribute in " + ev.type + " event");
+        // type check
+        switch (type) {
+            case "boolean":
+                assert_equals(typeof ev[name], "boolean", name + " attribute of type boolean");
+                break;
+            case "TouchList":
+                assert_equals(Object.prototype.toString.call(ev[name]), "[object TouchList]", name + " attribute of type TouchList");
+                break;
+            default:
+                break;
+        }
+    });
+}

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/support/w3c-import.log (0 => 264254)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/support/w3c-import.log	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/support/w3c-import.log	2020-07-11 03:02:12 UTC (rev 264254)
@@ -0,0 +1,17 @@
+The tests in this directory were imported from the W3C repository.
+Do NOT modify these tests directly in WebKit.
+Instead, create a pull request on the WPT github:
+	https://github.com/web-platform-tests/wpt
+
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
+
+Do NOT modify or remove this file.
+
+------------------------------------------------------------------------
+Properties requiring vendor prefixes:
+None
+Property values requiring vendor prefixes:
+None
+------------------------------------------------------------------------
+List of files:
+/LayoutTests/imported/w3c/web-platform-tests/touch-events/support/touch.js

Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/touch-support.js (264253 => 264254)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/touch-support.js	2020-07-11 02:37:25 UTC (rev 264253)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/touch-support.js	2020-07-11 03:02:12 UTC (rev 264254)
@@ -1,106 +0,0 @@
-// Check a Touch object's attributes for existence and correct type
-// TA: 1.1.2, 1.1.3
-function check_Touch_object(t) {
-    assert_equals(Object.prototype.toString.call(t), "[object Touch]", "touch is of type Touch");
-    [
-        ["long", "identifier"],
-        ["EventTarget", "target"],
-        ["long", "screenX"],
-        ["long", "screenY"],
-        ["long", "clientX"],
-        ["long", "clientY"],
-        ["long", "pageX"],
-        ["long", "pageY"],
-        ["long", "radiusX"],
-        ["long", "radiusY"],
-        ["long", "rotationAngle"],
-        ["long", "force"],
-    ].forEach(function(attr) {
-        var type = attr[0];
-        var name = attr[1];
-
-        // existence check
-        assert_true(name in t, name + " attribute in Touch object");
-
-        // type check
-        switch (type) {
-            case "long":
-                assert_equals(typeof t[name], "number", name + " attribute of type long");
-                break;
-            case "EventTarget":
-                // An event target is some type of Element
-                assert_true(t[name] instanceof Element, "EventTarget must be an Element.");
-                break;
-            default:
-                break;
-        }
-    });
-}
-
-// Check a TouchList object's attributes and methods for existence and proper type
-// Also make sure all of the members of the list are Touch objects
-// TA: 1.2.1, 1.2.2, 1.2.5, 1.2.6
-function check_TouchList_object(tl) {
-    assert_equals(Object.prototype.toString.call(tl), "[object TouchList]", "touch list is of type TouchList");
-    [
-        ["unsigned long", "length"],
-        ["function", "item"],
-    ].forEach(function(attr) {
-        var type = attr[0];
-        var name = attr[1];
-
-        // existence check
-        assert_true(name in tl, name + " attribute in TouchList");
-
-        // type check
-        switch (type) {
-            case "unsigned long":
-                assert_equals(typeof tl[name], "number", name + " attribute of type long");
-                break;
-            case "function":
-                assert_equals(typeof tl[name], "function", name + " attribute of type function");
-                break;
-            default:
-                break;
-        }
-    });
-    // Each member of tl should be a proper Touch object
-    for (var i = 0; i < tl.length; i++) {
-        check_Touch_object(tl.item(i));
-    }
-    // TouchList.item(x) should return null if x is >= TouchList.length
-    var t = tl.item(tl.length);
-    assert_equals(t, null, "TouchList.item returns null if the index is >= the length of the list");
-}
-
-// Check a TouchEvent event's attributes for existence and proper type
-// Also check that each of the event's TouchList objects are valid
-// TA: 1.{3,4,5}.1.1, 1.{3,4,5}.1.2
-function check_TouchEvent(ev) {
-    assert_true(ev instanceof TouchEvent, ev.type + " event is a TouchEvent event");
-    [
-        ["TouchList", "touches"],
-        ["TouchList", "targetTouches"],
-        ["TouchList", "changedTouches"],
-        ["boolean", "altKey"],
-        ["boolean", "metaKey"],
-        ["boolean", "ctrlKey"],
-        ["boolean", "shiftKey"],
-    ].forEach(function(attr) {
-        var type = attr[0];
-        var name = attr[1];
-        // existence check
-        assert_true(name in ev, name + " attribute in " + ev.type + " event");
-        // type check
-        switch (type) {
-            case "boolean":
-                assert_equals(typeof ev[name], "boolean", name + " attribute of type boolean");
-                break;
-            case "TouchList":
-                assert_equals(Object.prototype.toString.call(ev[name]), "[object TouchList]", name + " attribute of type TouchList");
-                break;
-            default:
-                break;
-        }
-    });
-}

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/touch-touchevent-constructor.html (264253 => 264254)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/touch-touchevent-constructor.html	2020-07-11 02:37:25 UTC (rev 264253)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/touch-touchevent-constructor.html	2020-07-11 03:02:12 UTC (rev 264254)
@@ -4,7 +4,7 @@
 <title>Touch and TouchEvent Constructor Tests</title>
 <script src=""
 <script src=""
-<script src=""
+<script src=""
 </head>
 <body>
 <div id="target0"></div>
@@ -13,14 +13,14 @@
     var testIdentifier = 0;
     var testTarget = document.getElementById('target0');
 
-    assert_throws(new TypeError(), function() {new Touch();}, "Touch constructor with no argument");
-    assert_throws(new TypeError(), function() {new Touch(null);}, "Touch constructor with null argument");
-    assert_throws(new TypeError(), function() {new Touch(undefined);}, "Touch constructor with undefined argument");
-    assert_throws(new TypeError(), function() {new Touch({});}, "Touch constructor with empty object");
-    assert_throws(new TypeError(), function() {new Touch({
+    assert_throws_js(TypeError, function() {new Touch();}, "Touch constructor with no argument");
+    assert_throws_js(TypeError, function() {new Touch(null);}, "Touch constructor with null argument");
+    assert_throws_js(TypeError, function() {new Touch(undefined);}, "Touch constructor with undefined argument");
+    assert_throws_js(TypeError, function() {new Touch({});}, "Touch constructor with empty object");
+    assert_throws_js(TypeError, function() {new Touch({
         identifier: testIdentifier
     });}, "Touch constructor with only identifier");
-    assert_throws(new TypeError(), function() {new Touch({
+    assert_throws_js(TypeError, function() {new Touch({
         target: testTarget
     });}, "Touch constructor with only target");
 }, "Touch constructor with insufficient properties");
@@ -29,15 +29,15 @@
     var testIdentifier = 0;
     var testTarget = document.getElementById('target0');
 
-    assert_throws(new TypeError(), function() {new Touch({
+    assert_throws_js(TypeError, function() {new Touch({
         identifier: testIdentifier,
         target: null
     });}, "Touch constructor with null target");
-    assert_throws(new TypeError(), function() {new Touch({
+    assert_throws_js(TypeError, function() {new Touch({
         identifier: testIdentifier,
         target: undefined
     });}, "Touch constructor with undefined target");
-    assert_throws(new TypeError(), function() {new Touch({
+    assert_throws_js(TypeError, function() {new Touch({
         identifier: testIdentifier,
         target: location
     });}, "Touch constructor with Location target");

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/w3c-import.log (264253 => 264254)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/w3c-import.log	2020-07-11 02:37:25 UTC (rev 264253)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/touch-events/w3c-import.log	2020-07-11 03:02:12 UTC (rev 264254)
@@ -1,7 +1,7 @@
 The tests in this directory were imported from the W3C repository.
 Do NOT modify these tests directly in WebKit.
 Instead, create a pull request on the WPT github:
-	https://github.com/w3c/web-platform-tests
+	https://github.com/web-platform-tests/wpt
 
 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
 
@@ -14,11 +14,10 @@
 None
 ------------------------------------------------------------------------
 List of files:
-/LayoutTests/imported/w3c/web-platform-tests/touch-events/OWNERS
-/LayoutTests/imported/w3c/web-platform-tests/touch-events/create-touch-touchlist.html
+/LayoutTests/imported/w3c/web-platform-tests/touch-events/META.yml
 /LayoutTests/imported/w3c/web-platform-tests/touch-events/historical.html
+/LayoutTests/imported/w3c/web-platform-tests/touch-events/idlharness.window.js
 /LayoutTests/imported/w3c/web-platform-tests/touch-events/multi-touch-interactions.js
 /LayoutTests/imported/w3c/web-platform-tests/touch-events/touch-globaleventhandler-interface.html
 /LayoutTests/imported/w3c/web-platform-tests/touch-events/touch-retargeting.html
-/LayoutTests/imported/w3c/web-platform-tests/touch-events/touch-support.js
 /LayoutTests/imported/w3c/web-platform-tests/touch-events/touch-touchevent-constructor.html
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to