зеркало из https://github.com/mozilla/gecko-dev.git
Bug 651077 - Make content/html/content/test/test_bug209275.xhtml and content/html/content/test/test_bug481335.xhtml non flaky. r=ehsan
This commit is contained in:
Родитель
d10669b202
Коммит
43e179f390
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче