Skip to content

Commit

Permalink
Adds coverage for fade(0, 1) usage.
Browse files Browse the repository at this point in the history
PASSED: IE6-9; FF3-5, 8, 11; Chrome latest; Safari 5; Opera 11
  • Loading branch information
ibolmo committed Dec 20, 2011
1 parent 45cd384 commit 1959959
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Specs/1.4client/Fx/Fx.Tween.js
Expand Up @@ -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.