This tests the effect of a valid style-hash value, with one valid style and several invalid ones. It passes if the valid style is applied and a CSP violation is generated.

Summary

Harness status: OK

Found 1 tests

Details

ResultTest NameMessage
PassExpecting alerts: ["PASS: The 'p' element's text is green, which means the style was correctly applied.", "violated-directive=style-src-elem"]
Asserts run
Pass
assert_equals("PASS: The 'p' element's text is green, which means the style was correctly applied.", "PASS: The 'p' element's text is green, which means the style was correctly applied.")
    at Test.<anonymous> ( /content-security-policy/style-src/stylehash-basic-blocked.sub.html:27:25)
Pass
assert_equals("violated-directive=style-src-elem", "violated-directive=style-src-elem")
    at Test.<anonymous> ( /content-security-policy/style-src/stylehash-basic-blocked.sub.html:27:25)