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

Commit

Permalink
Merge pull request #7347 from adobe/nj/fix-cursor-tests
Browse files Browse the repository at this point in the history
Fix up command IDs for add cursor unit tests
  • Loading branch information
redmunds committed Mar 28, 2014
2 parents 2644deb + de984af commit c8670b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/spec/EditorCommandHandlers-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3384,14 +3384,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}]);
});
Expand Down

0 comments on commit c8670b3

Please sign in to comment.