mirror of
https://github.com/servo/servo.git
synced 2025-08-13 09:25:32 +01:00
Update web-platform-tests to revision b7a8b84debb42268ea95a45bdad8f727d1facdf7
This commit is contained in:
parent
ba929208e4
commit
953dbda9a6
215 changed files with 6409 additions and 1644 deletions
|
@ -11,19 +11,20 @@ const same_origin_src =
|
|||
const cross_origin_src = 'https://{{domains[www]}}:{{ports[https][0]}}' +
|
||||
same_origin_src;
|
||||
|
||||
promise_test(
|
||||
() => navigator.idle.query(),
|
||||
promise_test(async () => {
|
||||
await new IdleDetector().start()
|
||||
},
|
||||
'Default "idle-detection" feature policy ["self"] ' +
|
||||
'allows the top-level document.');
|
||||
|
||||
async_test(t => {
|
||||
test_feature_availability('idle.query()', t, same_origin_src,
|
||||
test_feature_availability('new IdleDetector().start()', t, same_origin_src,
|
||||
expect_feature_available_default);
|
||||
}, 'Default "idle-detection" feature policy ["self"] ' +
|
||||
'allows same-origin iframes.');
|
||||
|
||||
async_test(t => {
|
||||
test_feature_availability('idle.query()', t, cross_origin_src,
|
||||
test_feature_availability('new IdleDetector().start()', t, cross_origin_src,
|
||||
expect_feature_unavailable_default);
|
||||
}, 'Default "idle-detection" feature policy ["self"] ' +
|
||||
'disallows cross-origin iframes.');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue