Fix unit test bustage from bug 748726. a=bustage-fix
authorMark Banner <bugzilla@standard8.plus.com>
Sat, 28 Apr 2012 18:44:05 +0100
changeset 11283 3745a9f5d2287b14c9d3f2e5e49cf5ff62984a76
parent 11282 9d82860ddf8daf23e6ca96b0c876a7a21e6a238a
child 11284 028c8a8a8beb6b53a9812a5fd9bac3505203f5ac
push idunknown
push userunknown
push dateunknown
reviewersbustage-fix
bugs748726
Fix unit test bustage from bug 748726. a=bustage-fix
mailnews/local/test/unit/test_movemailDownload.js
--- a/mailnews/local/test/unit/test_movemailDownload.js
+++ b/mailnews/local/test/unit/test_movemailDownload.js
@@ -29,17 +29,17 @@ function run_test()
   }
 
   loadLocalMailAccount();
   
   let acctMgr = Cc["@mozilla.org/messenger/account-manager;1"]
                   .getService(Ci.nsIMsgAccountManager);
   var incoming = acctMgr.createIncomingServer("", "", "movemail");
   let workingDir = Services.dirsvc.get("CurWorkD", Ci.nsIFile);
-  let workingDirFile = workingDir.clone();
+  let workingDirFile = workingDir.clone().QueryInterface(Ci.nsILocalFile);
   let fullPath = workingDirFile.path + "/data/movemailspool";
   workingDirFile.initWithPath(fullPath);
   // movemail truncates spool file, so make a copy, and use that
   workingDirFile.copyTo(null, "movemailspool-copy");
   fullPath += "-copy";
   dump("full path = " + fullPath + "\n");
   incoming.setCharValue("spoolDir", fullPath);
   incoming.QueryInterface(Ci.nsILocalMailIncomingServer);