org.w3c.dom.html.HTMLBodyElement Java Examples
The following examples show how to use
org.w3c.dom.html.HTMLBodyElement.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: OdfToolkitUtilTest.java From fastods with GNU General Public License v3.0 | 5 votes |
@Test public void testFirstElement() { final HTMLDocumentImpl owner = new HTMLDocumentImpl(); final HTMLBodyElement n = new HTMLBodyElementImpl(owner, "body"); final HTMLDivElement d = new HTMLDivElementImpl(owner, "div"); n.appendChild(d); Assert.assertNull(OdfToolkitUtil.getFirstElement(n, "ddd")); Assert.assertEquals(d, OdfToolkitUtil.getFirstElement(n, "div")); }
Example #2
Source File: OdfToolkitUtilTest.java From fastods with GNU General Public License v3.0 | 4 votes |
@Test public void testAttribute() { final HTMLBodyElement n = new HTMLBodyElementImpl(new HTMLDocumentImpl(), "body"); n.setBgColor("color"); Assert.assertEquals("color", OdfToolkitUtil.getAttribute(n, "bgcolor")); }