зеркало из https://github.com/mozilla/gecko-dev.git
Bug 916433 - The task in the "tail.js" file of the Downloads API tests is not executed. r=felipe
This commit is contained in:
Родитель
f2937c89c1
Коммит
4773b3505a
|
@ -14,6 +14,9 @@
|
|||
|
||||
add_task(function test_common_terminate()
|
||||
{
|
||||
// Ensure all the pending HTTP requests have a chance to finish.
|
||||
continueResponses();
|
||||
|
||||
// Stop the HTTP server. We must do this inside a task in "tail.js" until the
|
||||
// xpcshell testing framework supports asynchronous termination functions.
|
||||
let deferred = Promise.defer();
|
||||
|
|
|
@ -16,3 +16,9 @@ let gUseLegacySaver = false;
|
|||
|
||||
let scriptFile = do_get_file("common_test_Download.js");
|
||||
Services.scriptloader.loadSubScript(NetUtil.newURI(scriptFile).spec);
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//// Termination
|
||||
|
||||
let tailFile = do_get_file("tail.js");
|
||||
Services.scriptloader.loadSubScript(NetUtil.newURI(tailFile).spec);
|
||||
|
|
|
@ -335,3 +335,8 @@ add_task(function test_exit_private_browsing()
|
|||
continueResponses();
|
||||
});
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//// Termination
|
||||
|
||||
let tailFile = do_get_file("tail.js");
|
||||
Services.scriptloader.loadSubScript(NetUtil.newURI(tailFile).spec);
|
||||
|
|
|
@ -16,3 +16,9 @@ let gUseLegacySaver = true;
|
|||
|
||||
let scriptFile = do_get_file("common_test_Download.js");
|
||||
Services.scriptloader.loadSubScript(NetUtil.newURI(scriptFile).spec);
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//// Termination
|
||||
|
||||
let tailFile = do_get_file("tail.js");
|
||||
Services.scriptloader.loadSubScript(NetUtil.newURI(tailFile).spec);
|
||||
|
|
|
@ -565,3 +565,9 @@ add_task(function test_DownloadSummary_notifications()
|
|||
yield download.start();
|
||||
do_check_true(receivedOnSummaryChanged);
|
||||
});
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//// Termination
|
||||
|
||||
let tailFile = do_get_file("tail.js");
|
||||
Services.scriptloader.loadSubScript(NetUtil.newURI(tailFile).spec);
|
||||
|
|
|
@ -290,3 +290,9 @@ add_task(function test_save_reload_unknownProperties()
|
|||
do_check_eq(itemsForLoad[2].saver._unknownProperties.saver2,
|
||||
"download3saver2");
|
||||
});
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//// Termination
|
||||
|
||||
let tailFile = do_get_file("tail.js");
|
||||
Services.scriptloader.loadSubScript(NetUtil.newURI(tailFile).spec);
|
||||
|
|
|
@ -164,3 +164,9 @@ add_task(function test_getTemporaryDownloadsDirectory()
|
|||
let downloadDir = yield Downloads.getTemporaryDownloadsDirectory();
|
||||
do_check_true(downloadDir instanceof Ci.nsIFile);
|
||||
});
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//// Termination
|
||||
|
||||
let tailFile = do_get_file("tail.js");
|
||||
Services.scriptloader.loadSubScript(NetUtil.newURI(tailFile).spec);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[DEFAULT]
|
||||
head = head.js
|
||||
tail = tail.js
|
||||
tail =
|
||||
|
||||
[test_DownloadCore.js]
|
||||
[test_DownloadIntegration.js]
|
||||
|
|
Загрузка…
Ссылка в новой задаче