mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision d7afcb8708eac08a614d161d5622a48172daf7e3
This commit is contained in:
parent
6f8bb4dd40
commit
edff458e23
791 changed files with 17647 additions and 10322 deletions
|
@ -25,7 +25,7 @@ function xr_promise_test(name, func, properties) {
|
|||
// device, and the test object.
|
||||
// Requires a webglCanvas on the page.
|
||||
function xr_session_promise_test(
|
||||
name, func, fakeDeviceInit, sessionOptions, properties) {
|
||||
name, func, fakeDeviceInit, sessionMode, properties) {
|
||||
let testDeviceController;
|
||||
let testSession;
|
||||
|
||||
|
@ -48,7 +48,7 @@ function xr_session_promise_test(
|
|||
.then(() => new Promise((resolve, reject) => {
|
||||
// Perform the session request in a user gesture.
|
||||
XRTest.simulateUserActivation(() => {
|
||||
navigator.xr.requestSession(sessionOptions)
|
||||
navigator.xr.requestSession(sessionMode)
|
||||
.then((session) => {
|
||||
testSession = session;
|
||||
// Session must have a baseLayer or frame requests
|
||||
|
@ -62,7 +62,7 @@ function xr_session_promise_test(
|
|||
.catch((err) => {
|
||||
reject(
|
||||
'Session with params ' +
|
||||
JSON.stringify(sessionOptions) +
|
||||
JSON.stringify(sessionMode) +
|
||||
' was rejected on device ' +
|
||||
JSON.stringify(fakeDeviceInit) +
|
||||
' with error: ' + err);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue