https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 330c54de5826e56ea3dfd314574a29043518e7e8 authored by Marcos Cáceres on 08 August 2018, 10:39:23 UTC
Add edenchuang
Tip revision: 330c54d
idlharness.https.window.js
// 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'
);
back to top