From 4b150fda203c1eb9485ce0ce88284c46b5b3a026 Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Sat, 14 Dec 2019 22:34:19 +0000 Subject: [PATCH] Bug 1603933 - Use Date.now() instead of DocumentTimeline.currentTime. r=tnikkel Differential Revision: https://phabricator.services.mozilla.com/D57213 --HG-- extra : moz-landing-system : lando --- image/test/mochitest/test_animated_gif.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/image/test/mochitest/test_animated_gif.html b/image/test/mochitest/test_animated_gif.html index 1551402d3a60..bb49fa63d652 100644 --- a/image/test/mochitest/test_animated_gif.html +++ b/image/test/mochitest/test_animated_gif.html @@ -35,11 +35,11 @@ iframe.src = "http://example.org/tests/image/test/mochitest/child.html"; }); - const start = document.timeline.currentTime; + const start = Date.now(); // Waits a second; await SimpleTest.promiseWaitForCondition(() => { - return 1000 < (document.timeline.currentTime - start); + return 1000 < (Date.now() - start); }); ok(true, "decodeComplete didn't receive within a second");