.add(new TextNode(blockEndToken)),
new HtmlDocParser().parse(stream));
}
public void testOtherAndBlock() throws Exception {
Token setUpToken = ConcreteToken.from("TestCase.prototype.setUp ");
Token equalsToken = ConcreteToken.from("=");
Token functionToken = ConcreteToken.from(" function()");
Token blockStartToken = ConcreteToken.from("{");
Token fooToken = ConcreteToken.from(" this.foo ");
Token oneToken = ConcreteToken.from(" 1; ");
Token docStartToken = ConcreteToken.from("/*:DOC");
Token barToken = ConcreteToken.from(" bar ");
Token htmlToken = ConcreteToken.from(" <div></div>");
Token endDocToken = ConcreteToken.from("*/");
Token endBlockToken = ConcreteToken.from("}");
List<Token> tokens = Lists.<Token>newArrayList(
setUpToken,
equalsToken,
functionToken,
blockStartToken,