action = reader.new PreAction();
action.start(Tag.PRE, attr);
assertEquals(2, reader.parseBuffer.size());
assertEquals(0, reader.charAttr.getAttributeCount());
ElementSpec spec = (ElementSpec)reader.parseBuffer.get(0);
AttributeSet specAttr = spec.getAttributes();
assertEquals(2, specAttr.getAttributeCount());
checkAttributes(specAttr, StyleConstants.NameAttribute, Tag.PRE);
checkAttributes(specAttr, "aaaa", "bbbb");
assertSpec(spec, ElementSpec.StartTagType, ElementSpec.OriginateDirection, 0, null);
spec = (ElementSpec)reader.parseBuffer.get(1);
specAttr = spec.getAttributes();
assertEquals(3, specAttr.getAttributeCount());
checkAttributes(specAttr, StyleConstants.NameAttribute, Tag.IMPLIED);
checkAttributes(specAttr, CSS.Attribute.WHITE_SPACE, "pre");
checkAttributes(specAttr, "aaaa", "bbbb");
assertSpec(spec, ElementSpec.StartTagType, ElementSpec.OriginateDirection, 0, null);