blob: 5967e9c9dd32f6d53df86319a9f0b2d6556926ab [file] [log] [blame]
This is a testharness.js-based test.
PASS Cross-origin `importScripts()` not blocked in http:
PASS `eval()` not blocked in http:
PASS `setTimeout([string])` not blocked in http:
PASS Cross-origin `importScripts()` blocked in http:?pipe=sub|header(Content-Security-Policy,script-src%20%27self%27
FAIL `eval()` blocked in http:?pipe=sub|header(Content-Security-Policy,script-src%20%27self%27 assert_throws: `eval()` should throw 'EvalError'. function "_ => eval("1 + 1")" did not throw
PASS `setTimeout([string])` blocked in http:?pipe=sub|header(Content-Security-Policy,script-src%20%27self%27
PASS Cross-origin `importScripts()` blocked in http:?pipe=sub|header(Content-Security-Policy,default-src%20%27self%27
FAIL `eval()` blocked in http:?pipe=sub|header(Content-Security-Policy,default-src%20%27self%27 assert_throws: `eval()` should throw 'EvalError'. function "_ => eval("1 + 1")" did not throw
PASS `setTimeout([string])` blocked in http:?pipe=sub|header(Content-Security-Policy,default-src%20%27self%27
Harness: the test ran to completion.