mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
Fix TextEditor cutToEndOfLine() test
…which was failing due to the different soft-wrapping rules.
This commit is contained in:
@@ -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", ->
|
||||
|
||||
Reference in New Issue
Block a user