https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 542fba2bbc1e1ea82998151f1f98d3aa51e86f64 authored by Ms2ger on 19 October 2018, 08:53:50 UTC
Consistently use bytes in ResponseHeaders.
Tip revision: 542fba2
xrDevice_requestSession_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 immersive session outside of a user gesture rejects",
      (t) => {
        return XRTest.simulateDeviceConnection({ supportsImmersive:true })
          .then( (controller) => { return navigator.xr.requestDevice() })
          .then( (device) => promise_rejects(
            t, 'SecurityError', device.requestSession({ immersive: true })));
      });
  </script>
</body>
back to top