|
|
|
@ -95,22 +95,18 @@ module.exports = { |
|
|
|
}); |
|
|
|
|
|
|
|
it('Label input is disabled', () => { |
|
|
|
var inputProp = obj.inputProp; |
|
|
|
var label = obj.$labelInput.get(0); |
|
|
|
expect(obj.$labelInput.prop(inputProp)).toEqual(true); |
|
|
|
expect(obj.getInputEl().contentEditable).toNotEqual(true); |
|
|
|
}); |
|
|
|
|
|
|
|
it('On double click label input is enable', () => { |
|
|
|
var inputProp = obj.inputProp; |
|
|
|
obj.$el.find('#tag-label').trigger('dblclick'); |
|
|
|
expect(obj.$labelInput.prop(inputProp)).toEqual(false); |
|
|
|
expect(obj.getInputEl().contentEditable).toEqual(true); |
|
|
|
}); |
|
|
|
|
|
|
|
it('On blur label input turns back disabled', () => { |
|
|
|
var inputProp = obj.inputProp; |
|
|
|
obj.$el.find('#tag-label').trigger('dblclick'); |
|
|
|
obj.endEditTag(); |
|
|
|
expect(obj.$labelInput.prop(inputProp)).toEqual(true); |
|
|
|
expect(obj.getInputEl().contentEditable).toEqual(false); |
|
|
|
}); |
|
|
|
|
|
|
|
}); |
|
|
|
|