Skip to content

Commit e751fb0

Browse files
committed
time to remove IE (issue #735)
1 parent 285adfb commit e751fb0

7 files changed

Lines changed: 109 additions & 59 deletions

File tree

src/main/java/org/htmlunit/javascript/host/geo/GeolocationPositionError.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import org.htmlunit.javascript.configuration.JsxConstant;
2020

2121
/**
22-
* A JavaScript object for {@code PositionError}.
22+
* A JavaScript object for GeolocationPositionError.
2323
*
2424
* @author Ahmed Ashour
2525
* @author Ronald Brill

src/test/java/org/htmlunit/general/ElementOwnPropertiesTest.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17273,4 +17273,18 @@ public void cssImportRule() throws Exception {
1727317273
public void cssStyleRule() throws Exception {
1727417274
testString("", "document.styleSheets[4].cssRules[0]");
1727517275
}
17276+
17277+
/**
17278+
* Test {@link org.htmlunit.javascript.host.geo.Geolocation}.
17279+
*
17280+
* @throws Exception if the test fails
17281+
*/
17282+
@Test
17283+
@Alerts(CHROME = "clearWatch(),constructor(),getCurrentPosition(),watchPosition()",
17284+
EDGE = "clearWatch(),constructor(),getCurrentPosition(),watchPosition()",
17285+
FF = "clearWatch(),constructor(),getCurrentPosition(),watchPosition()",
17286+
FF_ESR = "clearWatch(),constructor(),getCurrentPosition(),watchPosition()")
17287+
public void geolocation() throws Exception {
17288+
testString("", " navigator.geolocation");
17289+
}
1727617290
}

src/test/java/org/htmlunit/general/ElementOwnPropertySymbolsTest.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3010,4 +3010,18 @@ public void cssImportRule() throws Exception {
30103010
public void cssStyleRule() throws Exception {
30113011
testString("", "document.styleSheets[4].cssRules[0]");
30123012
}
3013+
3014+
/**
3015+
* Test {@link org.htmlunit.javascript.host.geo.Geolocation}.
3016+
*
3017+
* @throws Exception if the test fails
3018+
*/
3019+
@Test
3020+
@Alerts(CHROME = "Symbol(Symbol.toStringTag) [C] [Geolocation]",
3021+
EDGE = "Symbol(Symbol.toStringTag) [C] [Geolocation]",
3022+
FF = "Symbol(Symbol.toStringTag) [C] [Geolocation]",
3023+
FF_ESR = "Symbol(Symbol.toStringTag) [C] [Geolocation]")
3024+
public void geolocation() throws Exception {
3025+
testString("", " navigator.geolocation");
3026+
}
30133027
}

src/test/java/org/htmlunit/general/ElementPropertiesTest.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8690,4 +8690,18 @@ public void cssImportRule() throws Exception {
86908690
public void cssStyleRule() throws Exception {
86918691
testString("", "document.styleSheets[4].cssRules[0]");
86928692
}
8693+
8694+
/**
8695+
* Test {@link org.htmlunit.javascript.host.geo.Geolocation}.
8696+
*
8697+
* @throws Exception if the test fails
8698+
*/
8699+
@Test
8700+
@Alerts(CHROME = "clearWatch(),getCurrentPosition(),watchPosition()",
8701+
EDGE = "clearWatch(),getCurrentPosition(),watchPosition()",
8702+
FF = "clearWatch(),getCurrentPosition(),watchPosition()",
8703+
FF_ESR = "clearWatch(),getCurrentPosition(),watchPosition()")
8704+
public void geolocation() throws Exception {
8705+
testString("", " navigator.geolocation");
8706+
}
86938707
}

src/test/java/org/htmlunit/general/HostClassNameTest.java

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2679,6 +2679,39 @@ public void geolocation() throws Exception {
26792679
test("Geolocation");
26802680
}
26812681

2682+
/**
2683+
* Test {@link org.htmlunit.javascript.host.geo.GeolocationCoordinates}.
2684+
*
2685+
* @throws Exception if an error occurs
2686+
*/
2687+
@Test
2688+
@Alerts("function GeolocationCoordinates() { [native code] }")
2689+
public void geolocationCoordinates() throws Exception {
2690+
test("GeolocationCoordinates");
2691+
}
2692+
2693+
/**
2694+
* Test {@link org.htmlunit.javascript.host.geo.GeolocationPosition}.
2695+
*
2696+
* @throws Exception if an error occurs
2697+
*/
2698+
@Test
2699+
@Alerts("function GeolocationPosition() { [native code] }")
2700+
public void geolocationPosition() throws Exception {
2701+
test("GeolocationPosition");
2702+
}
2703+
2704+
/**
2705+
* Test {@link org.htmlunit.javascript.host.geo.GeolocationPositionError}.
2706+
*
2707+
* @throws Exception if an error occurs
2708+
*/
2709+
@Test
2710+
@Alerts("function GeolocationPositionError() { [native code] }")
2711+
public void geolocationPositionError() throws Exception {
2712+
test("GeolocationPositionError");
2713+
}
2714+
26822715
/**
26832716
* @throws Exception if the test fails
26842717
*/

src/test/java/org/htmlunit/general/HostTypeOfTest.java

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2648,6 +2648,39 @@ public void geolocation() throws Exception {
26482648
test("Geolocation");
26492649
}
26502650

2651+
/**
2652+
* Test {@link org.htmlunit.javascript.host.geo.GeolocationCoordinates}.
2653+
*
2654+
* @throws Exception if an error occurs
2655+
*/
2656+
@Test
2657+
@Alerts("function")
2658+
public void geolocationCoordinates() throws Exception {
2659+
test("GeolocationCoordinates");
2660+
}
2661+
2662+
/**
2663+
* Test {@link org.htmlunit.javascript.host.geo.GeolocationPosition}.
2664+
*
2665+
* @throws Exception if an error occurs
2666+
*/
2667+
@Test
2668+
@Alerts("function")
2669+
public void geolocationPosition() throws Exception {
2670+
test("GeolocationPosition");
2671+
}
2672+
2673+
/**
2674+
* Test {@link org.htmlunit.javascript.host.geo.GeolocationPositionError}.
2675+
*
2676+
* @throws Exception if an error occurs
2677+
*/
2678+
@Test
2679+
@Alerts("function")
2680+
public void GeolocationPositionError() throws Exception {
2681+
test("GeolocationPositionError");
2682+
}
2683+
26512684
/**
26522685
* @throws Exception if the test fails
26532686
*/

src/test/java/org/htmlunit/javascript/host/ActiveXObjectTest.java

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)