fix all tests to run with node.js
This commit is contained in:
parent
d6ccdce008
commit
f07745839c
15 changed files with 181 additions and 125 deletions
|
|
@ -47,7 +47,7 @@ var Range = require("ace/range").Range;
|
|||
var Document = function(text, mode) {
|
||||
|
||||
this.modified = true;
|
||||
this.lines = [""];
|
||||
this.lines = [];
|
||||
this.selection = new Selection(this);
|
||||
this.$breakpoints = [];
|
||||
|
||||
|
|
@ -623,7 +623,7 @@ var Document = function(text, mode) {
|
|||
};
|
||||
|
||||
this.indentRows = function(range, indentString) {
|
||||
indentString.replace("\t", this.getTabString());
|
||||
indentString = indentString.replace("\t", this.getTabString());
|
||||
for (var row=range.start.row; row<=range.end.row; row++) {
|
||||
this.$insert({row: row, column:0}, indentString);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue