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

This commit is contained in:
sdwilsh%shawnwilsher.com 2007-05-22 02:26:12 +00:00
Родитель 9eb9b3d7da
Коммит f34690f3e7
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);
}
*/
}