Update web-platform-tests to revision 097043b336e46876e281ddec3bb014fe9c480128

This commit is contained in:
WPT Sync Bot 2019-08-03 10:25:42 +00:00
parent ecd32570c0
commit b68253eac0
405 changed files with 9164 additions and 3050 deletions

View file

@ -16,7 +16,17 @@ xr_promise_test("Ensure that XRWebGLLayer's constructor throws appropriate error
};
let gl = webglCanvas.getContext('webgl', glAttributes);
return navigator.xr.test.simulateDeviceConnection(TRACKED_IMMERSIVE_DEVICE)
.then((controller) => {
.then(() => {
return navigator.xr.requestSession('inline')
.then((session) => {
try {
let webglLayerIncompatible = new XRWebGLLayer(session, gl);
} catch (err) {
assert_unreached("Inline XRWebGLLayers should not fail when created with a context that is not XRCompatible");
}
});
})
.then(() => {
return new Promise((resolve) => {
navigator.xr.test.simulateUserActivation(() => {
navigator.xr.requestSession('immersive-vr')