зеркало из https://github.com/mozilla/pjs.git
Trying to figure out why this test is failing silently. r=sayrer
This commit is contained in:
Родитель
fc8cc3e83a
Коммит
b5089a3e3f
|
@ -218,10 +218,12 @@ var httpserv = null;
|
|||
function run_test()
|
||||
{
|
||||
print("*** DOWNLOAD MANAGER TEST - starting tests");
|
||||
/*
|
||||
httpserv = new nsHttpServer();
|
||||
httpserv.registerDirectory("/", dirSvc.get("ProfD", Ci.nsILocalFile));
|
||||
httpserv.start(4444);
|
||||
print("*** DOWNLOAD MANAGER TEST - server started");
|
||||
*/
|
||||
|
||||
// our download listener
|
||||
var listener = {
|
||||
|
@ -294,13 +296,19 @@ function run_test()
|
|||
|
||||
cleanup();
|
||||
|
||||
var thread = Cc["@mozilla.org/thread-manager;1"]
|
||||
.getService().currentThread;
|
||||
/*
|
||||
try {
|
||||
var thread = Cc["@mozilla.org/thread-manager;1"]
|
||||
.getService().currentThread;
|
||||
|
||||
while (!httpserv.isStopped())
|
||||
thread.processNextEvent(true);
|
||||
while (!httpserv.isStopped())
|
||||
thread.processNextEvent(true);
|
||||
|
||||
// get rid of any pending requests
|
||||
while (thread.hasPendingEvents())
|
||||
thread.processNextEvent(true);
|
||||
// get rid of any pending requests
|
||||
while (thread.hasPendingEvents())
|
||||
thread.processNextEvent(true);
|
||||
} catch (e) {
|
||||
print(e);
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче