From 13bb7725ff8ec287c8d84d56e2fbe8b71baedb8a Mon Sep 17 00:00:00 2001 From: nightwing Date: Fri, 18 Nov 2011 17:39:56 +0400 Subject: [PATCH] adapt move line test to new behaviour --- lib/ace/editor_text_edit_test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ace/editor_text_edit_test.js b/lib/ace/editor_text_edit_test.js index e6a9ea04..90468ccb 100644 --- a/lib/ace/editor_text_edit_test.js +++ b/lib/ace/editor_text_edit_test.js @@ -301,7 +301,7 @@ module.exports = { assert.position(editor.getSelection().getSelectionLead(), 0, 0); }, - "test: move line without active selection should move cursor to start of the moved line" : function() + "test: move line without active selection should not move cursor relative to the moved line" : function() { var session = new EditSession(["11", "22", "33", "44"].join("\n")); var editor = new Editor(new MockRenderer(), session); @@ -311,13 +311,13 @@ module.exports = { editor.moveLinesDown(); assert.equal(["11", "33", "22", "44"].join("\n"), session.toString()); - assert.position(editor.getCursorPosition(), 2, 0); + assert.position(editor.getCursorPosition(), 2, 1); editor.clearSelection(); editor.moveLinesUp(); assert.equal(["11", "22", "33", "44"].join("\n"), session.toString()); - assert.position(editor.getCursorPosition(), 1, 0); + assert.position(editor.getCursorPosition(), 1, 1); }, "test: copy lines down should select lines and place cursor at the selection start" : function() {