OLD | NEW |
1 PASS document.inlineScriptHasRun is undefined | 1 CONSOLE ERROR: Refused to load the script 'http://localhost:8080/htmlimports/res
ources/external-script.js' because it violates the following Content Security Po
licy directive: "script-src http://localhost:8000 'nonce-hello'". |
2 PASS document.externalScriptHasRun is undefined | |
3 PASS document.externalScriptWithNonceHasRun is true | |
4 PASS document.inlineScriptWithNonceHasRun is true | |
5 PASS document.evalFromInlineHasRun is undefined | |
6 PASS document.evalFromExternalHasRun is undefined | |
7 FAIL document.evalFromInlineWithNonceHasRun should be undefined (of type undefin
ed). Was true (of type boolean). | |
8 FAIL document.evalFromExternalWithNonceHasRun should be undefined (of type undef
ined). Was true (of type boolean). | |
9 PASS successfullyParsed is true | |
10 | 2 |
11 TEST COMPLETE | 3 CONSOLE ERROR: Refused to evaluate a string as JavaScript because 'unsafe-eval'
is not an allowed source of script in the following Content Security Policy dire
ctive: "script-src http://localhost:8000 'nonce-hello'". |
12 | 4 |
| 5 CONSOLE ERROR: line 4: Uncaught EvalError: Refused to evaluate a string as JavaS
cript because 'unsafe-eval' is not an allowed source of script in the following
Content Security Policy directive: "script-src http://localhost:8000 'nonce-hell
o'". |
| 6 |
| 7 CONSOLE ERROR: line 6: Refused to execute inline script because it violates the
following Content Security Policy directive: "script-src http://localhost:8000 '
nonce-hello'". Either the 'unsafe-inline' keyword, a hash ('sha256-...'), or a n
once ('nonce-...') is required to enable inline execution. |
| 8 |
| 9 CONSOLE ERROR: Refused to evaluate a string as JavaScript because 'unsafe-eval'
is not an allowed source of script in the following Content Security Policy dire
ctive: "script-src http://localhost:8000 'nonce-hello'". |
| 10 |
| 11 CONSOLE ERROR: line 13: Uncaught EvalError: Refused to evaluate a string as Java
Script because 'unsafe-eval' is not an allowed source of script in the following
Content Security Policy directive: "script-src http://localhost:8000 'nonce-hel
lo'". |
| 12 |
| 13 CONSOLE MESSAGE: line 12: PASS |
| 14 CONSOLE MESSAGE: line 12: PASS |
| 15 CONSOLE MESSAGE: line 12: PASS |
| 16 CONSOLE MESSAGE: line 12: PASS |
| 17 CONSOLE MESSAGE: line 12: PASS |
| 18 CONSOLE MESSAGE: line 12: PASS |
| 19 CONSOLE MESSAGE: line 12: PASS |
| 20 CONSOLE MESSAGE: line 12: PASS |
| 21 |
OLD | NEW |