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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/permission-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/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');

Powered by Google App Engine
This is Rietveld 408576698