Fix TextEditor cutToEndOfLine() test

…which was failing due to the different soft-wrapping rules.
This commit is contained in:
Antonio Scandurra
2016-03-24 14:15:06 +01:00
parent 4136e27d44
commit 87489d4b0b

View File

@@ -3803,10 +3803,10 @@ describe "TextEditor", ->
it "cuts up to the end of the line", ->
editor.setSoftWrapped(true)
editor.setDefaultCharWidth(1)
editor.setEditorWidthInChars(10)
editor.setCursorScreenPosition([2, 2])
editor.setEditorWidthInChars(25)
editor.setCursorScreenPosition([2, 6])
editor.cutToEndOfLine()
expect(editor.tokenizedLineForScreenRow(2).text).toBe '= () {'
expect(editor.lineTextForScreenRow(2)).toBe ' var function(items) {'
describe "when soft wrap is off", ->
describe "when nothing is selected", ->