reader.addContent("text".toCharArray(), 0, 4, false);
assertEquals(numSpecs + 1, reader.parseBuffer.size());
}
public void testAddContent_BlockOpenClose_P_Implied5() {
TagAction action = reader.new ParagraphAction();
reader.handleStartTag(Tag.BODY, new SimpleAttributeSet(), 0);
assertEquals(1, reader.parseBuffer.size());
reader.handleText("0000".toCharArray(), 0);
assertEquals(3, reader.parseBuffer.size());
action.start(Tag.P, new SimpleAttributeSet());
assertEquals(6, reader.parseBuffer.size());
reader.handleText("1111".toCharArray(), 0);
assertEquals(7, reader.parseBuffer.size());
action.end(Tag.P);
assertEquals(9, reader.parseBuffer.size());
}