Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / htmlimports / csp-import-block-but-nonce-nested.html
blobe7e9461fbc75c7f619e7a2fb1350a7d0438fb6af
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-Security-Policy" content="script-src http://localhost:8000 'nonce-hello'">
5 <link id="target" rel="import" href="http://localhost:8000/htmlimports/resources/child-having-nonce-policy.cgi">
6 </head>
7 <body>
8 <script nonce="hello">
9 function test(actual, expected, message)
11 if (actual === expected)
12 console.log("PASS");
13 else
14 console.log("FAIL:" + message);
17 if (window.testRunner)
18 testRunner.dumpAsText();
20 test(document.inlineScriptHasRun, undefined, "document.inlineScriptHasRun");
21 test(document.externalScriptHasRun, undefined, "document.externalScriptHasRun");
22 test(document.externalScriptWithNonceHasRun, true, "document.externalScriptWithNonceHasRun");
23 test(document.inlineScriptWithNonceHasRun, true, "document.inlineScriptWithNonceHasRun");
24 test(document.evalFromInlineHasRun, undefined, "document.evalFromInlineHasRun");
25 test(document.evalFromExternalHasRun, undefined, "document.evalFromExternalHasRun");
26 test(document.evalFromInlineWithNonceHasRun, undefined, "document.evalFromInlineWithNonceHasRun");
27 test(document.evalFromExternalWithNonceHasRun, undefined, "document.evalFromExternalWithNonceHasRun");
28 </script>
29 </body>
30 </html>