Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved Fx.isPaused from 1.3 to 1.5 specs.
Updated and created configuration for 1.5 specs.
- Loading branch information
Showing
3 changed files
with
41 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,30 @@ | |||
|
|||
describe('Fx', function(){ | |||
|
|||
beforeEach(function(){ | |||
this.clock = sinon.useFakeTimers(); | |||
}); | |||
|
|||
afterEach(function(){ | |||
this.clock.reset(); | |||
this.clock.restore(); | |||
}); | |||
|
|||
it('should return the paused state', function(){ | |||
var fx = new Fx({ | |||
duration: 50 | |||
}).start(); | |||
|
|||
expect(fx.isPaused()).toEqual(false); | |||
|
|||
this.clock.tick(30); | |||
fx.pause(); | |||
|
|||
expect(fx.isPaused()).toEqual(true); | |||
|
|||
fx.resume(); | |||
this.clock.tick(60); | |||
expect(fx.isPaused()).toEqual(false); | |||
}); | |||
|
|||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters