From ac39fd84d4cfe73e3057dad42eae599dcd232a3b Mon Sep 17 00:00:00 2001 From: Christian Biesinger Date: Fri, 8 Apr 2011 15:39:43 -0700 Subject: [PATCH] fix test failure from bug 643051 / cset b980d0cf9847 --- content/html/content/test/test_bug643051.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/html/content/test/test_bug643051.html b/content/html/content/test/test_bug643051.html index a49609bcb58..03c6c016182 100644 --- a/content/html/content/test/test_bug643051.html +++ b/content/html/content/test/test_bug643051.html @@ -22,6 +22,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=643051 document.cookie = "foo=; expires=Thu, 01-Jan-1970 00:00:01 GMT"; // clear cookie document.cookie = "foo2=; expires=Thu, 01-Jan-1970 00:00:01 GMT"; // clear cookie document.cookie = "foo3=; expires=Thu, 01-Jan-1970 00:00:01 GMT"; // clear cookie +// clear cookie set by another test +document.cookie = "a=; expires=Thu, 01-Jan-1970 00:00:01 GMT"; // single cookie, should work document.cookie = "foo=bar"; @@ -33,6 +35,10 @@ is(document.cookie, "foo=bar; foo2=bar", "Wrong cookie value"); document.cookie = "foo2=baz; foo3=bar"; is(document.cookie, "foo=bar; foo2=baz", "Wrong cookie value"); +// clear cookies again to avoid affecting other tests +document.cookie = "foo=; expires=Thu, 01-Jan-1970 00:00:01 GMT"; +document.cookie = "foo2=; expires=Thu, 01-Jan-1970 00:00:01 GMT"; +document.cookie = "foo3=; expires=Thu, 01-Jan-1970 00:00:01 GMT";