blob: 520333ffc288706cfd072bd2e361fa6abc3b1be2 [file] [log] [blame]
<!DOCTYPE html>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script>
promise_test((t) => navigator.xr.requestSession({ mode: 'immersive-vr' }).catch(() => {
return promise_rejects(t, "InvalidStateError", navigator.getVRDisplays());
}), "Test that calls to navigator.getVRDisplays are blocked once navigator.xr has been accessed.");
</script>