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
This commit is contained in:
Hiroyuki Ikezoe 2019-12-14 22:34:19 +00:00
Родитель 2d8f49d698
Коммит 4b150fda20
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -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");