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

Unified Diff: LayoutTests/http/tests/htmlimports/import-script-nosniff.html

Issue 19762002: [HTML Imports] Let script of imported document running. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Made a test more robust. Created 7 years, 5 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/import-script-nosniff.html
diff --git a/LayoutTests/http/tests/htmlimports/cross-origin.html b/LayoutTests/http/tests/htmlimports/import-script-nosniff.html
similarity index 57%
copy from LayoutTests/http/tests/htmlimports/cross-origin.html
copy to LayoutTests/http/tests/htmlimports/import-script-nosniff.html
index 7a5a496b65499016d530e150a891e64f240255a6..d9a39ec65be3ed9b11c2351cabe29174754ed55b 100644
--- a/LayoutTests/http/tests/htmlimports/cross-origin.html
+++ b/LayoutTests/http/tests/htmlimports/import-script-nosniff.html
@@ -1,12 +1,13 @@
<!DOCTYPE html>
<html>
<head>
-<link id="target" rel="import" href="http://localhost:8080/htmlimports/resources/hello.html">
+<link id="target" rel="import" href="resources/having-sniffing-script.html">
<script src="/js-test-resources/js-test-pre.js"></script>
</head>
<body>
+<pre id="result"></pre>
<script>
-shouldBeNull("target.import");
+shouldBe("document.sniffing", "undefined");
</script>
<script src="/js-test-resources/js-test-post.js"></script>
</body>

Powered by Google App Engine
This is Rietveld 408576698