https://github.com/web-platform-tests/wpt
Raw File
Tip revision: d687e029cdd49250b4446518d1d4ad11d5354e0a authored by Philip Jägenstedt on 03 December 2018, 14:22:18 UTC
Rename audio-output idlharness test for secure context change
Tip revision: d687e02
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