Update web-platform-tests to revision 8ae1ddbc812733c3a73b103eafad56fb43a2f4b5

This commit is contained in:
WPT Sync Bot 2019-01-26 20:37:16 -05:00
parent d44e9aced2
commit 0e5e5db397
109 changed files with 2053 additions and 708 deletions

View file

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

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.requestDevice(),
await promise_rejects(t, 'SecurityError', navigator.xr.supportsSessionMode('inline'),
"XR device access should not be allowed in this document.");
const [reports, observer] = await report;
check_report_format(reports, observer);