https://github.com/web-platform-tests/wpt
Raw File
Tip revision: f6f3c2a859b19ec6e7f273ed7a18bfdfb537a897 authored by David Quiroz Marin on 06 September 2018, 14:38:08 UTC
Remove ExtendedTextMetrics flag to launch canvas TextMetrics.
Tip revision: f6f3c2a
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