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(); process.kill();
} }
catch (e) { } catch (e) { }
}
// We need to ensure that we process any events on the main thread - // 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 // this allow threads to clean up properly and avoid out of memory
// errors during the test. // errors during the test.
while (thread.hasPendingEvents()) while (thread.hasPendingEvents())
thread.processNextEvent(false); thread.processNextEvent(false);
}
} }
function run_test() { function run_test() {