void (@NotNull String content, int expectedLength) { myFixture.configureByText(HtmlFileType.INSTANCE, content + "<caret>"); CustomTemplateCallback callback = new CustomTemplateCallback(myFixture.getEditor(), myFixture.getFile()); ZenCodingGenerator generator = findApplicableDefaultGenerator(callback, false); assertNotNull(generator); EmmetParser parser = new XmlEmmetParser(new EmmetLexer().lex(content), callback, generator, false); ZenCodingNode zenCodingNode = parser.parse(); assertNotNull(zenCodingNode); assertEquals(expectedLength, zenCodingNode.getApproximateOutputLength(callback)); }