https://github.com/web-platform-tests/wpt
Revision f7651d33ccb148f21ceab9f08f0a4d09bebf31cb authored by Ms2ger on 26 September 2018, 11:55:47 UTC, committed by Ms2ger on 26 September 2018, 12:49:39 UTC
The class is only used once, so change it to simplify that case.
1 parent 16c953f
Raw File
Tip revision: f7651d33ccb148f21ceab9f08f0a4d09bebf31cb authored by Ms2ger on 26 September 2018, 11:55:47 UTC
Simplify MultipartContent.
Tip revision: f7651d3
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