Skip to content

Commit

Permalink
fix mootools#2159: specs for Fx.isPaused()
Browse files Browse the repository at this point in the history
  • Loading branch information
thatmarvin authored and ibolmo committed Dec 19, 2011
1 parent 56a009f commit 68cf967
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Specs/1.3base/Fx/Fx.js
Expand Up @@ -118,6 +118,23 @@ describe('Fx', function(){

});

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);
});

it('should chain the Fx', function(){

var counter = 0;
Expand Down

0 comments on commit 68cf967

Please sign in to comment.