https://github.com/web-platform-tests/wpt
Raw File
Tip revision: e7517084404fca126c4f89eb69217206689adf17 authored by jgraham on 20 December 2018, 17:24:15 UTC
Update range-percent-intrinsic-size-1.html
Tip revision: e751708
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