LayoutTests:
authorkmccullo <kmccullo@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Aug 2007 19:05:17 +0000 (19:05 +0000)
committerkmccullo <kmccullo@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Aug 2007 19:05:17 +0000 (19:05 +0000)
        Reviewed by Adam.

        - Added tests for regressions in other components.  In this case we also need to add a skipped list for Tiger since this functionality didn't exist in 10.4.

        * fast/cookies: Added.
        * fast/cookies/local-file-can-set-cookies-expected.txt: Added.
        * fast/cookies/local-file-can-set-cookies.html: Added.
        * platform/mac-tiger: Added.
        * platform/mac-tiger/Skipped: Added.

WebKitTools:

        Reviewed by Adam.

        - Added tests for regressions in other components.  In this case we also need to add a skipped list for Tiger since this functionality didn't exist in 10.4.

        * Scripts/run-webkit-tests:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25110 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/cookies/local-file-can-set-cookies-expected.txt [new file with mode: 0644]
LayoutTests/fast/cookies/local-file-can-set-cookies.html [new file with mode: 0644]
LayoutTests/platform/mac-tiger/Skipped [new file with mode: 0644]
WebKitTools/ChangeLog
WebKitTools/Scripts/run-webkit-tests

index c2767f2..d0aae4c 100644 (file)
@@ -1,3 +1,15 @@
+2007-08-16  Kevin McCullough  <kmccullough@apple.com>
+
+        Reviewed by Adam.
+
+        - Added tests for regressions in other components.  In this case we also need to add a skipped list for Tiger since this functionality didn't exist in 10.4.
+
+        * fast/cookies: Added.
+        * fast/cookies/local-file-can-set-cookies-expected.txt: Added.
+        * fast/cookies/local-file-can-set-cookies.html: Added.
+        * platform/mac-tiger: Added.
+        * platform/mac-tiger/Skipped: Added.
+
 2007-08-16  Justin Garcia  <justin.garcia@apple.com>
 
         Reviewed by Maciej.
diff --git a/LayoutTests/fast/cookies/local-file-can-set-cookies-expected.txt b/LayoutTests/fast/cookies/local-file-can-set-cookies-expected.txt
new file mode 100644 (file)
index 0000000..09ccb0a
--- /dev/null
@@ -0,0 +1,10 @@
+This test checks that a local file can set cookies. See: rdar://problem/5379090 REGRESSION: Cannot set cookies for local files
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS document.cookie is 'ppkcookie1=testcookie'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
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 (file)
index 0000000..92f088c
--- /dev/null
@@ -0,0 +1,22 @@
+<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');
+
+    document.cookie = 'ppkcookie1=testcookie; expires=Thu, 2 Aug 2008 20:47:11 UTC; path=/'
+    shouldBe("document.cookie", "'ppkcookie1=testcookie'");
+
+    var successfullyParsed = true;
+</script>
+<script src="../../fast/js/resources/js-test-post.js"></script>
+</body>
+</html>
+
diff --git a/LayoutTests/platform/mac-tiger/Skipped b/LayoutTests/platform/mac-tiger/Skipped
new file mode 100644 (file)
index 0000000..982f2f4
--- /dev/null
@@ -0,0 +1,3 @@
+# 
+fast/cookies/local-file-can-set-cookies.html
+
index 31e1b3b..71a3095 100644 (file)
@@ -1,3 +1,11 @@
+2007-08-16  Kevin McCullough  <kmccullough@apple.com>
+
+        Reviewed by Adam.
+
+        - Added tests for regressions in other components.  In this case we also need to add a skipped list for Tiger since this functionality didn't exist in 10.4.
+
+        * Scripts/run-webkit-tests:
+
 2007-08-15  Timothy Hatcher  <timothy@apple.com>
 
         Look for the new Xcode 3 preference key (PBXApplicationwideBuildSettings) for the global build locations.
index 9eb7506..32ef30e 100755 (executable)
@@ -123,7 +123,9 @@ my $diffsTag = "diffs";
 my $errorTag = "stderr";
 
 my $useWinSkipped = 0;
-if (isLeopard()) {
+if (isTiger()) {
+    $platform = "mac-tiger";
+} elsif (isLeopard()) {
     $platform = "mac-leopard";
 } elsif (isOSX()) {
     $platform = "mac";