mirror of
https://github.com/atom/atom.git
synced 2026-01-26 07:19:06 -05:00
Spec test for setMaxScreenLineLength
This commit is contained in:
committed by
wpowell-oss
parent
ce99d401c2
commit
a73f68c0dd
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user