Summary

Harness status: OK

Found 2 tests

Details

ResultTest NameMessage
Passeval with plain string throws (both block).
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => {       eval('a="hello there"');     }")
    at Test.<anonymous> ( /trusted-types/csp-block-eval.html:17:5)
Pass
assert_equals(0, 0)
    at Test.<anonymous> ( /trusted-types/csp-block-eval.html:20:5)
Passeval with TrustedScript throws (script-src blocks).
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => {       eval(p.createScript('a="Hello transformed string"'));     }")
    at Test.<anonymous> ( /trusted-types/csp-block-eval.html:25:5)
Pass
assert_equals(0, 0)
    at Test.<anonymous> ( /trusted-types/csp-block-eval.html:28:5)