mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Update web-platform-tests to revision be5419e845d39089ba6dc338c1bd0fa279108317
This commit is contained in:
parent
aa199307c8
commit
2b6f573eb5
3440 changed files with 109438 additions and 41750 deletions
27
tests/wpt/web-platform-tests/webxr/resources/webxr_util.js
Normal file
27
tests/wpt/web-platform-tests/webxr/resources/webxr_util.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
// This functions calls a callback with each API object as specified
|
||||
// by https://immersive-web.github.io/webxr/spec/latest/, allowing
|
||||
// checks to be made on all ojects.
|
||||
// Arguements:
|
||||
// callback: A callback function with two arguements, the first
|
||||
// being the API object, the second being the name of
|
||||
// that API object.
|
||||
function forEachWebxrObject(callback) {
|
||||
callback(window.navigator.xr, 'navigator.xr');
|
||||
callback(window.XRDevice, 'XRDevice');
|
||||
callback(window.XRSession, 'XRSession');
|
||||
callback(window.XRSessionCreationOptions, 'XRSessionCreationOptions');
|
||||
callback(window.XRFrameRequestCallback, 'XRFrameRequestCallback');
|
||||
callback(window.XRPresentationFrame, 'XRPresentationFrame');
|
||||
callback(window.XRView, 'XRView');
|
||||
callback(window.XRViewport, 'XRViewport');
|
||||
callback(window.XRDevicePose, 'XRDevicePose');
|
||||
callback(window.XRLayer, 'XRLayer');
|
||||
callback(window.XRWebGLLayer, 'XRWebGLLayer');
|
||||
callback(window.XRWebGLLayerInit, 'XRWebGLLayerInit');
|
||||
callback(window.XRCoordinateSystem, 'XRCoordinateSystem');
|
||||
callback(window.XRFrameOfReference, 'XRFrameOfReference');
|
||||
callback(window.XRStageBounds, 'XRStageBounds');
|
||||
callback(window.XRStageBoundsPoint, 'XRStageBoundsPoint');
|
||||
callback(window.XRSessionEvent, 'XRSessionEvent');
|
||||
callback(window.XRCoordinateSystemEvent, 'XRCoordinateSystemEvent');
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue