https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 7d5f042f7b7a4c0004679b08ec3f7ecab26fb620 authored by Simon Pieters on 28 August 2018, 10:14:54 UTC
HTML: test interaction of floating legend and flexbox/grid
Tip revision: 7d5f042
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