blob: 9d361c4a8e76bd9094a7151fd88cba50dc5780ee [file] [log] [blame]
<!DOCTYPE html>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script src="../vr/resources/fake-vr-displays.js"></script>
<script src="file:///gen/layout_test_data/mojo/public/js/mojo_bindings.js"></script>
<script src="file:///gen/device/vr/vr_service.mojom.js"></script>
<script src="../vr/resources/mock-vr-service.js"></script>
<script src="../vr/resources/test-constants.js"></script>
<script>
let fakeDisplays = fakeVRDisplays();
vr_test( (t) => {
return navigator.xr.requestDevice().then( (device) => {
t.step( () => {
assert_unreached("requestDevice resolved");
}, "requestDevice resolved when it shouldn't have");
}, (err) => {
t.step( () => {
assert_equals(err.name, "NotFoundError")
t.done();
});
});
}, [],
"navigator.xr.requestDevice properly returns zero devices");
</script>