one more attempt to disable hdr chunk fetching test just on ewindows, CLOSED TREE
authorDavid Bienvenu <bienvenu@nventure.com>
Thu, 26 May 2011 21:26:54 -0700
changeset 8054 a5aa5b32235daf50e81c0dead12dec3e464ab16d
parent 8053 2a65b3384a7c82e2255956335df9529bf12d63b6
child 8055 450b97c769ad894b423f850721166aeb09c8307c
push id84
push userbugzilla@standard8.plus.com
push dateTue, 16 Aug 2011 21:25:04 +0000
treeherdercomm-beta@6970c86be3cd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
one more attempt to disable hdr chunk fetching test just on ewindows, CLOSED TREE
mailnews/imap/test/unit/test_imapHdrChunking.js
--- a/mailnews/imap/test/unit/test_imapHdrChunking.js
+++ b/mailnews/imap/test/unit/test_imapHdrChunking.js
@@ -46,16 +46,18 @@ load("../../../resources/messageGenerato
 
 Components.utils.import("resource://gre/modules/Services.jsm");
 Components.utils.import("resource:///modules/mailServices.js");
 // javascript mime emitter functions
 
 // IMAP pump
 load("../../../resources/IMAPpump.js");
 
+setupIMAPPump();
+
 // Dummy message window so we can say the inbox is open in a window.
 var dummyMsgWindow =
 {
   openFolder : gIMAPInbox,
   QueryInterface: XPCOMUtils.generateQI([Ci.nsIMsgWindow,
                                          Ci.nsISupportsWeakReference])
 };
 
@@ -151,23 +153,21 @@ function testHdrsDownloaded() {
 // Cleanup
 function endTest() {
   teardownIMAPPump();
 }
 
 function run_test()
 {
   // XXX Disable on windows for now as it is failing there.
-//  if ("@mozilla.org/windows-registry-key;1" in Cc) {
-//    dump("Disabled on windows due to permanent failures\n");
-    // disable everywhere
+  if ("@mozilla.org/windows-registry-key;1" in Cc) {
+    dump("Disabled on windows due to permanent failures\n");
+    endTest();
     return;
-//  }
-
-  setupIMAPPump();
+  }
 
   // We need to register the dummyMsgWindow so that we'll think the
   // Inbox is open in a folder and fetch headers in chunks.
   MailServices.mailSession.AddMsgWindow(dummyMsgWindow);
   MailServices.mfn.addListener(mfnListener, MailServices.mfn.msgAdded);
 
   // Set chunk size to 3, so we'll have to chain 4 requests to get
   // 10 headers.