https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 933c42829a0b57ae83016a14eaafb152d37d343b authored by Yoav Weiss on 21 December 2018, 21:00:08 UTC
Fix resource-timing.html document.domain test
Tip revision: 933c428
xrDevice_supportsSession_immersive_unsupported.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(
      "supportsSession rejects when options not supported",
      (t) => {
      return XRTest.simulateDeviceConnection({ supportsImmersive:false })
        .then( (controller) => { return navigator.xr.requestDevice() })
        .then( (device) => {
          return promise_rejects(
            t,
            "NotSupportedError",
            device.supportsSession({ immersive: true })
          );
        });
    });
  </script>
</body>
back to top