Exemplo n.º 1
0
 @Test
 public void checkCreateElement() {
   Assert.assertEquals("a", d.createAnchorElement().getTagName());
   Assert.assertEquals("area", d.createAreaElement().getTagName());
   Assert.assertEquals("base", d.createBaseElement().getTagName());
   Assert.assertEquals("body", d.createElement("body").getTagName());
   Assert.assertEquals("br", d.createBRElement().getTagName());
   Assert.assertEquals("div", d.createDivElement().getTagName());
   Assert.assertEquals("dl", d.createDLElement().getTagName());
   Assert.assertEquals("fieldset", d.createFieldSetElement().getTagName());
   Assert.assertEquals("form", d.createFormElement().getTagName());
   Assert.assertEquals("frame", d.createFrameElement().getTagName());
   Assert.assertEquals("frameset", d.createFrameSetElement().getTagName());
   Assert.assertEquals("head", d.createHeadElement().getTagName());
   Assert.assertEquals("h1", d.createHElement(1).getTagName());
   Assert.assertEquals("h2", d.createHElement(2).getTagName());
   Assert.assertEquals("h3", d.createHElement(3).getTagName());
   Assert.assertEquals("h4", d.createHElement(4).getTagName());
   Assert.assertEquals("h5", d.createHElement(5).getTagName());
   Assert.assertEquals("h6", d.createHElement(6).getTagName());
   Assert.assertEquals("hr", d.createHRElement().getTagName());
   Assert.assertEquals("iframe", d.createIFrameElement().getTagName());
   Assert.assertEquals("img", d.createImageElement().getTagName());
   Assert.assertEquals("input", d.createElement("input").getTagName());
   Assert.assertEquals("label", d.createLabelElement().getTagName());
   Assert.assertEquals("legend", d.createLegendElement().getTagName());
   Assert.assertEquals("li", d.createLIElement().getTagName());
   Assert.assertEquals("link", d.createLinkElement().getTagName());
   Assert.assertEquals("map", d.createMapElement().getTagName());
   Assert.assertEquals("meta", d.createMetaElement().getTagName());
   Assert.assertEquals("ins", d.createInsElement().getTagName());
   Assert.assertEquals("del", d.createDelElement().getTagName());
   Assert.assertEquals("object", d.createObjectElement().getTagName());
   Assert.assertEquals("ol", d.createOLElement().getTagName());
   Assert.assertEquals("optgroup", d.createOptGroupElement().getTagName());
   Assert.assertEquals("option", d.createOptionElement().getTagName());
   Assert.assertEquals("p", d.createPElement().getTagName());
   Assert.assertEquals("param", d.createParamElement().getTagName());
   Assert.assertEquals("pre", d.createPreElement().getTagName());
   Assert.assertEquals("q", d.createQElement().getTagName());
   Assert.assertEquals("blockquote", d.createBlockQuoteElement().getTagName());
   Assert.assertEquals("script", d.createScriptElement().getTagName());
   Assert.assertEquals("select", d.createSelectElement().getTagName());
   Assert.assertEquals("span", d.createSpanElement().getTagName());
   Assert.assertEquals("style", d.createStyleElement().getTagName());
   Assert.assertEquals("caption", d.createCaptionElement().getTagName());
   Assert.assertEquals("td", d.createTDElement().getTagName());
   Assert.assertEquals("th", d.createTHElement().getTagName());
   Assert.assertEquals("col", d.createColElement().getTagName());
   Assert.assertEquals("colgroup", d.createColGroupElement().getTagName());
   Assert.assertEquals("table", d.createTableElement().getTagName());
   Assert.assertEquals("tbody", d.createTBodyElement().getTagName());
   Assert.assertEquals("tfoot", d.createTFootElement().getTagName());
   Assert.assertEquals("thead", d.createTHeadElement().getTagName());
   Assert.assertEquals("textarea", d.createTextAreaElement().getTagName());
   Assert.assertEquals("title", d.createTitleElement().getTagName());
   Assert.assertEquals("ul", d.createULElement().getTagName());
 }