Update web-platform-tests to revision 755d18230983e9c7d894768b73fabff8bc290d91

This commit is contained in:
WPT Sync Bot 2019-05-31 10:26:18 +00:00
parent d544c186b9
commit fa788e624b
70 changed files with 1929 additions and 380 deletions

View file

@ -52,11 +52,13 @@ function xr_session_promise_test(
.then((session) => {
testSession = session;
session.mode = sessionMode;
let glLayer = new XRWebGLLayer(session, gl, {
compositionDisabled: session.mode == 'inline'
});
// Session must have a baseLayer or frame requests
// will be ignored.
session.updateRenderState({
baseLayer: new XRWebGLLayer(session, gl),
outputContext: getOutputContext()
baseLayer: glLayer
});
resolve(func(session, testDeviceController, t));
})
@ -78,15 +80,6 @@ function xr_session_promise_test(
properties);
}
// A utility function to create an output context as required by non-immersive
// sessions.
// https://immersive-web.github.io/webxr/#xrsessioncreationoptions-interface
function getOutputContext() {
let outputCanvas = document.createElement('canvas');
document.body.appendChild(outputCanvas);
return outputCanvas.getContext('xrpresent');
}
// 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.