mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1235896 - Make it possible to run browser_download.js with --run-until-failure; r=bkelly
This commit is contained in:
parent
95e56ef3c8
commit
2ad5769e79
@ -3,6 +3,7 @@
|
||||
|
||||
Cu.import('resource://gre/modules/Services.jsm');
|
||||
var Downloads = Cu.import("resource://gre/modules/Downloads.jsm", {}).Downloads;
|
||||
var DownloadsCommon = Cu.import("resource:///modules/DownloadsCommon.jsm", {}).DownloadsCommon;
|
||||
Cu.import('resource://gre/modules/NetUtil.jsm');
|
||||
|
||||
var gTestRoot = getRootDirectory(gTestPath).replace("chrome://mochitests/content/",
|
||||
@ -60,6 +61,7 @@ function test() {
|
||||
ok(file.exists(), 'download completed');
|
||||
is(file.fileSize, 33, 'downloaded file has correct size');
|
||||
file.remove(false);
|
||||
DownloadsCommon.removeAndFinalizeDownload(aDownload);
|
||||
|
||||
downloadList.removeView(downloadListener);
|
||||
gBrowser.removeTab(tab);
|
||||
|
Loading…
Reference in New Issue
Block a user