Update web-platform-tests to revision d3cf77a7b8c20c678b725238eaa8a72eca3787ae

This commit is contained in:
WPT Sync Bot 2019-04-25 22:18:37 -04:00
parent 880f3b8b7a
commit efca990ffe
541 changed files with 8000 additions and 2276 deletions

View file

@ -23,9 +23,9 @@ promise_test(async t => {
{types: ['feature-policy-violation']}).observe();
});
try {
await navigator.xr.supportsSessionMode('inline');
await navigator.xr.supportsSession('inline');
} catch (err) {
// If no XR devices are available, supportsSessionMode() will reject with a
// If no XR devices are available, supportsSession() will reject with a
// NotSupportedError, but the report should be generated anyway.
assert_equals(err.name, 'NotSupportedError');
}

View file

@ -22,7 +22,7 @@ promise_test(async (t) => {
new ReportingObserver((reports, observer) => resolve([reports, observer]),
{types: ['feature-policy-violation']}).observe();
});
await promise_rejects(t, 'SecurityError', navigator.xr.supportsSessionMode('inline'),
await promise_rejects(t, 'SecurityError', navigator.xr.supportsSession('inline'),
"XR device access should not be allowed in this document.");
const [reports, observer] = await report;
check_report_format(reports, observer);