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

Unified Diff: LayoutTests/http/tests/htmlimports/block-cookies.html

Issue 15856002: First step of HTMLImports (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Mac build Created 7 years, 7 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/block-cookies.html
diff --git a/LayoutTests/http/tests/htmlimports/block-cookies.html b/LayoutTests/http/tests/htmlimports/block-cookies.html
new file mode 100644
index 0000000000000000000000000000000000000000..ca4593425dc3773e0628a7f37a7ce8a395f1dc3e
--- /dev/null
+++ b/LayoutTests/http/tests/htmlimports/block-cookies.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link id="target" rel="import" href="resources/cookie.cgi">
+<script src="/js-test-resources/js-test-pre.js"></script>
+</head>
+<body>
+<script>
+shouldBe("target.import.querySelector('h1').innerHTML", "'Cookie Sent!'");
+shouldBe("document.cookie.indexOf('htmlimport=hello')", "-1");
+</script>
+<script src="/js-test-resources/js-test-post.js"></script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698