https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 3ebbd7b9a33f6915cb4885e9193b1630538c1ea3 authored by Lan Wei on 20 December 2018, 01:32:17 UTC
Rename pointerevent_pointerout_pen-manual.html to pointerevent_pointerout_pen.html
Tip revision: 3ebbd7b
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