diff --git a/content/html/content/test/test_bug209275.xhtml b/content/html/content/test/test_bug209275.xhtml
index ef53e897bf68..19e43cbbef03 100644
--- a/content/html/content/test/test_bug209275.xhtml
+++ b/content/html/content/test/test_bug209275.xhtml
@@ -153,13 +153,13 @@ function run() {
// Because link coloring is asynchronous, we wait until it is updated (or we
// timeout and fail anyway).
while (getColor($('colorlink')) != visitedColor) {
- setTimeout(continueTest, 10);
+ setTimeout(continueTest, 0);
yield;
}
is(getColor($('colorlink')), visitedColor,
"Wrong link color after base change.");
while (getFill($('ellipselink')) != visitedFill) {
- setTimeout(continueTest, 10);
+ setTimeout(continueTest, 0);
yield;
}
is(getFill($('ellipselink')), visitedFill,
diff --git a/content/html/content/test/test_bug481335.xhtml b/content/html/content/test/test_bug481335.xhtml
index 525ff0e11e5a..f121f6981250 100644
--- a/content/html/content/test/test_bug481335.xhtml
+++ b/content/html/content/test/test_bug481335.xhtml
@@ -59,7 +59,7 @@ function checkLinkColor(aElmId, aExpectedColor, aMessage) {
return utils.getVisitedDependentComputedStyle($(aElmId), "", "color");
}
while (getColor() != aExpectedColor) {
- setTimeout(continueTest, 10);
+ setTimeout(continueTest, 0);
return false;
}
is(getColor(), aExpectedColor, aMessage);