reader.blockClose(Tag.IMPLIED);
assertEquals(5, reader.parseBuffer.size());
assertEquals(1, reader.charAttr.getAttributeCount());
ElementSpec spec = (ElementSpec)reader.parseBuffer.get(0);
assertSpec(spec, ElementSpec.StartTagType, ElementSpec.OriginateDirection, 0, null);
AttributeSet specAttr = spec.getAttributes();
assertEquals(2, specAttr.getAttributeCount());
checkAttributes(specAttr, StyleConstants.NameAttribute, Tag.IMPLIED);
checkAttributes(specAttr, "aaaa", "bbbb");
spec = (ElementSpec)reader.parseBuffer.get(1);
checkOpenImpliedSpec(spec);
spec = (ElementSpec)reader.parseBuffer.get(2);
assertSpec(spec, ElementSpec.ContentType, ElementSpec.OriginateDirection, 0, text.toCharArray());
specAttr = spec.getAttributes();
assertEquals(1, specAttr.getAttributeCount());
checkAttributes(specAttr, StyleConstants.NameAttribute, Tag.CONTENT);
spec = (ElementSpec)reader.parseBuffer.get(3);
assertSpec(spec, ElementSpec.ContentType, ElementSpec.OriginateDirection, 0, new char[] {'\n'});
specAttr = spec.getAttributes();
assertEquals(2, specAttr.getAttributeCount());
checkAttributes(specAttr, StyleConstants.NameAttribute, Tag.CONTENT);
checkAttributes(specAttr, "CR", Boolean.TRUE);
spec = (ElementSpec)reader.parseBuffer.get(4);