Update web-platform-tests to revision d7afcb8708eac08a614d161d5622a48172daf7e3

This commit is contained in:
WPT Sync Bot 2019-05-15 10:40:54 -04:00 committed by Josh Matthews
parent 6f8bb4dd40
commit edff458e23
791 changed files with 17647 additions and 10322 deletions

View file

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