Backed out changeset d407ee4dabcc because it causes some tests to go orange

This commit is contained in:
Ehsan Akhgari 2011-04-16 23:47:06 -04:00
parent d6e8bc6ecd
commit 135eb99ddb
6 changed files with 8 additions and 16 deletions

View File

@ -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();

View File

@ -13,7 +13,7 @@ function handleRequest(request, response) {
' parent.done();' +
' document.close();' +
'}' +
'setTimeout(doWrite, 0);' +
'setTimeout(doWrite, 1);' +
'</script>'
);

View File

@ -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>

View File

@ -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);

View File

@ -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>

View File

@ -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>