| Index: third_party/WebKit/LayoutTests/fast/dom/Geolocation/permission-service-connection-error.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/Geolocation/permission-service-connection-error.html b/third_party/WebKit/LayoutTests/fast/dom/Geolocation/permission-service-connection-error.html
|
| index 76d271661be5d59b18c77852d3ddf58ba23b3e7c..d4f7a3d8c9180c32cf09cbf9b13e143d6a7ae0f5 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/dom/Geolocation/permission-service-connection-error.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/dom/Geolocation/permission-service-connection-error.html
|
| @@ -6,6 +6,27 @@
|
| <script src="resources/geolocation-mock.js"></script>
|
| </head>
|
| <body>
|
| -<script src="script-tests/permission-service-connection-error.js"></script>
|
| +<script>
|
| +description("Tests Geolocation when the permission service connection fails.");
|
| +
|
| +var error;
|
| +
|
| +geolocationServiceMock.then(mock => {
|
| +
|
| + mock.rejectPermissionConnections();
|
| +
|
| + navigator.geolocation.getCurrentPosition(function(p) {
|
| + testFailed('Success callback invoked unexpectedly');
|
| + finishJSTest();
|
| + }, function(e) {
|
| + error = e;
|
| + shouldBe('error.code', 'error.PERMISSION_DENIED');
|
| + shouldBe('error.message', '"User denied Geolocation"');
|
| + finishJSTest();
|
| + });
|
| +});
|
| +
|
| +window.jsTestIsAsync = true;
|
| +</script>
|
| </body>
|
| </html>
|
|
|