fix all tests to run with node.js

This commit is contained in:
Fabian Jakobs 2010-12-14 15:09:24 +01:00
commit f07745839c
15 changed files with 181 additions and 125 deletions

View file

@ -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);
}