Browse Source

Fix tests

pull/36/head
Artur Arseniev 10 years ago
parent
commit
00bc6ed960
  1. 2
      src/dom_components/view/ComponentImageView.js
  2. 2
      test/specs/dom_components/view/ComponentImageView.js
  3. 6
      test/specs/style_manager/model/Models.js

2
src/dom_components/view/ComponentImageView.js

@ -58,7 +58,7 @@ define(['backbone', './ComponentView'],
this.updateAttributes(); this.updateAttributes();
this.updateClasses(); this.updateClasses();
var actCls = this.$el.attr('class'); var actCls = this.$el.attr('class') || '';
if(!this.model.get('src')) if(!this.model.get('src'))
this.$el.attr('class', (actCls + ' ' + this.classEmpty).trim()); this.$el.attr('class', (actCls + ' ' + this.classEmpty).trim());

2
test/specs/dom_components/view/ComponentImageView.js

@ -55,4 +55,4 @@ define([path + 'ComponentImageView', 'DomComponents/model/Component'],
} }
}; };
}); });

6
test/specs/style_manager/model/Models.js

@ -341,21 +341,25 @@ define([path + 'Sector',
property: 'margin', property: 'margin',
type: 'composite', type: 'composite',
properties:[{ properties:[{
fixedValues: ['initial', 'inherit', 'auto'],
property : 'margin-top', property : 'margin-top',
type : 'integer', type : 'integer',
units : ['px','%'], units : ['px','%'],
defaults : 0, defaults : 0
},{ },{
fixedValues: ['initial', 'inherit', 'auto'],
property : 'margin-right', property : 'margin-right',
type : 'integer', type : 'integer',
units : ['px','%'], units : ['px','%'],
defaults : 0, defaults : 0,
},{ },{
fixedValues: ['initial', 'inherit', 'auto'],
property : 'margin-bottom', property : 'margin-bottom',
type : 'integer', type : 'integer',
units : ['px','%'], units : ['px','%'],
defaults : 0, defaults : 0,
},{ },{
fixedValues: ['initial', 'inherit', 'auto'],
property : 'margin-left', property : 'margin-left',
type : 'integer', type : 'integer',
units : ['px','%'], units : ['px','%'],

Loading…
Cancel
Save