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:
parent
97b86abc94
commit
440ec8a0b6
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue