mirror of
https://github.com/servo/servo.git
synced 2025-08-26 23:58:20 +01:00
Update web-platform-tests to revision 8ae1ddbc812733c3a73b103eafad56fb43a2f4b5
This commit is contained in:
parent
d44e9aced2
commit
0e5e5db397
109 changed files with 2053 additions and 708 deletions
|
@ -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");
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue