@@ -22,9 +22,9 @@ describe "Motions", ->
2222 editor .normalModeInputView .editorElement .getModel ().setText (key)
2323
2424 submitNormalModeInputText = (text ) ->
25- commandEditor = editor .normalModeInputView .editorElement
26- commandEditor .getModel ().setText (text)
27- atom .commands .dispatch (commandEditor , " core:confirm" )
25+ normalEditor = editor .normalModeInputView .editorElement
26+ normalEditor .getModel ().setText (text)
27+ atom .commands .dispatch (normalEditor , " core:confirm" )
2828
2929 describe " simple motions" , ->
3030 beforeEach ->
@@ -850,7 +850,7 @@ describe "Motions", ->
850850 editor .setCursorScreenPosition ([0 , 2 ])
851851
852852 describe " as a motion" , ->
853- describe " in command mode" , ->
853+ describe " in normal mode" , ->
854854 beforeEach ->
855855 keydown (' g' )
856856 keydown (' g' )
@@ -885,7 +885,7 @@ describe "Motions", ->
885885 expect (editor .getCursorScreenPosition ()).toEqual [0 , 1 ]
886886
887887 describe " as a repeated motion" , ->
888- describe " in command mode" , ->
888+ describe " in normal mode" , ->
889889 beforeEach ->
890890 keydown (' 2' )
891891 keydown (' g' )
@@ -1189,7 +1189,7 @@ describe "Motions", ->
11891189 expect (editor .getCursorBufferPosition ()).toEqual [1 , 0 ]
11901190
11911191 describe " using search history" , ->
1192- commandEditor = null
1192+ normalEditor = null
11931193
11941194 beforeEach ->
11951195 keydown (' /' )
@@ -1200,27 +1200,27 @@ describe "Motions", ->
12001200 submitNormalModeInputText (' abc' )
12011201 expect (editor .getCursorBufferPosition ()).toEqual [2 , 0 ]
12021202
1203- commandEditor = editor .normalModeInputView .editorElement
1203+ normalEditor = editor .normalModeInputView .editorElement
12041204
12051205 it " allows searching history in the search field" , ->
12061206 keydown (' /' )
1207- atom .commands .dispatch (commandEditor , ' core:move-up' )
1208- expect (commandEditor .getModel ().getText ()).toEqual (' abc' )
1209- atom .commands .dispatch (commandEditor , ' core:move-up' )
1210- expect (commandEditor .getModel ().getText ()).toEqual (' def' )
1211- atom .commands .dispatch (commandEditor , ' core:move-up' )
1212- expect (commandEditor .getModel ().getText ()).toEqual (' def' )
1207+ atom .commands .dispatch (normalEditor , ' core:move-up' )
1208+ expect (normalEditor .getModel ().getText ()).toEqual (' abc' )
1209+ atom .commands .dispatch (normalEditor , ' core:move-up' )
1210+ expect (normalEditor .getModel ().getText ()).toEqual (' def' )
1211+ atom .commands .dispatch (normalEditor , ' core:move-up' )
1212+ expect (normalEditor .getModel ().getText ()).toEqual (' def' )
12131213
12141214 it " resets the search field to empty when scrolling back" , ->
12151215 keydown (' /' )
1216- atom .commands .dispatch (commandEditor , ' core:move-up' )
1217- expect (commandEditor .getModel ().getText ()).toEqual (' abc' )
1218- atom .commands .dispatch (commandEditor , ' core:move-up' )
1219- expect (commandEditor .getModel ().getText ()).toEqual (' def' )
1220- atom .commands .dispatch (commandEditor , ' core:move-down' )
1221- expect (commandEditor .getModel ().getText ()).toEqual (' abc' )
1222- atom .commands .dispatch (commandEditor , ' core:move-down' )
1223- expect (commandEditor .getModel ().getText ()).toEqual ' '
1216+ atom .commands .dispatch (normalEditor , ' core:move-up' )
1217+ expect (normalEditor .getModel ().getText ()).toEqual (' abc' )
1218+ atom .commands .dispatch (normalEditor , ' core:move-up' )
1219+ expect (normalEditor .getModel ().getText ()).toEqual (' def' )
1220+ atom .commands .dispatch (normalEditor , ' core:move-down' )
1221+ expect (normalEditor .getModel ().getText ()).toEqual (' abc' )
1222+ atom .commands .dispatch (normalEditor , ' core:move-down' )
1223+ expect (normalEditor .getModel ().getText ()).toEqual ' '
12241224
12251225 describe " the * keybinding" , ->
12261226 beforeEach ->
0 commit comments