| Index: third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/error-service-connection-error.js
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/error.js b/third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/error-service-connection-error.js
|
| similarity index 55%
|
| copy from third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/error.js
|
| copy to third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/error-service-connection-error.js
|
| index a2d730bec594cc6d5f940dc7b0b85b838ecf2150..a5f070a38b3b65a6dd1d85168cf5aac927b06cef 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/error.js
|
| +++ b/third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/error-service-connection-error.js
|
| @@ -1,6 +1,4 @@
|
| -description("Tests Geolocation error callback using the mock service.");
|
| -
|
| -var mockMessage = "debug";
|
| +description("Tests Geolocation when the geolocation service connection fails.");
|
|
|
| if (!window.testRunner || !window.mojo)
|
| debug('This test can not run without testRunner or mojo');
|
| @@ -9,7 +7,7 @@ var error;
|
|
|
| geolocationServiceMock.then(mock => {
|
| mock.setGeolocationPermission(true);
|
| - mock.setGeolocationPositionUnavailableError(mockMessage);
|
| + mock.rejectGeolocationConnections();
|
|
|
| navigator.geolocation.getCurrentPosition(function(p) {
|
| testFailed('Success callback invoked unexpectedly');
|
| @@ -17,11 +15,7 @@ geolocationServiceMock.then(mock => {
|
| }, function(e) {
|
| error = e;
|
| shouldBe('error.code', 'error.POSITION_UNAVAILABLE');
|
| - shouldBe('error.message', 'mockMessage');
|
| - shouldBe('error.UNKNOWN_ERROR', 'undefined');
|
| - shouldBe('error.PERMISSION_DENIED', '1');
|
| - shouldBe('error.POSITION_UNAVAILABLE', '2');
|
| - shouldBe('error.TIMEOUT', '3');
|
| + shouldBe('error.message', '"Failed to start Geolocation service"');
|
| finishJSTest();
|
| });
|
| });
|
|
|