Start fake test clock at real clock time

Some code relies on the clock having a somewhat sane value, so let's not
start at 0.
This commit is contained in:
Pierre Ossman 2020-06-11 16:43:38 +02:00 committed by Lauri Kasanen
parent d5b84d9185
commit 42d437ad25

View File

@ -91,7 +91,7 @@ describe('Remote Frame Buffer Protocol Client', function () {
after(FakeWebSocket.restore); after(FakeWebSocket.restore);
before(function () { before(function () {
this.clock = clock = sinon.useFakeTimers(); this.clock = clock = sinon.useFakeTimers(Date.now());
// sinon doesn't support this yet // sinon doesn't support this yet
raf = window.requestAnimationFrame; raf = window.requestAnimationFrame;
window.requestAnimationFrame = setTimeout; window.requestAnimationFrame = setTimeout;