Bug 1465418 [wpt PR 9812] - Update the pointerevents IDL file, a=testonly
authorLuke Bjerring <lukebjerring@users.noreply.github.com>
Wed, 06 Jun 2018 16:07:21 +0000
changeset 806595 c306dbf882a7da3a1678ca4c2673e66631f39cec
parent 806594 18e83041b407b85a4bf61d45d8053dc16a9a4410
child 806596 b97bdd08adadcf02d1c4e0034e6e6e0d116888cc
push id112908
push userbmo:gl@mozilla.com
push dateMon, 11 Jun 2018 02:53:29 +0000
reviewerstestonly
bugs1465418
milestone62.0a1
Bug 1465418 [wpt PR 9812] - Update the pointerevents IDL file, a=testonly Automatic update from web-platform-testsUpdate the pointerevents IDL file (#9812) -- wpt-commits: 2a4943b209326c3690639244d78b081f4e056815 wpt-pr: 9812
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/interfaces/pointerevents.idl
testing/web-platform/tests/pointerevents/idlharness.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -287194,16 +287194,21 @@
      {}
     ]
    ],
    "interfaces/payment-request.idl": [
     [
      {}
     ]
    ],
+   "interfaces/pointerevents.idl": [
+    [
+     {}
+    ]
+   ],
    "interfaces/proximity.idl": [
     [
      {}
     ]
    ],
    "interfaces/remote-playback.idl": [
     [
      {}
@@ -580932,16 +580937,20 @@
   "interfaces/payment-handler.idl": [
    "6d9157e515e419c7a2fffc61a1f8e3b23a4550ba",
    "support"
   ],
   "interfaces/payment-request.idl": [
    "8bf519a543c72c282ac08f3feb2b5522913ec82f",
    "support"
   ],
+  "interfaces/pointerevents.idl": [
+   "29ca4e05813256592af7e9804e8135aaffdcc995",
+   "support"
+  ],
   "interfaces/proximity.idl": [
    "74f2bf81a497589e7b3ed323368df218a70925a3",
    "support"
   ],
   "interfaces/remote-playback.idl": [
    "9ddb3a7bfce2454a3f7d835785db912f70521449",
    "support"
   ],
@@ -591209,17 +591218,17 @@
    "f3188cc408b651f05ad946768c8233d0f7586b38",
    "testharness"
   ],
   "pointerevents/html/pointerevent_drag_interaction-manual.html": [
    "1eb570dbed48373f9e840b7694b774448b689879",
    "manual"
   ],
   "pointerevents/idlharness.html": [
-   "5d54a0bb419e989db76a2d4333e73d9ccbce511b",
+   "590e7c7c798d0b136a50cd65939cae11eaad9f5c",
    "testharness"
   ],
   "pointerevents/pointerevent_attributes_hoverable_pointers-manual.html": [
    "9a71336042a931e45c7aef0e031669c26ac5c36c",
    "manual"
   ],
   "pointerevents/pointerevent_attributes_nohover_pointers-manual.html": [
    "b010a8ff22c0522c8bbd5332e5d4ff8f1032a766",
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/interfaces/pointerevents.idl
@@ -0,0 +1,53 @@
+// GENERATED CONTENT - DO NOT EDIT
+// Content of this file was automatically extracted from the Pointer Events spec.
+// See https://w3c.github.io/pointerevents/
+
+dictionary PointerEventInit : MouseEventInit {
+    long        pointerId = 0;
+    double      width = 1;
+    double      height = 1;
+    float       pressure = 0;
+    float       tangentialPressure = 0;
+    long        tiltX = 0;
+    long        tiltY = 0;
+    long        twist = 0;
+    DOMString   pointerType = "";
+    boolean     isPrimary = false;
+};
+
+[Constructor(DOMString type, optional PointerEventInit eventInitDict), Exposed=Window]
+interface PointerEvent : MouseEvent {
+    readonly        attribute long        pointerId;
+    readonly        attribute double      width;
+    readonly        attribute double      height;
+    readonly        attribute float       pressure;
+    readonly        attribute float       tangentialPressure;
+    readonly        attribute long        tiltX;
+    readonly        attribute long        tiltY;
+    readonly        attribute long        twist;
+    readonly        attribute DOMString   pointerType;
+    readonly        attribute boolean     isPrimary;
+};
+
+partial interface Element {
+  void setPointerCapture (long pointerId);
+  void releasePointerCapture (long pointerId);
+  boolean hasPointerCapture (long pointerId);
+};
+
+partial interface GlobalEventHandlers {
+    attribute EventHandler ongotpointercapture;
+    attribute EventHandler onlostpointercapture;
+    attribute EventHandler onpointerdown;
+    attribute EventHandler onpointermove;
+    attribute EventHandler onpointerup;
+    attribute EventHandler onpointercancel;
+    attribute EventHandler onpointerover;
+    attribute EventHandler onpointerout;
+    attribute EventHandler onpointerenter;
+    attribute EventHandler onpointerleave;
+};
+
+partial interface Navigator {
+    readonly  attribute long maxTouchPoints;
+};
--- a/testing/web-platform/tests/pointerevents/idlharness.html
+++ b/testing/web-platform/tests/pointerevents/idlharness.html
@@ -31,86 +31,36 @@ interface HTMLElement : Element {
 HTMLElement implements GlobalEventHandlers;
 
 interface Document {
 };
 Document implements GlobalEventHandlers;
 
 interface MouseEvent {
 };
-
 </pre>
 
-<pre id='idl'>
-dictionary PointerEventInit : MouseEventInit {
-    long      pointerId = 0;
-    double    width = 1;
-    double    height = 1;
-    float     pressure = 0;
-    float     tangentialPressure = 0;
-    long      tiltX = 0;
-    long      tiltY = 0;
-    long      twist = 0;
-    DOMString pointerType = "";
-    boolean   isPrimary = false;
-};
-
-[Constructor(DOMString type, optional PointerEventInit eventInitDict)]
-interface PointerEvent : MouseEvent {
-    readonly attribute long      pointerId;
-    readonly attribute double    width;
-    readonly attribute double    height;
-    readonly attribute float     pressure;
-    readonly attribute float     tangentialPressure;
-    readonly attribute long      tiltX;
-    readonly attribute long      tiltY;
-    readonly attribute long      twist;
-    readonly attribute DOMString pointerType;
-    readonly attribute boolean   isPrimary;
-};
-
-partial interface Element {
-    void    setPointerCapture(long pointerId);
-    void    releasePointerCapture(long pointerId);
-    boolean hasPointerCapture(long pointerId);
-};
-
-partial interface GlobalEventHandlers {
-    attribute EventHandler ongotpointercapture;
-    attribute EventHandler onlostpointercapture;
-    attribute EventHandler onpointerdown;
-    attribute EventHandler onpointermove;
-    attribute EventHandler onpointerup;
-    attribute EventHandler onpointercancel;
-    attribute EventHandler onpointerover;
-    attribute EventHandler onpointerout;
-    attribute EventHandler onpointerenter;
-    attribute EventHandler onpointerleave;
-};
-
-partial interface Navigator {
-    readonly attribute long maxTouchPoints;
-};
-</pre>
 <script>
   promise_test(async function() {
     const dom = await fetch('/interfaces/dom.idl').then(r => r.text());
     const uievents = await fetch('/interfaces/uievents.idl').then(r => r.text());
+    const idl = await fetch('/interfaces/pointerevents.idl').then(r => r.text());
 
     const idl_array = new IdlArray();
     idl_array.add_untested_idls(dom, { only: ['EventInit'] });
     idl_array.add_untested_idls(uievents, { only: [
       'UIEventInit',
       'MouseEventInit',
       'EventModifierInit']
     });
     idl_array.add_untested_idls(
         document.getElementById("untested_idl").textContent);
     idl_array.add_idls(document.getElementById("idl").textContent);
 
     // Note that I don't bother including Document here because there are still
     // a bunch of differences between browsers around Document vs HTMLDocument.
     idl_array.add_objects({
-    Window: ["window"],
-    Navigator: ["navigator"]});
+      Window: ["window"],
+      Navigator: ["navigator"]
+    });
     idl_array.test();
   }, 'pointerevents interfaces');
 </script>