diff --git a/testing/web-platform/tests/feature-policy/picture-in-picture-allowed-by-feature-policy-attribute-redirect-on-load.https.sub.html b/testing/web-platform/tests/feature-policy/picture-in-picture-allowed-by-feature-policy-attribute-redirect-on-load.https.sub.html index e2b52f257a12..a5ea5139a937 100644 --- a/testing/web-platform/tests/feature-policy/picture-in-picture-allowed-by-feature-policy-attribute-redirect-on-load.https.sub.html +++ b/testing/web-platform/tests/feature-policy/picture-in-picture-allowed-by-feature-policy-attribute-redirect-on-load.https.sub.html @@ -16,13 +16,13 @@ relative_path; const header = 'Feature-Policy allow="picture-in-picture"'; - async_test(t => { + async_pip_test(t => { test_feature_availability( 'picture-in-picture', t, same_origin_src, expect_feature_available_default, 'picture-in-picture'); }, header + ' allows same-origin navigation in an iframe.'); - async_test(t => { + async_pip_test(t => { test_feature_availability( 'picture-in-picture', t, cross_origin_src, expect_feature_unavailable_default, 'picture-in-picture'); diff --git a/testing/web-platform/tests/feature-policy/picture-in-picture-allowed-by-feature-policy-attribute.https.sub.html b/testing/web-platform/tests/feature-policy/picture-in-picture-allowed-by-feature-policy-attribute.https.sub.html index 0c3897a4ad0f..b0e160e938d3 100644 --- a/testing/web-platform/tests/feature-policy/picture-in-picture-allowed-by-feature-policy-attribute.https.sub.html +++ b/testing/web-platform/tests/feature-policy/picture-in-picture-allowed-by-feature-policy-attribute.https.sub.html @@ -15,13 +15,13 @@ const feature_name = 'Feature policy "picture-in-picture"'; const header = 'allow="picture-in-picture" attribute'; - async_test(t => { + async_pip_test(t => { test_feature_availability( 'picture-in-picture', t, same_origin_src, expect_feature_available_default, 'picture-in-picture'); }, feature_name + ' can be enabled in same-origin iframe using ' + header); - async_test(t => { + async_pip_test(t => { test_feature_availability( 'picture-in-picture', t, cross_origin_src, expect_feature_available_default, 'picture-in-picture'); diff --git a/testing/web-platform/tests/feature-policy/picture-in-picture-allowed-by-feature-policy.https.sub.html b/testing/web-platform/tests/feature-policy/picture-in-picture-allowed-by-feature-policy.https.sub.html index 1ecd874c009a..b09335a6de38 100644 --- a/testing/web-platform/tests/feature-policy/picture-in-picture-allowed-by-feature-policy.https.sub.html +++ b/testing/web-platform/tests/feature-policy/picture-in-picture-allowed-by-feature-policy.https.sub.html @@ -14,18 +14,18 @@ same_origin_src; const header = 'Feature-Policy header: picture-in-picture *'; - async_test(t => { + async_pip_test(t => { isPictureInPictureAllowed().then(t.step_func_done((result) => { assert_true(result); })); }, header + ' allows the top-level document.'); - async_test(t => { + async_pip_test(t => { test_feature_availability('picture-in-picture', t, same_origin_src, expect_feature_available_default); }, header + ' allows same-origin iframes.'); - async_test(t => { + async_pip_test(t => { test_feature_availability('picture-in-picture', t, cross_origin_src, expect_feature_available_default); }, header + ' allows cross-origin iframes.'); diff --git a/testing/web-platform/tests/feature-policy/picture-in-picture-default-feature-policy.https.sub.html b/testing/web-platform/tests/feature-policy/picture-in-picture-default-feature-policy.https.sub.html index 12bbf7f2f1f8..477cf7ba51db 100644 --- a/testing/web-platform/tests/feature-policy/picture-in-picture-default-feature-policy.https.sub.html +++ b/testing/web-platform/tests/feature-policy/picture-in-picture-default-feature-policy.https.sub.html @@ -14,18 +14,18 @@ same_origin_src; const header = 'Default "picture-in-picture" feature policy [*]'; - async_test(t => { + async_pip_test(t => { isPictureInPictureAllowed().then(t.step_func_done((result) => { assert_true(result); })); }, header + ' allows the top-level document.'); - async_test(t => { + async_pip_test(t => { test_feature_availability('picture-in-picture', t, same_origin_src, expect_feature_available_default); }, header + ' allows same-origin iframes.'); - async_test(t => { + async_pip_test(t => { test_feature_availability('picture-in-picture', t, cross_origin_src, expect_feature_available_default); }, header + ' allows cross-origin iframes.'); diff --git a/testing/web-platform/tests/feature-policy/picture-in-picture-disabled-by-feature-policy.https.sub.html b/testing/web-platform/tests/feature-policy/picture-in-picture-disabled-by-feature-policy.https.sub.html index b36afbda503f..513d04c2fa91 100644 --- a/testing/web-platform/tests/feature-policy/picture-in-picture-disabled-by-feature-policy.https.sub.html +++ b/testing/web-platform/tests/feature-policy/picture-in-picture-disabled-by-feature-policy.https.sub.html @@ -14,18 +14,18 @@ same_origin_src; const header = 'Feature-Policy header: picture-in-picture "none"'; - async_test(t => { + async_pip_test(t => { isPictureInPictureAllowed().then(t.step_func_done((result) => { assert_false(result); })); }, header + ' disallows the top-level document.'); - async_test(t => { + async_pip_test(t => { test_feature_availability('picture-in-picture', t, same_origin_src, expect_feature_unavailable_default); }, header + ' disallows same-origin iframes.'); - async_test(t => { + async_pip_test(t => { test_feature_availability('picture-in-picture', t, cross_origin_src, expect_feature_unavailable_default); }, header + ' disallows cross-origin iframes.'); diff --git a/testing/web-platform/tests/feature-policy/reporting/picture-in-picture-reporting.html b/testing/web-platform/tests/feature-policy/reporting/picture-in-picture-reporting.html index 60e4825d9882..e3cbf1036871 100644 --- a/testing/web-platform/tests/feature-policy/reporting/picture-in-picture-reporting.html +++ b/testing/web-platform/tests/feature-policy/reporting/picture-in-picture-reporting.html @@ -6,6 +6,7 @@ +