https://github.com/web-platform-tests/wpt
Raw File
Tip revision: f45c992c2cad60ea26546707423f8a18d6efcb43 authored by Mustaq Ahmed on 22 November 2018, 14:48:26 UTC
WIP: Fix testdriver clicks to make bluetooth wpt pass with UAv2.
Tip revision: f45c992
xrDevice_requestSession_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(
      "Requesting an immersive session when unsupported rejects",
      (t) => {
        return XRTest.simulateDeviceConnection({ supportsImmersive:false })
          .then( (controller) => { return navigator.xr.requestDevice() })
          .then( (magicWindowOnlyDevice) => new Promise((resolve) => {
            XRTest.simulateUserActivation( () => {
              resolve(promise_rejects(
                t,
                "NotSupportedError",
                magicWindowOnlyDevice.requestSession({ immersive: true })
              ))
            });
          }));
      });
  </script>
</body>
back to top