mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Fix indentation in subword motion specs
This commit is contained in:
@@ -4601,16 +4601,16 @@ describe "TextEditor", ->
|
||||
expect(cursor1.getBufferPosition()).toEqual([0, 3])
|
||||
expect(cursor2.getBufferPosition()).toEqual([1, 6])
|
||||
|
||||
it "works with non-English characters", ->
|
||||
editor.setText("supåTøåst \n")
|
||||
editor.setCursorBufferPosition([0, 9])
|
||||
editor.moveToPreviousSubwordBoundary()
|
||||
expect(editor.getCursorBufferPosition()).toEqual([0, 4])
|
||||
it "works with non-English characters", ->
|
||||
editor.setText("supåTøåst \n")
|
||||
editor.setCursorBufferPosition([0, 9])
|
||||
editor.moveToPreviousSubwordBoundary()
|
||||
expect(editor.getCursorBufferPosition()).toEqual([0, 4])
|
||||
|
||||
editor.setText("supaÖast \n")
|
||||
editor.setCursorBufferPosition([0, 8])
|
||||
editor.moveToPreviousSubwordBoundary()
|
||||
expect(editor.getCursorBufferPosition()).toEqual([0, 4])
|
||||
editor.setText("supaÖast \n")
|
||||
editor.setCursorBufferPosition([0, 8])
|
||||
editor.moveToPreviousSubwordBoundary()
|
||||
expect(editor.getCursorBufferPosition()).toEqual([0, 4])
|
||||
|
||||
describe ".moveToNextSubwordBoundary", ->
|
||||
it "does not move the cursor when there is no next subword boundary", ->
|
||||
@@ -4690,16 +4690,16 @@ describe "TextEditor", ->
|
||||
expect(cursor1.getBufferPosition()).toEqual([0, 3])
|
||||
expect(cursor2.getBufferPosition()).toEqual([1, 6])
|
||||
|
||||
it "works with non-English characters", ->
|
||||
editor.setText("supåTøåst \n")
|
||||
editor.setCursorBufferPosition([0, 0])
|
||||
editor.moveToNextSubwordBoundary()
|
||||
expect(editor.getCursorBufferPosition()).toEqual([0, 4])
|
||||
it "works with non-English characters", ->
|
||||
editor.setText("supåTøåst \n")
|
||||
editor.setCursorBufferPosition([0, 0])
|
||||
editor.moveToNextSubwordBoundary()
|
||||
expect(editor.getCursorBufferPosition()).toEqual([0, 4])
|
||||
|
||||
editor.setText("supaÖast \n")
|
||||
editor.setCursorBufferPosition([0, 0])
|
||||
editor.moveToNextSubwordBoundary()
|
||||
expect(editor.getCursorBufferPosition()).toEqual([0, 4])
|
||||
editor.setText("supaÖast \n")
|
||||
editor.setCursorBufferPosition([0, 0])
|
||||
editor.moveToNextSubwordBoundary()
|
||||
expect(editor.getCursorBufferPosition()).toEqual([0, 4])
|
||||
|
||||
describe ".selectToPreviousSubwordBoundary", ->
|
||||
it "selects subwords", ->
|
||||
|
||||
Reference in New Issue
Block a user