move tab support from editor to the document
This commit is contained in:
parent
6a11af1a44
commit
3e8639596a
6 changed files with 58 additions and 70 deletions
|
|
@ -56,7 +56,7 @@ var JavaScriptTest = new TestCase("mode.JavaScriptTest", {
|
|||
editor.navigateLineEnd();
|
||||
editor.onTextInput("\n");
|
||||
|
||||
assertEquals(["if () {", editor.getTabString()].join("\n"), doc.toString());
|
||||
assertEquals(["if () {", doc.getTabString()].join("\n"), doc.toString());
|
||||
},
|
||||
|
||||
"test: no auto indent after opening brace in multi line comment" : function() {
|
||||
|
|
@ -76,6 +76,6 @@ var JavaScriptTest = new TestCase("mode.JavaScriptTest", {
|
|||
editor.navigateLineEnd();
|
||||
editor.onTextInput("\n");
|
||||
|
||||
assertEquals([" if () {", " " + editor.getTabString()].join("\n"), doc.toString());
|
||||
assertEquals([" if () {", " " + doc.getTabString()].join("\n"), doc.toString());
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue