Skip to content

Commit

Permalink
ff30 tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
legomushroom committed Jul 25, 2015
1 parent d63502c commit 63f36ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions spec/tween/timeline.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -565,10 +565,10 @@ describe 'Timeline ->', ->
t.setStartTime()
spyOn t.timelines[0], 'update'
spyOn t.timelines[1], 'update'
time = t.props.startTime
t._updateTimelines(time+t.props.time)
expect(t.timelines[0].update).toHaveBeenCalledWith time
expect(t.timelines[1].update).toHaveBeenCalledWith time
time = t.props.startTime + 5
t._updateTimelines(time + t.props.time)
expect(t.timelines[0].update.calls.mostRecent().args[0]).toBeCloseTo time, 5
expect(t.timelines[1].update.calls.mostRecent().args[0]).toBeCloseTo time, 5
it 'should set time to timelines with repeat and delay option', (dfr)->
tweener.removeAll()
t = new Timeline repeat: 1, delay: 500, isIt: true
Expand Down
6 changes: 3 additions & 3 deletions spec/tween/timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -997,10 +997,10 @@
t.setStartTime();
spyOn(t.timelines[0], 'update');
spyOn(t.timelines[1], 'update');
time = t.props.startTime;
time = t.props.startTime + 5;
t._updateTimelines(time + t.props.time);
expect(t.timelines[0].update).toHaveBeenCalledWith(time);
return expect(t.timelines[1].update).toHaveBeenCalledWith(time);
expect(t.timelines[0].update.calls.mostRecent().args[0]).toBeCloseTo(time, 5);
return expect(t.timelines[1].update.calls.mostRecent().args[0]).toBeCloseTo(time, 5);
});
return it('should set time to timelines with repeat and delay option', function(dfr) {
var t, time;
Expand Down

0 comments on commit 63f36ef

Please sign in to comment.