Bug 450450. Add some more debugging output to try to diagnose random orange.
authorTimothy Nikkel <tnikkel@gmail.com>
Tue, 08 Jun 2010 14:18:30 -0500
changeset 43323 fbea64d460810489b9215f00d0bfd50383217b04
parent 43322 12ea060fa735e65799cc40bfebcf49369a1960a1
child 43324 6fce6521907aa973189449838eea6f935a371e2f
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs450450
milestone1.9.3a5pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 450450. Add some more debugging output to try to diagnose random orange.
extensions/cookie/test/file_testloadflags.js
--- a/extensions/cookie/test/file_testloadflags.js
+++ b/extensions/cookie/test/file_testloadflags.js
@@ -18,16 +18,29 @@ function setupTest(uri, domain, cookies,
   netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
 
   Components.classes["@mozilla.org/preferences-service;1"]
             .getService(Components.interfaces.nsIPrefBranch)
             .setIntPref("network.cookie.cookieBehavior", 1);
 
   var cs = Components.classes["@mozilla.org/cookiemanager;1"]
                      .getService(Components.interfaces.nsICookieManager2);
+
+  ok(true, "we are going to remove these cookies");
+  var count = 0;
+  var list = cs.enumerator;
+  while (list.hasMoreElements()) {
+    var cookie = list.getNext().QueryInterface(Components.interfaces.nsICookie);
+    ok(true, "cookie: " + cookie);
+    ok(true, "cookie host " + cookie.host + " path " + cookie.path + " name " + cookie.name +
+       " value " + cookie.value + " isSecure " + cookie.isSecure + " expires " + cookie.expires);
+    ++count;
+  }
+  ok(true, count + " cookies");
+
   cs.removeAll();
   cs.add(domain, "", "oh", "hai", false, false, true, Math.pow(2, 62));
   is(cs.countCookiesFromHost(domain), 1, "number of cookies for domain " + domain);
 
   gExpectedCookies = cookies;
   gExpectedLoads = loads;
   gExpectedHeaders = headers;
 
@@ -161,10 +174,10 @@ function runTest() {
     ok(true, "cookie: " + cookie);
     ok(true, "cookie host " + cookie.host + " path " + cookie.path + " name " + cookie.name +
        " value " + cookie.value + " isSecure " + cookie.isSecure + " expires " + cookie.expires);
     ++count;
   }
   is(count, gExpectedCookies, "total number of cookies");
   cs.removeAll();
 
-  finishTest();
+  setTimeout(finishTest, 5000);
 }