mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Backed out changeset d407ee4dabcc because it causes some tests to go orange
This commit is contained in:
parent
d6e8bc6ecd
commit
135eb99ddb
@ -39,9 +39,9 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=430050
|
||||
null,
|
||||
'UTF-8');
|
||||
}
|
||||
setTimeout(endTest, 0);
|
||||
}, true);
|
||||
document.documentElement.setAttribute("foo", "bar");
|
||||
setTimeout(endTest, 100);
|
||||
}
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
@ -13,7 +13,7 @@ function handleRequest(request, response) {
|
||||
' parent.done();' +
|
||||
' document.close();' +
|
||||
'}' +
|
||||
'setTimeout(doWrite, 0);' +
|
||||
'setTimeout(doWrite, 1);' +
|
||||
'</script>'
|
||||
);
|
||||
|
||||
|
@ -35,10 +35,10 @@ document.addEventListener('readystatechange', function(event) {
|
||||
window.addEventListener('readystatechange', function(event) {
|
||||
ok(false, 'window listener', 'readystatechange event should not bubble to window');
|
||||
}, false);
|
||||
addLoadEvent(function() {
|
||||
setTimeout(function() {
|
||||
is(i, states.length, 'readystatechange event count');
|
||||
SimpleTest.finish();
|
||||
});
|
||||
}, 1000);
|
||||
|
||||
</script>
|
||||
</pre>
|
||||
|
@ -40,7 +40,7 @@ catch(ex){
|
||||
setTimeout(function(){
|
||||
ok(true,"setTimeout still executes after bogus script insertion");
|
||||
window.error = errorHandler;
|
||||
SimpleTest.finish();}, 0);
|
||||
SimpleTest.finish();}, 200);
|
||||
|
||||
|
||||
|
||||
|
@ -64,7 +64,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=513194
|
||||
consoleListener.finish();
|
||||
consoleService.unregisterListener(consoleListener);
|
||||
}
|
||||
setTimeout(done, 0);
|
||||
setTimeout(done, 1);
|
||||
</script>
|
||||
</pre>
|
||||
</body>
|
||||
|
@ -48,11 +48,11 @@ SimpleTest.waitForFocus(function() {
|
||||
newInput.focus();
|
||||
newInput.dispatchEvent(event);
|
||||
|
||||
hitEventLoop(function() {
|
||||
setTimeout(function() {
|
||||
ok(!popupShown, "Popup must not be opened");
|
||||
SpecialPowers.removeAutoCompletePopupEventListener(window, listener);
|
||||
SimpleTest.finish();
|
||||
}, 100);
|
||||
}, 1000);
|
||||
}, 0);
|
||||
}, false);
|
||||
|
||||
@ -61,14 +61,6 @@ SimpleTest.waitForFocus(function() {
|
||||
synthesizeKey("VK_ENTER", {});
|
||||
});
|
||||
|
||||
function hitEventLoop(func, times) {
|
||||
if (times > 0) {
|
||||
setTimeout(hitEventLoop, 0, func, times - 1);
|
||||
} else {
|
||||
setTimeout(func, 0);
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
</pre>
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user