Trying to figure out why this test is failing silently. r=sayrer

This commit is contained in:
sdwilsh@shawnwilsher.com 2007-05-21 19:26:12 -07:00
Родитель fc8cc3e83a
Коммит b5089a3e3f
1 изменённых файлов: 15 добавлений и 7 удалений

Просмотреть файл

@ -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);
}
*/
}