(function(){function a(a){test.mode(a,b,Array.prototype.slice.call(arguments,1),"xml")}var b=CodeMirror.getMode({indentUnit:2},"xml");a("matching","[tag\x26bracket \x3c][tag top][tag\x26bracket \x3e]","  text","  [tag\x26bracket \x3c][tag inner][tag\x26bracket /\x3e]","[tag\x26bracket \x3c/][tag top][tag\x26bracket \x3e]");a("nonmatching","[tag\x26bracket \x3c][tag top][tag\x26bracket \x3e]","  [tag\x26bracket \x3c][tag inner][tag\x26bracket /\x3e]","  [tag\x26bracket \x3c/][tag\x26error tip][tag\x26bracket\x26error \x3e]");
a("doctype","[meta \x3c!doctype foobar\x3e]","[tag\x26bracket \x3c][tag top][tag\x26bracket /\x3e]");a("cdata","[tag\x26bracket \x3c][tag top][tag\x26bracket \x3e]","  [atom \x3c![CDATA[foo]","[atom barbazguh]]]]\x3e]","[tag\x26bracket \x3c/][tag top][tag\x26bracket \x3e]");b=CodeMirror.getMode({indentUnit:2},"text/html");a("selfclose","[tag\x26bracket \x3c][tag html][tag\x26bracket \x3e]",'  [tag\x26bracket \x3c][tag link] [attribute rel]\x3d[string stylesheet] [attribute href]\x3d[string "/foobar"][tag\x26bracket \x3e]',
"[tag\x26bracket \x3c/][tag html][tag\x26bracket \x3e]");a("list","[tag\x26bracket \x3c][tag ol][tag\x26bracket \x3e]","  [tag\x26bracket \x3c][tag li][tag\x26bracket \x3e]one","  [tag\x26bracket \x3c][tag li][tag\x26bracket \x3e]two","[tag\x26bracket \x3c/][tag ol][tag\x26bracket \x3e]");a("valueless","[tag\x26bracket \x3c][tag input] [attribute type]\x3d[string checkbox] [attribute checked][tag\x26bracket /\x3e]");a("pThenArticle","[tag\x26bracket \x3c][tag p][tag\x26bracket \x3e]","  foo","[tag\x26bracket \x3c][tag article][tag\x26bracket \x3e]bar")})();