mirror of
https://github.com/servo/servo.git
synced 2025-07-03 05:23:38 +01:00
22 lines
525 B
JavaScript
22 lines
525 B
JavaScript
// META: script=/resources/WebIDLParser.js
|
|
// META: script=/resources/idlharness.js
|
|
|
|
'use strict';
|
|
|
|
// https://immersive-web.github.io/webxr/
|
|
|
|
idl_test(
|
|
['webxr'],
|
|
['webgl1', 'html', 'dom'],
|
|
async idl_array => {
|
|
idl_array.add_objects({
|
|
Navigator: ['navigator'],
|
|
XR: ['navigator.XR'],
|
|
XRDevice: ['device'],
|
|
XRSession: ['session'],
|
|
});
|
|
self.device = await navigator.XR.requestDevice();
|
|
self.session = await device.requestSession();
|
|
},
|
|
'Test IDL implementation of WebXR API'
|
|
);
|