Index: third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/permission-service-connection-error.js |
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/permission-denied.js b/third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/permission-service-connection-error.js |
similarity index 74% |
copy from third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/permission-denied.js |
copy to third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/permission-service-connection-error.js |
index d89d110268a5398e23d2fee582c60dee3122597f..7951b6aedf84ac88d598ba1daf7ee889b8ea9879 100644 |
--- a/third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/permission-denied.js |
+++ b/third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/permission-service-connection-error.js |
@@ -1,4 +1,4 @@ |
-description("Tests Geolocation when permission is denied, using the mock service."); |
+description("Tests Geolocation when the permission service connection fails."); |
if (!window.testRunner || !window.mojo) |
debug('This test can not run without testRunner or mojo'); |
@@ -7,8 +7,7 @@ var error; |
geolocationServiceMock.then(mock => { |
- mock.setGeolocationPermission(false); |
- mock.setGeolocationPosition(51.478, -0.166, 100.0); |
+ mock.rejectPermissionConnections(); |
navigator.geolocation.getCurrentPosition(function(p) { |
testFailed('Success callback invoked unexpectedly'); |