Permalink
Browse files

added test for background size pixel get and set

added test for background size pixel get and set
  • Loading branch information...
1 parent a6c8539 commit 302e028f8b574457c25cdab0f9d5723c48c313fd Cristian Carlesso committed Sep 1, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 Specs/1.4client/Element/Element.Style.js
@@ -173,6 +173,20 @@ describe('Element.Style', function(){
});
+ describe('set/getStyle background-size', function(){
+
+ it('should return the correct pixel size', function(){
+ var foo = new Element('div', {
+ styles: {
+ backgroundSize: '44px'
+ }
+ });
+ foo.setStyle('background-size', 20);​
+ expect(foo.getStyle('backgroundSize')).toEqual('20px');
+ });
+
+ });
+
describe('getStyle background-position', function(){
beforeEach(function(){
var className = 'getStyleBackgroundPosition';

0 comments on commit 302e028

Please sign in to comment.