mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision 8da19eeb64e1dbcc32cabc2961a44e15635d116f
This commit is contained in:
parent
b32bff3b97
commit
120d9aa5dc
298 changed files with 9286 additions and 3047 deletions
|
@ -39,15 +39,15 @@ function xr_session_promise_test(
|
|||
|
||||
xr_promise_test(
|
||||
name,
|
||||
(t) =>
|
||||
XRTest.simulateDeviceConnection(fakeDeviceInit)
|
||||
(t) =>{
|
||||
return navigator.xr.test.simulateDeviceConnection(fakeDeviceInit)
|
||||
.then((controller) => {
|
||||
testDeviceController = controller;
|
||||
return gl.makeXRCompatible();
|
||||
})
|
||||
.then(() => new Promise((resolve, reject) => {
|
||||
// Perform the session request in a user gesture.
|
||||
XRTest.simulateUserActivation(() => {
|
||||
navigator.xr.test.simulateUserActivation(() => {
|
||||
navigator.xr.requestSession(sessionMode)
|
||||
.then((session) => {
|
||||
testSession = session;
|
||||
|
@ -75,8 +75,9 @@ function xr_session_promise_test(
|
|||
.then(() => {
|
||||
// Cleanup system state.
|
||||
testSession.end().catch(() => {});
|
||||
XRTest.simulateDeviceDisconnection();
|
||||
}),
|
||||
return navigator.xr.test.disconnectAllDevices();
|
||||
})
|
||||
},
|
||||
properties);
|
||||
}
|
||||
|
||||
|
@ -138,4 +139,4 @@ let loadChromiumResources = Promise.resolve().then(() => {
|
|||
});
|
||||
|
||||
return chain;
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue