зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
272fce30cc
Коммит
5dd8418ac4
|
@ -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)") {
|
||||
|
|
Загрузка…
Ссылка в новой задаче