Follow up to bug 620101 put the consume pending events functionality inside the for loop where it was originally intended to be. a=test-only fix.

This commit is contained in:
Mark Banner 2011-01-14 15:09:34 +00:00
parent 19889ce636
commit efbea798e6

View File

@ -249,13 +249,13 @@ function test_kill_2()
process.kill();
}
catch (e) { }
}
// We need to ensure that we process any events on the main thread -
// this allow threads to clean up properly and avoid out of memory
// errors during the test.
while (thread.hasPendingEvents())
thread.processNextEvent(false);
// We need to ensure that we process any events on the main thread -
// this allow threads to clean up properly and avoid out of memory
// errors during the test.
while (thread.hasPendingEvents())
thread.processNextEvent(false);
}
}
function run_test() {