assertEquals(7, reader.parseBuffer.size());
assertEquals(0, 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.B);
checkAttributes(specAttr, "aaaa", "bbbb");
spec = (ElementSpec)reader.parseBuffer.get(1);
specAttr = spec.getAttributes();
assertSpec(spec, ElementSpec.StartTagType, ElementSpec.OriginateDirection, 0, null);
assertEquals(2, specAttr.getAttributeCount());
checkAttributes(specAttr, StyleConstants.NameAttribute, Tag.I);
checkAttributes(specAttr, "aaaa", "bbbb");
spec = (ElementSpec)reader.parseBuffer.get(2);
checkOpenImpliedSpec(spec);
spec = (ElementSpec)reader.parseBuffer.get(3);
specAttr = spec.getAttributes();
assertSpec(spec, ElementSpec.ContentType, ElementSpec.OriginateDirection, 0, new char[] {'\n'});
assertEquals(2, specAttr.getAttributeCount());
checkAttributes(specAttr, StyleConstants.NameAttribute, Tag.CONTENT);
checkAttributes(specAttr, "CR", Boolean.TRUE);
spec = (ElementSpec)reader.parseBuffer.get(4);
checkEndTagSpec(spec);