Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix #2159: specs for Fx.isPaused()

  • Loading branch information...
commit ee6d6b9ca88926f9b1e0132e928dca0b8a48916e 1 parent ee08222
@thatmarvin thatmarvin authored arian committed
Showing with 17 additions and 0 deletions.
  1. +17 −0 Specs/1.3base/Fx/Fx.js
View
17 Specs/1.3base/Fx/Fx.js
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.