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

View file

@ -0,0 +1,13 @@
<!DOCTYPE html>
<title>Test that xr is advertised in the feature list</title>
<!-- The Feature Policy feature name(s) for WebXR are still TBD. See the issue below. This test checks what is currently in the spec. -->
<link rel="help" href="https://github.com/immersive-web/webxr/issues/308">
<link rel="help" href="https://w3c.github.io/webappsec-feature-policy/#dom-featurepolicy-features">
<link rel="help" href="https://immersive-web.github.io/webxr/#feature-policy">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(() => {
assert_in_array('xr', document.featurePolicy.features());
}, 'document.featurePolicy.features should advertise xr.');
</script>