mirror of
https://github.com/servo/servo.git
synced 2025-08-14 09:55:35 +01:00
Update web-platform-tests to revision 097043b336e46876e281ddec3bb014fe9c480128
This commit is contained in:
parent
ecd32570c0
commit
b68253eac0
405 changed files with 9164 additions and 3050 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue