From a73f68c0dd3cf4d244457262940f812bf1a3ecea Mon Sep 17 00:00:00 2001 From: Warren Powell Date: Wed, 24 May 2017 15:43:50 +1200 Subject: [PATCH] Spec test for setMaxScreenLineLength --- spec/text-editor-spec.coffee | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spec/text-editor-spec.coffee b/spec/text-editor-spec.coffee index ec4a96359..efe023a21 100644 --- a/spec/text-editor-spec.coffee +++ b/spec/text-editor-spec.coffee @@ -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 +