summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/cookies/local-file-can-set-cookies.html
diff options
context:
space:
mode:
Diffstat (limited to 'LayoutTests/fast/cookies/local-file-can-set-cookies.html')
-rw-r--r--LayoutTests/fast/cookies/local-file-can-set-cookies.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/LayoutTests/fast/cookies/local-file-can-set-cookies.html b/LayoutTests/fast/cookies/local-file-can-set-cookies.html
new file mode 100644
index 0000000..10468ae
--- /dev/null
+++ b/LayoutTests/fast/cookies/local-file-can-set-cookies.html
@@ -0,0 +1,23 @@
+<html>
+<head>
+<title>Local File Can Set Cookies</title>
+<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
+<script src="../../fast/js/resources/js-test-pre.js"></script>
+</head>
+
+<body>
+<p id="description"></p>
+<div id="console"></div>
+<script>
+ description('This test checks that a local file can set cookies. See: rdar://problem/5379090 REGRESSION: Cannot set cookies for local files');
+
+ shouldBe("document.cookie.indexOf('ppkcookie1=testcookie')", "-1");
+ document.cookie = 'ppkcookie1=testcookie';
+ shouldBeTrue("document.cookie.indexOf('ppkcookie1=testcookie') >= 0");
+
+ var successfullyParsed = true;
+</script>
+<script src="../../fast/js/resources/js-test-post.js"></script>
+</body>
+</html>
+