зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1423078 - Use assert_greater_than instead of assert_true. r=birtles
MozReview-Commit-ID: C4LZQni43wp --HG-- extra : rebase_source : 0f68abbd0a1f8cf9e005e2bdecd7e7f267c64cba
This commit is contained in:
Родитель
d9f12c1bde
Коммит
54e5e36f24
|
@ -25,8 +25,8 @@ promise_test(function(t) {
|
|||
animation.play();
|
||||
|
||||
return animation.ready.then(waitForFrame).then(function() {
|
||||
assert_true(getMarginLeft(cs) > 0,
|
||||
'Playing value of margin-left is greater than zero');
|
||||
assert_greater_than(getMarginLeft(cs), 0,
|
||||
'Playing value of margin-left is greater than zero');
|
||||
});
|
||||
}, 'play() overrides animation-play-state');
|
||||
|
||||
|
@ -98,8 +98,8 @@ promise_test(function(t) {
|
|||
return animation.ready.then(waitForFrame).then(function() {
|
||||
assert_equals(cs.animationPlayState, 'paused',
|
||||
'animation-play-state is paused');
|
||||
assert_true(getMarginLeft(cs) > previousAnimVal,
|
||||
'Playing value of margin-left is increasing');
|
||||
assert_greater_than(getMarginLeft(cs), previousAnimVal,
|
||||
'Playing value of margin-left is increasing');
|
||||
});
|
||||
}, 'play() flushes pending changes to animation-play-state first');
|
||||
|
||||
|
|
|
@ -25,8 +25,8 @@ async_test(function(t) {
|
|||
var previousAnimVal = getMarginLeft(cs);
|
||||
|
||||
animation.ready.then(waitForFrame).then(t.step_func(function() {
|
||||
assert_true(getMarginLeft(cs) > previousAnimVal,
|
||||
'margin-left is initially increasing');
|
||||
assert_greater_than(getMarginLeft(cs), previousAnimVal,
|
||||
'margin-left is initially increasing');
|
||||
animation.pause();
|
||||
return animation.ready;
|
||||
})).then(t.step_func(function() {
|
||||
|
@ -39,8 +39,8 @@ async_test(function(t) {
|
|||
animation.play();
|
||||
return animation.ready.then(waitForFrame);
|
||||
})).then(t.step_func(function() {
|
||||
assert_true(getMarginLeft(cs) > previousAnimVal,
|
||||
'margin-left increases after calling play()');
|
||||
assert_greater_than(getMarginLeft(cs), previousAnimVal,
|
||||
'margin-left increases after calling play()');
|
||||
t.done();
|
||||
}));
|
||||
}, 'pause() and play() a transition');
|
||||
|
|
Загрузка…
Ссылка в новой задаче