Update web-platform-tests to revision 8da19eeb64e1dbcc32cabc2961a44e15635d116f

This commit is contained in:
WPT Sync Bot 2019-07-04 10:26:17 +00:00
parent b32bff3b97
commit 120d9aa5dc
298 changed files with 9286 additions and 3047 deletions

View file

@ -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;
});
});