return super.translateHTMLToCSS(htmlAttrSet);
}
};
doc = new TestDocument(ss);
doc.lockWrite();
final AbstractElement branch =
(AbstractElement)doc.getParagraphElement(0);
assertEquals("p", branch.getName());
assertFalse(gva.isOccurred());
assertFalse(th2c.isOccurred());
final View view = new InlineView(branch);
assertTrue(gva.isOccurred());
assertTrue(th2c.isOccurred());
final AttributeSet va = view.getAttributes();
assertFalse(gva.isOccurred());
assertFalse(th2c.isOccurred());
assertSame(va, view.getAttributes());
assertEquals(1, va.getAttributeCount());
assertEquals("0",
va.getAttribute(CSS.Attribute.MARGIN_TOP).toString());
branch.addAttribute(HTML.Attribute.WIDTH, "200");
assertFalse(gva.isOccurred());
assertFalse(th2c.isOccurred());
view.changedUpdate(new DocumentEvent() {
public int getOffset() {
return branch.getStartOffset();
}
public int getLength() {
return branch.getEndOffset() - branch.getStartOffset();
}
public Document getDocument() {
return doc;
}
public EventType getType() {