Bug 1582625 [wpt PR 19170] - Add webxr-gamepads-module and test, a=testonly
authorLuke Bjerring <lukebjerring@users.noreply.github.com>
Mon, 23 Sep 2019 12:25:50 +0000
changeset 494707 6f6546795e378dfa637038f4ef1790596cea5879
parent 494706 df95538367254712c3d1f22913ab18fdaa8bc21d
child 494708 b61b9eecb81305778f3b8b730ba9dedcf0ac3480
push id114126
push userwptsync@mozilla.com
push dateTue, 24 Sep 2019 19:34:44 +0000
treeherdermozilla-inbound@068d8731f1c4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1582625, 19170
milestone71.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 1582625 [wpt PR 19170] - Add webxr-gamepads-module and test, a=testonly Automatic update from web-platform-tests Add webxr-gamepads-module and test (#19170) * Add webxr-gamepads-module and test * Update webxr/gamepads-module/idlharness.https.window.js * Update webxr-gamepads-module.idl -- wpt-commits: fc9345bfbab209fbb22d77ebdd7f7a604c4e4482 wpt-pr: 19170
testing/web-platform/tests/interfaces/webxr-gamepads-module.idl
testing/web-platform/tests/webxr/gamepads-module/idlharness.https.window.js
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/interfaces/webxr-gamepads-module.idl
@@ -0,0 +1,14 @@
+// GENERATED CONTENT - DO NOT EDIT
+// Content was automatically extracted by Reffy into reffy-reports
+// (https://github.com/tidoust/reffy-reports)
+// Source: WebXR Gamepads Module - Level 1 (https://immersive-web.github.io/webxr-gamepads-module/)
+
+partial interface XRInputSource {
+  [SameObject] readonly attribute Gamepad? gamepad;
+};
+
+enum GamepadMappingType {
+  "",            // Defined in the Gamepad API
+  "standard",    // Defined in the Gamepad API
+  "xr-standard",
+};
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/webxr/gamepads-module/idlharness.https.window.js
@@ -0,0 +1,16 @@
+// META: script=/resources/WebIDLParser.js
+// META: script=/resources/idlharness.js
+
+'use strict';
+
+// https://immersive-web.github.io/webxr-gamepads-module/
+
+idl_test(
+  ['webxr-gamepads-module'],
+  ['webxr', 'dom'],
+  async idl_array => {
+    idl_array.add_objects({
+      // TODO: XRInputSource
+    });
+  }
+);