From 70bc7d7dc0d425abca9b7e946f688d6232b20b5d Mon Sep 17 00:00:00 2001 From: nightwing Date: Sun, 24 Nov 2013 16:47:32 +0400 Subject: [PATCH] update tests --- lib/ace/edit_session/folding.js | 2 +- lib/ace/multi_select_test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ace/edit_session/folding.js b/lib/ace/edit_session/folding.js index e4415fe1..d3fa0ef0 100644 --- a/lib/ace/edit_session/folding.js +++ b/lib/ace/edit_session/folding.js @@ -281,7 +281,7 @@ function Folding() { // --- Some checking --- if (!(startRow < endRow || - startRow == endRow && startColumn < endColumn - 2)) + startRow == endRow && startColumn <= endColumn - 2)) throw new Error("The range has to be at least 2 characters width"); var startFold = this.getFoldAt(startRow, startColumn, 1); diff --git a/lib/ace/multi_select_test.js b/lib/ace/multi_select_test.js index 795aee2b..45ab4965 100644 --- a/lib/ace/multi_select_test.js +++ b/lib/ace/multi_select_test.js @@ -66,7 +66,7 @@ module.exports = { MultiSelect(editor); editor.navigateFileEnd(); - exec("selectMoreBefore", 4); + exec("selectMoreBefore", 3); assert.ok(editor.inMultiSelectMode); assert.equal(editor.selection.getAllRanges().length, 4);