https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 7196fc9774577a75f50a49a1107d7d0e80807616 authored by Ian Kilpatrick on 22 December 2018, 23:06:09 UTC
[LayoutNG] Remove NGLayoutResult::PositionedFloats.
Tip revision: 7196fc9
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