use of org.eclipse.wst.html.core.internal.format.HTMLFormattingUtil in project webtools.sourceediting by eclipse.
the class TestFormatUtility method testInlineNode.
public void testInlineNode() {
IDOMModel model = (IDOMModel) StructuredModelManager.getModelManager().createUnManagedStructuredModelFor(ContentTypeIdForXML.ContentTypeID_XML);
IDOMDocument document = model.getDocument();
HTMLFormattingUtil util = new HTMLFormattingUtil();
assertTrue("Anchor tag must be inline", util.isInline(document.createElement("a")));
assertFalse("Div tag must not be inline", util.isInline(document.createElement("div")));
}
Aggregations