Make the test not fail when the transition has completed already but the event hasn't fired yet. (Bug 537573) a=philor for APPROVAL REQUIRED

This commit is contained in:
L. David Baron 2010-04-23 19:59:48 -07:00
Родитель dd9bcaffc0
Коммит cd07aa2832
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -249,11 +249,15 @@ $("five").style.color = "lime";
$("six").style.color = "lime";
setTimeout(function() {
if (cs("five") != "rgb(0, 255, 0)" &&
cs("six") != "rgb(0, 255, 0)") {
// The transition hasn't finished already.
did_stops = true;
}
$("five").style.MozTransitionProperty = "margin-left";
$("six").style.MozTransitionDuration = "0s";
$("six").style.MozTransitionDelay = "0s";
$("six").style.color = "blue";
did_stops = true;
}, 100);
function poll_start_reversal() {
if (cs("four").color != "rgb(0, 0, 255)") {