https://github.com/web-platform-tests/wpt
Raw File
Tip revision: a3f92983c1ebd7e625aac08e6b5a78b05f424feb authored by Corentin Wallez on 03 December 2018, 10:18:30 UTC
Revert "Enforce active lifetime of XRFrame objects"
Tip revision: a3f9298
xrDevice_requestSession_non_immersive_no_gesture.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 non-immersive session outside of a user gesture succeeds",
      (t) => {
        return XRTest.simulateDeviceConnection({ supportsImmersive:false })
          .then( (controller) => { return navigator.xr.requestDevice(); })
          .then( (device) => device.requestSession({
            immersive: false,
            outputContext: getOutputContext()
          }))
          .then( (session) => { assert_not_equals(session, null); });
      });
  </script>
</body>
back to top