Test advertised required document policy

Summary

Harness status: OK

Found 4 tests

Details

ResultTest NameMessage
FailChild frame with no explicit policy should have the same required policy as its parent.assert_equals: expected (string) "lossless-images-max-bpp=1.0" but got (object) null
    at Test.<anonymous> (https://wpt.live/document-policy/required-policy/separate-document-policies.html:28:5)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at Object.<anonymous> (https://wpt.live/resources/testharness.js:2717:32)
    at https://wpt.live/document-policy/required-policy/separate-document-policies.html:20:18
Asserts run
Fail
assert_equals(null, "lossless-images-max-bpp=1.0")
    at Test.<anonymous> ( /document-policy/required-policy/separate-document-policies.html:28:5)
FailChild frame with a less strict required policy should have the stricter value from the parent's policy applied.assert_equals: expected (string) "lossless-images-max-bpp=1.0" but got (object) null
    at Test.<anonymous> (https://wpt.live/document-policy/required-policy/separate-document-policies.html:38:5)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at Object.<anonymous> (https://wpt.live/resources/testharness.js:2717:32)
    at https://wpt.live/document-policy/required-policy/separate-document-policies.html:20:18
Asserts run
Fail
assert_equals(null, "lossless-images-max-bpp=1.0")
    at Test.<anonymous> ( /document-policy/required-policy/separate-document-policies.html:38:5)
FailChild frame may have a stricter policy than the parent.assert_equals: expected (string) "lossless-images-max-bpp=0.9" but got (object) null
    at Test.<anonymous> (https://wpt.live/document-policy/required-policy/separate-document-policies.html:48:5)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at Object.<anonymous> (https://wpt.live/resources/testharness.js:2717:32)
    at https://wpt.live/document-policy/required-policy/separate-document-policies.html:20:18
Asserts run
Fail
assert_equals(null, "lossless-images-max-bpp=0.9")
    at Test.<anonymous> ( /document-policy/required-policy/separate-document-policies.html:48:5)
FailAny unrelated policy directives should combine with the parent's required policy.assert_equals: expected (string) "no-font-display-late-swap, lossless-images-max-bpp=1.0" but got (object) null
    at Test.<anonymous> (https://wpt.live/document-policy/required-policy/separate-document-policies.html:58:5)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at Object.<anonymous> (https://wpt.live/resources/testharness.js:2717:32)
    at https://wpt.live/document-policy/required-policy/separate-document-policies.html:20:18
Asserts run
Fail
assert_equals(null, "no-font-display-late-swap, lossless-images-max-bpp=1.0")
    at Test.<anonymous> ( /document-policy/required-policy/separate-document-policies.html:58:5)