Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit c8670b3

Browse files
committed
Merge pull request #7347 from adobe/nj/fix-cursor-tests
Fix up command IDs for add cursor unit tests
2 parents 2644deb + de984af commit c8670b3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/spec/EditorCommandHandlers-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3384,14 +3384,14 @@ define(function (require, exports, module) {
33843384

33853385
it("should add a cursor on the next line before a single cursor in same visual position", function () {
33863386
myEditor.setSelection({line: 1, ch: 8}, {line: 1, ch: 8});
3387-
CommandManager.execute(Commands.EDIT_ADD_NEXT_LINE_TO_SEL, myEditor);
3387+
CommandManager.execute(Commands.EDIT_ADD_CUR_TO_NEXT_LINE, myEditor);
33883388
expectSelections([{start: {line: 1, ch: 8}, end: {line: 1, ch: 8}, primary: false, reversed: false},
33893389
{start: {line: 2, ch: 12}, end: {line: 2, ch: 12}, primary: true, reversed: false}]);
33903390
});
33913391

33923392
it("should add a cursor on the previous line before a single cursor selection in same visual position", function () {
33933393
myEditor.setSelection({line: 2, ch: 12}, {line: 2, ch: 12});
3394-
CommandManager.execute(Commands.EDIT_ADD_PREV_LINE_TO_SEL, myEditor);
3394+
CommandManager.execute(Commands.EDIT_ADD_CUR_TO_PREV_LINE, myEditor);
33953395
expectSelections([{start: {line: 1, ch: 8}, end: {line: 1, ch: 8}, primary: true, reversed: false},
33963396
{start: {line: 2, ch: 12}, end: {line: 2, ch: 12}, primary: false, reversed: false}]);
33973397
});

0 commit comments

Comments
 (0)