mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00
Bug 1213121 - Wait for at least one close event to fire before ending close-multiple test, to prevent instability, r=bz
This commit is contained in:
parent
301563017d
commit
6094eaba0c
@ -14,9 +14,13 @@ async_test(function(t) {
|
||||
ws.close();
|
||||
ws.close();
|
||||
ws.close();
|
||||
setTimeout(t.step_func(function() {
|
||||
var f = t.step_func(function() {
|
||||
if (i < 1) {
|
||||
setTimeout(f, 500);
|
||||
}
|
||||
assert_equals(i, 1);
|
||||
t.done()
|
||||
}), 50);
|
||||
});
|
||||
setTimeout(f, 500);
|
||||
});
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user