Add specs for TextEditor::setMini in TextEditorElement

This commit is contained in:
Fabian Stiewitz 2015-07-01 12:36:10 +02:00
parent 19315390cf
commit eca4ed170e

View File

@ -233,3 +233,13 @@ describe "TextEditorElement", ->
element = new TextEditorElement
jasmine.attachToDOM(element)
expect(element.getDefaultCharacterWidth()).toBeGreaterThan(0)
describe "on TextEditor::setMini", ->
it "changes the element's 'mini' attribute", ->
element = new TextEditorElement
jasmine.attachToDOM(element)
expect(element.hasAttribute('mini')).toBe false
element.getModel().setMini(true)
expect(element.hasAttribute('mini')).toBe true
element.getModel().setMini(false)
expect(element.hasAttribute('mini')).toBe false