Browse Source

Fix regressions related to `targetClass*` events

pull/712/head
Artur Arseniev 8 years ago
parent
commit
5ecb1f8f08
  1. 2
      test/specs/selector_manager/e2e/ClassManager.js
  2. 8
      test/specs/selector_manager/view/ClassTagView.js

2
test/specs/selector_manager/e2e/ClassManager.js

@ -98,7 +98,7 @@ module.exports = {
var model = components.add({});
gjs.editor.set('selectedComponent', model);
tagEl.addNewTag('test');
gjs.editor.on("targetClassAdded", spy);
gjs.editor.on("component:update:classes", spy);
tagEl.addNewTag('test');
expect(spy.called).toEqual(false);
tagEl.addNewTag('test2');

8
test/specs/selector_manager/view/ClassTagView.js

@ -78,14 +78,6 @@ module.exports = {
expect(spy.called).toEqual(true);
});
it('On toggle triggers event', () => {
var spy = sinon.spy();
sinon.stub(obj.target, 'get').returns(0);
obj.target.on("component:update:classes", spy);
obj.$el.find('#checkbox').trigger('click');
expect(spy.called).toEqual(true);
});
it('Label input is disabled', () => {
expect(obj.getInputEl().contentEditable).toNotEqual(true);
});

Loading…
Cancel
Save