Permalink
Browse files

Adds coverage for fade(0, 1) usage.

PASSED: IE6-9; FF3-5, 8, 11; Chrome latest; Safari 5; Opera 11
  • Loading branch information...
1 parent 45cd384 commit 19599597c307ab4aaa0c927292173f889b38d2b6 @ibolmo ibolmo committed Dec 20, 2011
Showing with 16 additions and 0 deletions.
  1. +16 −0 Specs/1.4client/Fx/Fx.Tween.js
@@ -41,6 +41,22 @@ describe('Fx.Tween', function(){
});
+ it('should accept the old style arguments (0, 1)', function(){
+
+ var element = new Element('div');
+ element.fade(1, 0);
+
+ var tween = element.get('tween');
+
+ expect(tween.from[0].value).toEqual(1);
+ expect(tween.to[0].value).toEqual(0);
+
+ this.clock.tick(1000);
+
+ expect(element.getStyle('opacity')).toEqual(0);
+
+ });
+
});
});

0 comments on commit 1959959

Please sign in to comment.