mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Update web-platform-tests to revision d3cf77a7b8c20c678b725238eaa8a72eca3787ae
This commit is contained in:
parent
880f3b8b7a
commit
efca990ffe
541 changed files with 8000 additions and 2276 deletions
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue