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

Unified Diff: LayoutTests/http/tests/htmlimports/csp-not-block-import-in-import.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-not-block-import-in-import.html
diff --git a/LayoutTests/http/tests/htmlimports/csp-not-block-import-in-import.html b/LayoutTests/http/tests/htmlimports/csp-not-block-import-in-import.html
index 9851e6365e02487c987c7acd4830043141afce0c..6c88fa96184c3d6046bfaf25372a7aba6438fd53 100644
--- a/LayoutTests/http/tests/htmlimports/csp-not-block-import-in-import.html
+++ b/LayoutTests/http/tests/htmlimports/csp-not-block-import-in-import.html
@@ -6,14 +6,15 @@
</head>
<body>
<pre id="result"></pre>
+<!-- FIXME: The test should be renamed to csp-block-import-in-import.html -->
<script>
if (window.testRunner)
testRunner.dumpAsText();
-if (window.target.import.querySelector('#cors').import != null)
+if (window.target.import.querySelector('#cors').import == null)
result.innerHTML = "PASS\n";
else
- result.innerHTML = "FAIL: The import should be allowed.\n";
+ result.innerHTML = "FAIL: The import should be blocked.\n";
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698