fix failing tests
This commit is contained in:
parent
c7abff1856
commit
2270bd8c4b
2 changed files with 3 additions and 1 deletions
|
|
@ -44,6 +44,8 @@ oop.inherits(FoldMode, BaseFoldMode);
|
||||||
|
|
||||||
|
|
||||||
this.$getMode = function(state) {
|
this.$getMode = function(state) {
|
||||||
|
if (typeof state != "string")
|
||||||
|
state = state[0];
|
||||||
for (var key in this.subModes) {
|
for (var key in this.subModes) {
|
||||||
if (state.indexOf(key) === 0)
|
if (state.indexOf(key) === 0)
|
||||||
return this.subModes[key];
|
return this.subModes[key];
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ module.exports = {
|
||||||
assert.ok(tokenizer instanceof Tokenizer);
|
assert.ok(tokenizer instanceof Tokenizer);
|
||||||
|
|
||||||
var tokens = tokenizer.getLineTokens("<juhu>", "start").tokens;
|
var tokens = tokenizer.getLineTokens("<juhu>", "start").tokens;
|
||||||
assert.equal("meta.tag", tokens[0].type);
|
assert.equal("meta.tag.punctuation.begin", tokens[0].type);
|
||||||
},
|
},
|
||||||
|
|
||||||
"test: toggle comment lines should not do anything" : function() {
|
"test: toggle comment lines should not do anything" : function() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue