Bug 1444816 - Use assert_greater_than instead of assert_true for time comparison. r=birtles

It would be easier to understand what happens.

MozReview-Commit-ID: 5lidrbNBzFm

--HG--
extra : rebase_source : d4f1e75928cee449f98ee8224b8740b2ba0f9898
This commit is contained in:
Hiroyuki Ikezoe 2018-07-23 11:34:51 +09:00
Родитель 04cfb39e53
Коммит 329ff338de
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -27,7 +27,7 @@ test(function() {
});
async_test(function(t) {
assert_true(document.timeline.currentTime > 0,
assert_greater_than(document.timeline.currentTime, 0,
'document.timeline.currentTime is positive');
// document.timeline.currentTime should be set even before document
// load fires. We expect this code to be run before document load and hence
@ -108,7 +108,7 @@ async_test(function(t) {
getComputedStyle(hiddenIFrame).display;
window.requestAnimationFrame(t.step_func(function() {
assert_true(hiddenIFrame.contentDocument.timeline.currentTime > 0,
assert_greater_than(hiddenIFrame.contentDocument.timeline.currentTime, 0,
'document.timeline.currentTime is positive after removing'
+ ' display:none');
var previousValue = hiddenIFrame.contentDocument.timeline.currentTime;