File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/test/java/org/htmlunit/javascript/host/geo Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -43,15 +43,15 @@ public class GeolocationTest extends WebDriverTestCase {
4343 * @throws Exception if the test fails
4444 */
4545 @ Test
46- @ Alerts ("exception " )
46+ @ Alerts ("TypeError " )
4747 public void ctor () throws Exception {
4848 final String html =
4949 "<html><head><script>\n "
5050 + LOG_TITLE_FUNCTION
5151 + " function test() {\n "
5252 + " try {\n "
5353 + " new Geolocation();\n "
54- + " } catch (e) { log('exception' ) }\n "
54+ + " } catch (e) { log(e.name ) }\n "
5555 + " }\n "
5656 + "</script></head><body onload='test()'>\n "
5757 + "</body></html>" ;
@@ -71,7 +71,7 @@ public void navigatorGeolocation() throws Exception {
7171 + " function test() {\n "
7272 + " try {\n "
7373 + " log(navigator.geolocation);\n "
74- + " } catch (e) { log('exception' ) }\n "
74+ + " } catch (e) { log(e.name ) }\n "
7575 + " }\n "
7676 + "</script></head><body onload='test()'>\n "
7777 + "</body></html>" ;
@@ -104,7 +104,7 @@ public void getCurrentPosition() throws Exception {
104104 + " function test() {\n "
105105 + " try {\n "
106106 + " navigator.geolocation.getCurrentPosition(success, error);\n "
107- + " } catch (e) { log('exception' ) }\n "
107+ + " } catch (e) { log(e.name ) }\n "
108108 + " }\n "
109109 + "</script></head>\n "
110110 + "<body onload='test()'>\n "
You can’t perform that action at this time.
0 commit comments