Summary

Harness status: OK

Found 2 tests

Details

ResultTest NameMessage
Passwindow.trustedTypes.createPolicy() in a sandboxed page with allow-scripts.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       window.trustedTypes.createPolicy("ForbiddenPolicyName",                                        { createHTML: x => x});     }")
    at Test.<anonymous> ( /trusted-types/trusted-types-sandbox-allow-scripts.html:9:5)
Pass
assert_equals("AllowedPolicyName", "AllowedPolicyName")
    at Test.<anonymous> ( /trusted-types/trusted-types-sandbox-allow-scripts.html:15:5)
Pass
assert_equals("[Hello World!]", "[Hello World!]")
    at Test.<anonymous> ( /trusted-types/trusted-types-sandbox-allow-scripts.html:16:5)
PassDefault Trusted Types policy in a sandboxed page with allow-scripts.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => div.innerHTML = "abcd"")
    at Test.<anonymous> ( /trusted-types/trusted-types-sandbox-allow-scripts.html:21:5)
Pass
assert_equals("ABCD", "ABCD")
    at Test.<anonymous> ( /trusted-types/trusted-types-sandbox-allow-scripts.html:25:5)