Skip to content

Commit 59e9134

Browse files
committed
on the way to use html5 doctype for all our tests
1 parent f15f24d commit 59e9134

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/test/java/org/htmlunit/javascript/host/geo/GeolocationCoordinatesTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ public class GeolocationCoordinatesTest extends WebDriverTestCase {
3434
@Test
3535
@Alerts("TypeError")
3636
public void ctor() throws Exception {
37-
final String html =
38-
"<html><head><script>\n"
37+
final String html = DOCTYPE_HTML
38+
+ "<html><head><script>\n"
3939
+ LOG_TITLE_FUNCTION
4040
+ " function test() {\n"
4141
+ " try {\n"

src/test/java/org/htmlunit/javascript/host/geo/GeolocationPositionErrorTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ public class GeolocationPositionErrorTest extends WebDriverTestCase {
3434
@Test
3535
@Alerts("TypeError")
3636
public void ctor() throws Exception {
37-
final String html =
38-
"<html><head><script>\n"
37+
final String html = DOCTYPE_HTML
38+
+ "<html><head><script>\n"
3939
+ LOG_TITLE_FUNCTION
4040
+ " function test() {\n"
4141
+ " try {\n"

src/test/java/org/htmlunit/javascript/host/geo/GeolocationPositionTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ public class GeolocationPositionTest extends WebDriverTestCase {
3434
@Test
3535
@Alerts("TypeError")
3636
public void ctor() throws Exception {
37-
final String html =
38-
"<html><head><script>\n"
37+
final String html = DOCTYPE_HTML
38+
+ "<html><head><script>\n"
3939
+ LOG_TITLE_FUNCTION
4040
+ " function test() {\n"
4141
+ " try {\n"

src/test/java/org/htmlunit/javascript/host/geo/GeolocationTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public class GeolocationTest extends WebDriverTestCase {
4545
@Test
4646
@Alerts("TypeError")
4747
public void ctor() throws Exception {
48-
final String html =
49-
"<html><head><script>\n"
48+
final String html = DOCTYPE_HTML
49+
+ "<html><head><script>\n"
5050
+ LOG_TITLE_FUNCTION
5151
+ " function test() {\n"
5252
+ " try {\n"
@@ -65,8 +65,8 @@ public void ctor() throws Exception {
6565
@Test
6666
@Alerts("[object Geolocation]")
6767
public void navigatorGeolocation() throws Exception {
68-
final String html =
69-
"<html><head><script>\n"
68+
final String html = DOCTYPE_HTML
69+
+ "<html><head><script>\n"
7070
+ LOG_TITLE_FUNCTION
7171
+ " function test() {\n"
7272
+ " try {\n"
@@ -87,8 +87,8 @@ public void navigatorGeolocation() throws Exception {
8787
"Longitude: 7.654321",
8888
"Accuracy: 0.1234"})
8989
public void getCurrentPosition() throws Exception {
90-
final String html =
91-
"<html><head><script>\n"
90+
final String html = DOCTYPE_HTML
91+
+ "<html><head><script>\n"
9292
+ LOG_TITLE_FUNCTION
9393
+ " function success(pos) {\n"
9494
+ " const crd = pos.coords;\n"

0 commit comments

Comments
 (0)