This tests the result of a valid style hash. It passes if this text is green, and a "PASS" alert for p1 is fired.

This tests the result of a valid style hash. It passes if this text is green, and a "PASS" alert for p2 is fired.

This tests the result of a valid style hash. It passes if this text is green, and a "PASS" alert for p3 is fired.

This tests the result of a valid style hash. It passes if this text is green, and a "PASS" alert for p4 is fired.

Summary

Harness status: OK

Found 1 tests

Details

ResultTest NameMessage
PassExpecting alerts: ["PASS (1/4): The '#p1' element's text is green, which means the style was correctly applied.","PASS (2/4): The '#p2' element's text is green, which means the style was correctly applied.","PASS (3/4): The '#p3' element's text is green, which means the style was correctly applied.","PASS (4/4): The '#p4' element's text is green, which means the style was correctly applied."]
Asserts run
Pass
assert_equals("PASS (1/4): The '#p1' element's text is green, which means the style was correctly applied.", "PASS (1/4): The '#p1' element's text is green, which means the style was correctly applied.")
    at Test.<anonymous> ( /content-security-policy/style-src/stylehash-allowed.sub.html:27:25)
Pass
assert_equals("PASS (2/4): The '#p2' element's text is green, which means the style was correctly applied.", "PASS (2/4): The '#p2' element's text is green, which means the style was correctly applied.")
    at Test.<anonymous> ( /content-security-policy/style-src/stylehash-allowed.sub.html:27:25)
Pass
assert_equals("PASS (3/4): The '#p3' element's text is green, which means the style was correctly applied.", "PASS (3/4): The '#p3' element's text is green, which means the style was correctly applied.")
    at Test.<anonymous> ( /content-security-policy/style-src/stylehash-allowed.sub.html:27:25)
Pass
assert_equals("PASS (4/4): The '#p4' element's text is green, which means the style was correctly applied.", "PASS (4/4): The '#p4' element's text is green, which means the style was correctly applied.")
    at Test.<anonymous> ( /content-security-policy/style-src/stylehash-allowed.sub.html:27:25)