mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
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:
parent
19889ce636
commit
efbea798e6
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user