blob: 024e4365ec48c91ff7f3ae253f70b666c094f252 [file] [log] [blame]
<!doctype html>
<!--
Tests that permissions granted in 2D Chrome persist in the VR Browser.
-->
<html>
<body>
<script src="../../../../../../third_party/blink/web_tests/resources/testharness.js"></script>
<script src="../resources/webxr_e2e.js"></script>
<script>
var t = async_test("Permissions granted in 2D persist in VR Browser");
function stepRequestPermission() {
navigator.getUserMedia(
{audio: true, video: true},
() => {
t.done();
},
(err) => {
t.step(() => {
assert_unreached("Permission request rejected: " + err);
});
});
}
</script>
</body>
</html>