Skip to content

Commit c8d1ad6

Browse files
committed
on the way to use html5 doctype for all our tests
1 parent be9e24c commit c8d1ad6

File tree

7 files changed

+209
-188
lines changed

7 files changed

+209
-188
lines changed

src/test/java/org/htmlunit/html/DomNamespaceNodeTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* Tests for {@link DomNamespaceNode}.
2424
*
2525
* @author Ahmed Ashour
26+
* @author Ronald Brill
2627
*/
2728
@RunWith(BrowserRunner.class)
2829
public class DomNamespaceNodeTest extends SimpleWebTestCase {
@@ -32,7 +33,7 @@ public class DomNamespaceNodeTest extends SimpleWebTestCase {
3233
*/
3334
@Test
3435
public void getLocalName() throws Exception {
35-
final String content = "<HTML></HTML>";
36+
final String content = DOCTYPE_HTML + "<HTML></HTML>";
3637
final HtmlPage page = loadPage(content);
3738
assertEquals(1, page.getByXPath("//html").size());
3839
}

src/test/java/org/htmlunit/html/FocusableElementTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ public class FocusableElementTest extends SimpleWebTestCase {
3636
*/
3737
@Test
3838
public void onBlurWith2Pages() throws Exception {
39-
final String html =
40-
"<html>\n"
39+
final String html = DOCTYPE_HTML
40+
+ "<html>\n"
4141
+ "<head>\n"
4242
+ "<script>\n"
4343
+ " var bCalled = false;\n"
@@ -64,8 +64,8 @@ public void onBlurWith2Pages() throws Exception {
6464
*/
6565
@Test
6666
public void focusin() throws Exception {
67-
final String html =
68-
"<html>\n"
67+
final String html = DOCTYPE_HTML
68+
+ "<html>\n"
6969
+ "<head>\n"
7070
+ "<script>\n"
7171
+ " function handler(_e) {\n"

src/test/java/org/htmlunit/html/HtmlAnchor2Test.java

Lines changed: 93 additions & 86 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)