зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
04cfb39e53
Коммит
329ff338de
|
@ -27,7 +27,7 @@ test(function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
async_test(function(t) {
|
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 is positive');
|
||||||
// document.timeline.currentTime should be set even before document
|
// document.timeline.currentTime should be set even before document
|
||||||
// load fires. We expect this code to be run before document load and hence
|
// 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;
|
getComputedStyle(hiddenIFrame).display;
|
||||||
|
|
||||||
window.requestAnimationFrame(t.step_func(function() {
|
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'
|
'document.timeline.currentTime is positive after removing'
|
||||||
+ ' display:none');
|
+ ' display:none');
|
||||||
var previousValue = hiddenIFrame.contentDocument.timeline.currentTime;
|
var previousValue = hiddenIFrame.contentDocument.timeline.currentTime;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче