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