Changeset 57241 in webkit
- Timestamp:
- Apr 7, 2010 4:49:11 PM (14 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r57238 r57241 1 2010-04-07 Eric Seidel <eric@webkit.org> 2 3 Reviewed by Adam Barth. 4 5 Fix two cookie tests to clean up after themselves (so they can be run repeatedly) 6 https://bugs.webkit.org/show_bug.cgi?id=37235 7 8 Tiger's CFNetwork doesn't seem to understand "max-age=-1" so we'll 9 use "expires=some date in the past" to clear cookies instead. 10 I've verified that these tests still work on Snow Leopard. 11 12 * http/tests/xmlhttprequest/resources/cross-origin-set-cookies.php: 13 * http/tests/xmlhttprequest/resources/get-set-cookie.cgi: 14 1 15 2010-04-07 Erik Arvidsson <arv@chromium.org> 2 16 -
trunk/LayoutTests/http/tests/xmlhttprequest/resources/cross-origin-set-cookies.php
r57237 r57241 2 2 $age_string = ""; 3 3 if ($_GET['clear']) { 4 $age_string = " max-age=-1";4 $age_string = "expires=Thu, 19 Mar 1982 11:22:11 GMT"; 5 5 } 6 6 header("Set-Cookie: WK-xhr-cookie-storage=MySpecialValue;$age_string"); -
trunk/LayoutTests/http/tests/xmlhttprequest/resources/get-set-cookie.cgi
r57237 r57241 4 4 my $AGE_STRING = ""; 5 5 if ($ENV{"QUERY_STRING"}) { # Assume any query string means "?clear=1" 6 $AGE_STRING = " max-age=-1";6 $AGE_STRING = "expires=Thu, 19 Mar 1982 11:22:11 GMT"; 7 7 } 8 8 print "Set-Cookie: WK-test=1;$AGE_STRING\n";
Note: See TracChangeset
for help on using the changeset viewer.