another test fix followup from bug 459114

This commit is contained in:
Ted Mielczarek 2009-08-06 16:17:22 -04:00
parent 7c31c3d568
commit 3a583f56de
2 changed files with 7 additions and 3 deletions

View File

@ -41,6 +41,7 @@ DEPTH = .
topsrcdir = @top_srcdir@
srcdir = @srcdir@
run_for_side_effects := $(shell echo "MAKE: $(MAKE)")
include $(DEPTH)/config/autoconf.mk
DIRS = config

View File

@ -48,8 +48,7 @@ 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 = dirSvc.get("ProfD", Ci.nsIFile);
resultFile.append(resultFileName);
var resultFile = do_get_file(resultFileName);
resultFile.remove(false);
do_check_true(checkRecentDocsFor(resultFileName));
@ -118,5 +117,9 @@ function run_test()
dm.addListener(listener);
dm.addListener(getDownloadListener());
var dl = addDownload({resultFileName: resultFileName});
// need to save the file to the CWD, because the profile dir is in $TEMP,
// and Windows apparently doesn't like putting things from $TEMP into
// the recent files list.
var dl = addDownload({resultFileName: resultFileName,
targetFile: do_get_file(resultFileName, true)});
}