bustage fix from bug 459114, bad test change
authorTed Mielczarek <ted.mielczarek@gmail.com>
Thu, 06 Aug 2009 14:04:21 -0400
changeset 31184 eaaff4b3401c8bd2543d395d8aaea584cb9c9781
parent 31183 d6a04f1f8a74fcf57d3481698c2d672644533db5
child 31185 bae405b94b961ea90c8793b05e19992ffe7bed48
push id8414
push usertmielczarek@mozilla.com
push dateThu, 06 Aug 2009 18:04:38 +0000
treeherdermozilla-central@eaaff4b3401c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs459114
milestone1.9.2a1pre
bustage fix from bug 459114, bad test change
toolkit/components/downloads/test/unit/test_bug_401430.js
--- a/toolkit/components/downloads/test/unit/test_bug_401430.js
+++ b/toolkit/components/downloads/test/unit/test_bug_401430.js
@@ -43,17 +43,18 @@ const dm = Cc["@mozilla.org/download-man
 // Make sure Unicode is supported:
 // U+00E3 : LATIN SMALL LETTER A WITH TILDE
 // U+041B : CYRILLIC CAPITAL LETTER EL
 // U+3056 : HIRAGANA LETTER ZA
 const resultFileName = "test\u00e3\u041b\u3056" + Date.now() + ".doc";
 
 function checkResult() {
   // delete the saved file (this doesn't affect the "recent documents" list)
-  var resultFile = do_get_file(resultFileName);
+  var resultFile = dirSvc.get("ProfD", Ci.nsIFile);
+  resultFile.append(resultFileName);
   resultFile.remove(false);
 
   do_check_true(checkRecentDocsFor(resultFileName));
   do_test_finished();
 }
 
 function checkRecentDocsFor(aFileName) {
   var recentDocsKey = Cc["@mozilla.org/windows-registry-key;1"].