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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 description("Tests Geolocation when the geolocation service connection fails.");
2
3 if (!window.testRunner || !window.mojo)
4 debug('This test can not run without testRunner or mojo');
5
6 var error;
7
8 geolocationServiceMock.then(mock => {
9 mock.setGeolocationPermission(true);
10 mock.rejectGeolocationConnections();
11
12 navigator.geolocation.getCurrentPosition(function(p) {
13 testFailed('Success callback invoked unexpectedly');
14 finishJSTest();
15 }, function(e) {
16 error = e;
17 shouldBe('error.code', 'error.POSITION_UNAVAILABLE');
18 shouldBe('error.message', '"Failed to start Geolocation service"');
19 finishJSTest();
20 });
21 });
22
23 window.jsTestIsAsync = true;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698