зеркало из https://github.com/mozilla/pjs.git
Trying to figure out why this test is failing silently. r=sayrer
This commit is contained in:
Родитель
9eb9b3d7da
Коммит
f34690f3e7
|
@ -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);
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче