mirror of
https://github.com/servo/servo.git
synced 2025-07-11 17:33:47 +01:00
22 lines
681 B
HTML
22 lines
681 B
HTML
<!DOCTYPE html>
|
|
<body>
|
|
<script src=/resources/testharness.js></script>
|
|
<script src=/resources/testharnessreport.js></script>
|
|
<script src="resources/webxr_util.js"></script>
|
|
<canvas></canvas>
|
|
|
|
<script>
|
|
xr_promise_test("Requested session has it's mode set",
|
|
(t) => {
|
|
return XRTest.simulateDeviceConnection({ supportsImmersive:true })
|
|
.then( (controller) => new Promise((resolve) => {
|
|
XRTest.simulateUserActivation( () => {
|
|
resolve(navigator.xr.requestSession('immersive-vr').then( (session) => {
|
|
assert_equals(session.mode, 'immersive-vr');
|
|
}));
|
|
});
|
|
}));
|
|
});
|
|
</script>
|
|
</body>
|
|
|