Bug 1465425 [wpt PR 9813] - Update the pointerlock IDL file, a=testonly
authorLuke Bjerring <lukebjerring@users.noreply.github.com>
Wed, 06 Jun 2018 16:09:53 +0000
changeset 476403 f73bcc6899d60785ddc66f78c63ab537ee9b984b
parent 476402 b97bdd08adadcf02d1c4e0034e6e6e0d116888cc
child 476404 03d22d890f2b758117ea8191662e72a5bbdb3e3d
push id9374
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:43:20 +0000
treeherdermozilla-beta@160e085dfb0b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1465425
milestone62.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1465425 [wpt PR 9813] - Update the pointerlock IDL file, a=testonly Automatic update from web-platform-testsUpdate the pointerlock IDL file (#9813) -- wpt-commits: 9fea339a9bde3bfbb0b880e236eaf4ce7487168d wpt-pr: 9813
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/interfaces/pointerlock.idl
testing/web-platform/tests/pointerlock/idlharness.html
testing/web-platform/tests/pointerlock/interfaces.window.js
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -287199,16 +287199,21 @@
      {}
     ]
    ],
    "interfaces/pointerevents.idl": [
     [
      {}
     ]
    ],
+   "interfaces/pointerlock.idl": [
+    [
+     {}
+    ]
+   ],
    "interfaces/proximity.idl": [
     [
      {}
     ]
    ],
    "interfaces/remote-playback.idl": [
     [
      {}
@@ -356041,19 +356046,19 @@
     ]
    ],
    "pointerlock/constructor.html": [
     [
      "/pointerlock/constructor.html",
      {}
     ]
    ],
-   "pointerlock/idlharness.html": [
-    [
-     "/pointerlock/idlharness.html",
+   "pointerlock/interfaces.window.js": [
+    [
+     "/pointerlock/interfaces.window.html",
      {}
     ]
    ],
    "preload/avoid-delaying-onload-link-preload.html": [
     [
      "/preload/avoid-delaying-onload-link-preload.html",
      {}
     ]
@@ -580952,16 +580957,20 @@
   "interfaces/payment-request.idl": [
    "8bf519a543c72c282ac08f3feb2b5522913ec82f",
    "support"
   ],
   "interfaces/pointerevents.idl": [
    "29ca4e05813256592af7e9804e8135aaffdcc995",
    "support"
   ],
+  "interfaces/pointerlock.idl": [
+   "6d3ff2b3f8b4015f3cb282db2cd2dbb8c2e90db5",
+   "support"
+  ],
   "interfaces/proximity.idl": [
    "74f2bf81a497589e7b3ed323368df218a70925a3",
    "support"
   ],
   "interfaces/remote-playback.idl": [
    "9ddb3a7bfce2454a3f7d835785db912f70521449",
    "support"
   ],
@@ -591552,18 +591561,18 @@
   "pointerlock/OWNERS": [
    "790b8ffd5f041ada7077501859a15f805080d255",
    "support"
   ],
   "pointerlock/constructor.html": [
    "6b77dd2bd357f9e902846b9f96059537dda35b3e",
    "testharness"
   ],
-  "pointerlock/idlharness.html": [
-   "0d822320837b64c480e32e5110cf0f00adaf570c",
+  "pointerlock/interfaces.window.js": [
+   "597ed15f67c4f94f15b28b167fe7ac0ce1b7d79c",
    "testharness"
   ],
   "pointerlock/movementX_Y_basic-manual.html": [
    "45eea8be5393873e6c02331b4aff6f4622be692f",
    "manual"
   ],
   "pointerlock/movementX_Y_no-jumps-manual.html": [
    "0d92e1e270e9ab01c863815c07a02ff3081aede9",
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/interfaces/pointerlock.idl
@@ -0,0 +1,27 @@
+// GENERATED CONTENT - DO NOT EDIT
+// Content of this file was automatically extracted from the Pointer Lock spec.
+// See https://w3c.github.io/pointerlock/
+
+partial interface Element {
+  void requestPointerLock();
+};
+
+partial interface Document {
+  attribute EventHandler onpointerlockchange;
+  attribute EventHandler onpointerlockerror;
+  void exitPointerLock();
+};
+
+partial interface DocumentOrShadowRoot {
+  readonly attribute Element ? pointerLockElement;
+};
+
+partial interface MouseEvent {
+  readonly attribute long movementX;
+  readonly attribute long movementY;
+};
+
+partial dictionary MouseEventInit {
+  long movementX = 0;
+  long movementY = 0;
+};
deleted file mode 100644
--- a/testing/web-platform/tests/pointerlock/idlharness.html
+++ /dev/null
@@ -1,70 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<meta charset="utf-8">
-<title>Pointer Lock IDL tests</title>
-<link rel="author" title="W3C" href="http://www.w3.org/" />
-<link rel="help" href="http://www.w3.org/TR/pointerlock/#element-interface"/>
-<link rel="help" href="http://www.w3.org/TR/pointerlock/#extensions-to-the-document-interface">
-<link rel="help" href="http://www.w3.org/TR/pointerlock/#extensions-to-the-mouseevent-interface">
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<script src="/resources/WebIDLParser.js"></script>
-<script src="/resources/idlharness.js"></script>
-</head>
-
-<body>
-<h1>Pointer Lock IDL tests</h1>
-
-<pre id='idl'>
-partial interface Element {
-    void requestPointerLock ();
-};
-
-partial interface Document {
-                attribute EventHandler onpointerlockchange;
-                attribute EventHandler onpointerlockerror;
-    readonly    attribute Element?     pointerLockElement;
-    void exitPointerLock ();
-};
-
-partial interface MouseEvent {
-    readonly    attribute long movementX;
-    readonly    attribute long movementY;
-};
-
-partial dictionary MouseEventInit {
-        long movementX = 0;
-        long movementY = 0;
-};
-</pre>
-
-<div id="log"></div>
-
-<script>
-"use strict";
-
-promise_test(async () => {
-    const idl_array = new IdlArray();
-    const uievents = await fetch('/interfaces/uievents.idl').then(r => r.text());
-    const dom = await fetch('/interfaces/dom.idl').then(r => r.text());
-    const html = await fetch('/interfaces/html.idl').then(r => r.text());
-
-	idl_array.add_idls(document.getElementById("idl").textContent);
-    idl_array.add_dependency_idls(uievents);
-    idl_array.add_dependency_idls(dom);
-    idl_array.add_dependency_idls(html);
-
-	idl_array.add_objects({
-        Document: ["window.document"],
-        Element: ["window.document.documentElement"],
-        MouseEvent: [
-            "new MouseEvent('mousemove')",
-            "new MouseEvent('pointerlockchange')"
-        ],
-    });
-    idl_array.test();
-});
-</script>
-</body>
-</html>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/pointerlock/interfaces.window.js
@@ -0,0 +1,26 @@
+// META: script=/resources/WebIDLParser.js
+// META: script=/resources/idlharness.js
+
+'use strict';
+
+// https://w3c.github.io/pointerlock/
+
+promise_test(async () => {
+  const html = await fetch('/interfaces/html.idl').then(r => r.text());
+  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/pointerlock.idl').then(r => r.text());
+
+  const idl_array = new IdlArray();
+  idl_array.add_idls(idl);
+  idl_array.add_dependency_idls(uievents);
+  idl_array.add_dependency_idls(dom);
+  idl_array.add_dependency_idls(html);
+
+  idl_array.add_objects({
+    Document: ["window.document"],
+    Element: ["window.document.documentElement"],
+    MouseEvent: ["new MouseEvent('foo')"]
+  });
+  idl_array.test();
+}, 'pointerlock interfaces.');