From b3d0635d5f8e77c0d6dc4254622ef42ace72b74f Mon Sep 17 00:00:00 2001 From: Jacek Kopecky Date: Wed, 29 Jul 2015 22:11:07 +0100 Subject: [PATCH] fix specs for merge of #767 with #782 --- spec/vim-state-spec.coffee | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/spec/vim-state-spec.coffee b/spec/vim-state-spec.coffee index f966aab7..f9120f27 100644 --- a/spec/vim-state-spec.coffee +++ b/spec/vim-state-spec.coffee @@ -359,28 +359,30 @@ describe "VimState", -> ]) it "harmonizes selection directions", -> - keydown("i") - keydown("w") + editor.setCursorBufferPosition([0, 0]) + keydown("e") + keydown("e") editor.addCursorAtBufferPosition([0, Infinity]) keydown("h") + keydown("h") expect(editor.getSelectedBufferRanges()).toEqual([ - [[0, 4], [0, 6]], - [[0, 12], [0, 13]] + [[0, 0], [0, 5]], + [[0, 11], [0, 13]] ]) expect(editor.getCursorBufferPositions()).toEqual([ - [0, 6] - [0, 12] + [0, 5] + [0, 11] ]) keydown("o") expect(editor.getSelectedBufferRanges()).toEqual([ - [[0, 4], [0, 6]], - [[0, 12], [0, 13]] + [[0, 0], [0, 5]], + [[0, 11], [0, 13]] ]) expect(editor.getCursorBufferPositions()).toEqual([ - [0, 6] + [0, 5] [0, 13] ])