Browse Source

Fix regressions

pull/312/head
Artur Arseniev 9 years ago
parent
commit
17129f3f3a
  1. 3
      test/specs/style_manager/view/PropertyCompositeView.js
  2. 2
      test/specs/style_manager/view/PropertyIntegerView.js
  3. 2
      test/specs/style_manager/view/PropertyStackView.js

3
test/specs/style_manager/view/PropertyCompositeView.js

@ -97,7 +97,8 @@ module.exports = {
it('Update input on value change', () => {
view.model.set('value', propValue);
expect(view.$input.val()).toEqual(propValue);
// Fetch always values from properties
expect(view.$input.val()).toEqual('0% val2');
});
describe('With target setted', () => {

2
test/specs/style_manager/view/PropertyIntegerView.js

@ -121,7 +121,7 @@ module.exports = {
view.model.set('value', intValue);
var compStyle = view.selectedComponent.get('style');
var assertStyle = {};
assertStyle[propName] = parseInt(intValue);
assertStyle[propName] = intValue;
expect(compStyle).toEqual(assertStyle);
});

2
test/specs/style_manager/view/PropertyStackView.js

@ -246,7 +246,7 @@ module.exports = {
it('Build value from properties', () => {
view.model.get('properties').at(0).set('value', propValue);
view.model.get('properties').at(2).set('value', prop3Val);
expect(view.build()).toEqual(finalResult);
expect(view.model.getFullValue()).toEqual(finalResult);
});
});

Loading…
Cancel
Save