Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added test for background size pixel get and set

added test for background size pixel get and set
  • Loading branch information...
commit 302e028f8b574457c25cdab0f9d5723c48c313fd 1 parent a6c8539
Cristian Carlesso authored
Showing with 14 additions and 0 deletions.
  1. +14 −0 Specs/1.4client/Element/Element.Style.js
View
14 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';
Please sign in to comment.
Something went wrong with that request. Please try again.