fix failing tests

This commit is contained in:
nightwing 2013-07-14 08:58:29 +04:00
commit 2270bd8c4b
2 changed files with 3 additions and 1 deletions

View file

@ -44,6 +44,8 @@ oop.inherits(FoldMode, BaseFoldMode);
this.$getMode = function(state) {
if (typeof state != "string")
state = state[0];
for (var key in this.subModes) {
if (state.indexOf(key) === 0)
return this.subModes[key];

View file

@ -51,7 +51,7 @@ module.exports = {
assert.ok(tokenizer instanceof Tokenizer);
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() {