mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
another test fix followup from bug 459114
This commit is contained in:
parent
7c31c3d568
commit
3a583f56de
@ -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
|
||||
|
@ -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)});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user