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

Unified Diff: LayoutTests/http/tests/htmlimports/csp-import-block-but-domain.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
« no previous file with comments | « no previous file | LayoutTests/http/tests/htmlimports/csp-import-block-but-domain-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/htmlimports/csp-import-block-but-domain.html
diff --git a/LayoutTests/http/tests/htmlimports/csp-import-block-but-domain.html b/LayoutTests/http/tests/htmlimports/csp-import-block-but-domain.html
index 54c0078563b41b3f41ea12ae1233eb246f65ea1d..42e48bcb18fe009deb3ee001c05b02dcb8b8b43f 100644
--- a/LayoutTests/http/tests/htmlimports/csp-import-block-but-domain.html
+++ b/LayoutTests/http/tests/htmlimports/csp-import-block-but-domain.html
@@ -1,19 +1,10 @@
<!DOCTYPE html>
<html>
<head>
-<script>
-</script>
-<link id="target" rel="import" href="resources/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/having-domain-policy.cgi">
</head>
<body>
-<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>
« no previous file with comments | « no previous file | LayoutTests/http/tests/htmlimports/csp-import-block-but-domain-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698