File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed
src/test/java/org/htmlunit/javascript/host/geo Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff 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 "
Original file line number Diff line number Diff 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 "
Original file line number Diff line number Diff 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 "
Original file line number Diff line number Diff 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 "
You can’t perform that action at this time.
0 commit comments