Update web-platform-tests to revision b7a8b84debb42268ea95a45bdad8f727d1facdf7

This commit is contained in:
WPT Sync Bot 2019-03-21 21:40:20 -04:00
parent ba929208e4
commit 953dbda9a6
215 changed files with 6409 additions and 1644 deletions

View file

@ -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.');