Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Unified Diff: LayoutTests/http/tests/htmlimports/csp-import-block-but-domain-nested.html

Issue 183883004: Let ContentSecurityPolicy shared between imports and the master. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Adding guardRef()/guardDeref() Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/htmlimports/csp-import-block-but-domain-nested.html
diff --git a/LayoutTests/http/tests/htmlimports/csp-import-block-but-domain-nested.html b/LayoutTests/http/tests/htmlimports/csp-import-block-but-domain-nested.html
index 44436fc094585fa2a16f112a767216008d12f2ff..7600ac4bcb7d8ac6755af50a62c5afdc93f9cd2b 100644
--- a/LayoutTests/http/tests/htmlimports/csp-import-block-but-domain-nested.html
+++ b/LayoutTests/http/tests/htmlimports/csp-import-block-but-domain-nested.html
@@ -1,20 +1,10 @@
<!DOCTYPE html>
<html>
<head>
-<script>
-</script>
-<link id="target" rel="import" href="resources/child-having-domain-policy.html">
-<script src="/js-test-resources/js-test.js"></script>
+<meta http-equiv="Content-Security-Policy" content="script-src http://localhost:8000">
+<link id="target" rel="import" href="http://localhost:8000/htmlimports/resources/child-having-domain-policy.cgi">
</head>
<body>
-<pre id="result"></pre>
-<script>
-shouldBe("document.inlineScriptHasRun", "undefined");
-shouldBe("document.externalScriptHasRun", "undefined");
-shouldBeTrue("document.corsExternalScriptHasRun");
-shouldBe("document.evalFromInlineHasRun", "undefined");
-shouldBe("document.evalFromExternalHasRun", "undefined");
-shouldBe("document.evalFromCorsExternalHasRun", "undefined");
-</script>
+<script src="http://localhost:8000/htmlimports/resources/csp-import-block-but-domain.js"></script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698