https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 374f409cd811fb34b5dc9912ac8fbbf5ff0ff3af authored by Darwin Huang on 22 December 2018, 17:56:00 UTC
Async Clipboard: ReadImage/WriteImage Proof of Concept (experimental).
Tip revision: 374f409
navigator_xr_requestDevice.https.html
<!DOCTYPE html>
<body>
  <script src=/resources/testharness.js></script>
  <script src=/resources/testharnessreport.js></script>
  <script src="resources/webxr_util.js"></script>

  <script>
    xr_promise_test("navigator.xr.requestDevice returns a device", (t) => {
      return XRTest.simulateDeviceConnection({ supportsImmersive: true })
        .then( (controller) => { return navigator.xr.requestDevice() })
        .then( (device) => {
          t.step(() => {
            assert_true(device != null);
            assert_true(device instanceof XRDevice);
          });
        });
    });
  </script>
</body>
back to top