@throws Exception if the test fails
()
| 41 | * @throws Exception if the test fails |
| 42 | */ |
| 43 | @Test |
| 44 | public void textContent() throws Exception { |
| 45 | final String html = DOCTYPE_HTML + "<html id='foo'><body></body></html>"; |
| 46 | final HtmlPage page = loadPage(html); |
| 47 | final DomAttr attr = page.getDocumentElement().getAttributeNode("id"); |
| 48 | |
| 49 | assertEquals("foo", attr.getTextContent()); |
| 50 | attr.setTextContent("hello"); |
| 51 | assertEquals("hello", attr.getTextContent()); |
| 52 | |
| 53 | assertEquals(page.getDocumentElement(), page.getHtmlElementById("hello")); |
| 54 | } |
| 55 | } |
nothing calls this directly
no test coverage detected