| Index: LayoutTests/http/tests/htmlimports/resources/csp-import-block-but-domain.js
|
| diff --git a/LayoutTests/http/tests/htmlimports/resources/csp-import-block-but-domain.js b/LayoutTests/http/tests/htmlimports/resources/csp-import-block-but-domain.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ca4d0bea481365d6fd516521dd885232a3772b03
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/htmlimports/resources/csp-import-block-but-domain.js
|
| @@ -0,0 +1,18 @@
|
| +if (window.testRunner)
|
| + testRunner.dumpAsText();
|
| +
|
| +function test(actual, expected, message)
|
| +{
|
| + if (actual === expected)
|
| + console.log("PASS");
|
| + else
|
| + console.log("FAIL:" + message);
|
| +}
|
| +
|
| +test(document.inlineScriptHasRun, undefined, "document.inlineScriptHasRun");
|
| +test(document.externalScriptHasRun, undefined, "document.externalScriptHasRun");
|
| +test(document.corsExternalScriptHasRun, true, "document.corsExternalScriptHasRun");
|
| +test(document.evalFromInlineHasRun, undefined, "document.evalFromInlineHasRun");
|
| +test(document.evalFromExternalHasRun, undefined, "document.evalFromExternalHasRun");
|
| +test(document.evalFromCorsExternalHasRun, undefined, "document.evalFromCorsExternalHasRun");
|
| +
|
|
|