blob: 6043d4db082bdf8ed6b46242667d13c94385b35c [file] [log] [blame]
<!doctype html>
<!--
Tests that WebXR returns no devices when OpenVR is disabled.
-->
<html>
<head>
<link rel="stylesheet" type="text/css" href="../resources/webxr_e2e.css">
</head>
<body>
<canvas id="webgl-canvas"></canvas>
<script src="../../../../../../third_party/blink/web_tests/resources/testharness.js"></script>
<script src="../resources/webxr_e2e.js"></script>
<script>
var t = async_test("WebXR returns no devices when OpenVR disabled");
navigator.xr.requestDevice().then( () => {
t.step( () => {
assert_unreached("WebXR returned a device");
});
}, () => {
t.done();
});
</script>
</body>
</html>