Fix spec for movement to mark

This commit is contained in:
jazzpi 2016-08-16 12:33:00 +02:00
parent 3c952ccbfe
commit 31ac3a98ed

View file

@ -107,7 +107,7 @@ describe "the commands", ->
it "moves to a mark's line", -> it "moves to a mark's line", ->
keydown('l') keydown('l')
keydown('m') keydown('m')
commandModeInputKeydown 'a' normalModeInputKeydown 'a'
keydown('j') keydown('j')
openEx() openEx()
submitNormalModeInputText "'a" submitNormalModeInputText "'a"
@ -637,7 +637,6 @@ describe "the commands", ->
waitsFor -> processedOpStack waitsFor -> processedOpStack
editor.setText('abc\ndef\nghi\njkl') editor.setText('abc\ndef\nghi\njkl')
editor.setCursorBufferPosition([1, 1]) editor.setCursorBufferPosition([1, 1])
# For some reason, keydown(':') doesn't work here :/
atom.commands.dispatch(editorElement, 'ex-mode:open') atom.commands.dispatch(editorElement, 'ex-mode:open')
submitNormalModeInputText(',/k/delete') submitNormalModeInputText(',/k/delete')
expect(editor.getText()).toEqual('abc\n') expect(editor.getText()).toEqual('abc\n')