Permalink
Browse files

fix #2159: specs for Fx.isPaused()

  • Loading branch information...
1 parent ee08222 commit ee6d6b9ca88926f9b1e0132e928dca0b8a48916e @thatmarvin thatmarvin committed with arian Dec 11, 2011
Showing with 17 additions and 0 deletions.
  1. +17 −0 Specs/1.3base/Fx/Fx.js
View
@@ -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;

0 comments on commit ee6d6b9

Please sign in to comment.