Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(972)

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/error-service-connection-error.js

Issue 1367853002: Move GeolocationDispatcher into blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
});
});

Powered by Google App Engine
This is Rietveld 408576698