all tests are working now
This commit is contained in:
parent
fa4d88830c
commit
97c24a7769
5 changed files with 118 additions and 96 deletions
|
|
@ -125,10 +125,10 @@ var Test = {
|
|||
|
||||
"test: trigger outdent if line is space and new text starts with closing brace" : function() {
|
||||
assert.ok(this.mode.checkOutdent("start", " ", " }"));
|
||||
assert.equal(this.mode.checkOutdent("start", " a ", " }"));
|
||||
assert.equal(this.mode.checkOutdent("start", "", "}"));
|
||||
assert.equal(this.mode.checkOutdent("start", " ", "a }"));
|
||||
assert.equal(this.mode.checkOutdent("start", " }", "}"));
|
||||
assert.ok(!this.mode.checkOutdent("start", " a ", " }"));
|
||||
assert.ok(!this.mode.checkOutdent("start", "", "}"));
|
||||
assert.ok(!this.mode.checkOutdent("start", " ", "a }"));
|
||||
assert.ok(!this.mode.checkOutdent("start", " }", "}"));
|
||||
},
|
||||
|
||||
"test: auto outdent should indent the line with the same indent as the line with the matching opening brace" : function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue