Spec test for setMaxScreenLineLength

This commit is contained in:
Warren Powell
2017-05-24 15:43:50 +12:00
committed by wpowell-oss
parent ce99d401c2
commit a73f68c0dd

View File

@@ -5918,3 +5918,12 @@ describe "TextEditor", ->
describe "::getElement", ->
it "returns an element", ->
expect(editor.getElement() instanceof HTMLElement).toBe(true)
describe 'setMaxScreenLineLength', ->
it "sets the maximum line length in the editor before soft wrapping is forced", ->
expect(editor.maxScreenLineLength()).toBe 500
editor.update({
maxScreenLineLength: 1500
})
expect(editor.maxScreenLineLength()).toBe 1500