From de984af85f8b2d1d28e166e0ad5b14fe7caf139c Mon Sep 17 00:00:00 2001 From: Narciso Jaramillo Date: Fri, 28 Mar 2014 15:19:03 -0700 Subject: [PATCH] Fix up command IDs for add cursor unit tests --- test/spec/EditorCommandHandlers-test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/spec/EditorCommandHandlers-test.js b/test/spec/EditorCommandHandlers-test.js index 6f7c011f0df..8d554f034f1 100644 --- a/test/spec/EditorCommandHandlers-test.js +++ b/test/spec/EditorCommandHandlers-test.js @@ -3328,14 +3328,14 @@ define(function (require, exports, module) { it("should add a cursor on the next line before a single cursor in same visual position", function () { myEditor.setSelection({line: 1, ch: 8}, {line: 1, ch: 8}); - CommandManager.execute(Commands.EDIT_ADD_NEXT_LINE_TO_SEL, myEditor); + CommandManager.execute(Commands.EDIT_ADD_CUR_TO_NEXT_LINE, myEditor); expectSelections([{start: {line: 1, ch: 8}, end: {line: 1, ch: 8}, primary: false, reversed: false}, {start: {line: 2, ch: 12}, end: {line: 2, ch: 12}, primary: true, reversed: false}]); }); it("should add a cursor on the previous line before a single cursor selection in same visual position", function () { myEditor.setSelection({line: 2, ch: 12}, {line: 2, ch: 12}); - CommandManager.execute(Commands.EDIT_ADD_PREV_LINE_TO_SEL, myEditor); + CommandManager.execute(Commands.EDIT_ADD_CUR_TO_PREV_LINE, myEditor); expectSelections([{start: {line: 1, ch: 8}, end: {line: 1, ch: 8}, primary: true, reversed: false}, {start: {line: 2, ch: 12}, end: {line: 2, ch: 12}, primary: false, reversed: false}]); });