Refactor: replace range map with a proper object
This commit is contained in:
parent
cc0c16ca6f
commit
3299f0759e
5 changed files with 7 additions and 34 deletions
|
|
@ -118,10 +118,7 @@ var TextDocumentTest = new TestCase("TextDocumentTest", {
|
|||
doc.setNewLineMode("auto");
|
||||
assertEquals(["1", "2", "3"].join("\r\n"), doc.toString());
|
||||
|
||||
doc.replace({
|
||||
start: {row: 0, column: 0},
|
||||
end: {row: 2, column: 1}
|
||||
}, ["4", "5", "6"].join("\n"));
|
||||
doc.replace(new ace.Range(0, 0, 2, 1), ["4", "5", "6"].join("\n"));
|
||||
assertEquals(["4", "5", "6"].join("\n"), doc.toString());
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue