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:
Hiroyuki Ikezoe 2017-12-06 09:19:35 +09:00
Родитель d9f12c1bde
Коммит 54e5e36f24
2 изменённых файлов: 8 добавлений и 8 удалений

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

@ -25,7 +25,7 @@ promise_test(function(t) {
animation.play();
return animation.ready.then(waitForFrame).then(function() {
assert_true(getMarginLeft(cs) > 0,
assert_greater_than(getMarginLeft(cs), 0,
'Playing value of margin-left is greater than zero');
});
}, 'play() overrides animation-play-state');
@ -98,7 +98,7 @@ 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,
assert_greater_than(getMarginLeft(cs), previousAnimVal,
'Playing value of margin-left is increasing');
});
}, 'play() flushes pending changes to animation-play-state first');

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

@ -25,7 +25,7 @@ async_test(function(t) {
var previousAnimVal = getMarginLeft(cs);
animation.ready.then(waitForFrame).then(t.step_func(function() {
assert_true(getMarginLeft(cs) > previousAnimVal,
assert_greater_than(getMarginLeft(cs), previousAnimVal,
'margin-left is initially increasing');
animation.pause();
return animation.ready;
@ -39,7 +39,7 @@ async_test(function(t) {
animation.play();
return animation.ready.then(waitForFrame);
})).then(t.step_func(function() {
assert_true(getMarginLeft(cs) > previousAnimVal,
assert_greater_than(getMarginLeft(cs), previousAnimVal,
'margin-left increases after calling play()');
t.done();
}));