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.
pull/36/head
Pierre Ossman 5 years ago committed by Lauri Kasanen
parent d5b84d9185
commit 42d437ad25

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

Loading…
Cancel
Save