| Index: third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/reentrant-error.js
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/reentrant-error.js b/third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/reentrant-error.js
|
| deleted file mode 100644
|
| index c2c3c9b2285febd963c73dbaf49805142402b046..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/reentrant-error.js
|
| +++ /dev/null
|
| @@ -1,46 +0,0 @@
|
| -description("Tests that reentrant calls to Geolocation methods from the error callback are OK.");
|
| -
|
| -var mockMessage = 'test';
|
| -
|
| -var error;
|
| -
|
| -geolocationServiceMock.then(mock => {
|
| - mock.setGeolocationPermission(true);
|
| - mock.setGeolocationPositionUnavailableError(mockMessage);
|
| -
|
| - var errorCallbackInvoked = false;
|
| - navigator.geolocation.getCurrentPosition(function(p) {
|
| - testFailed('Success callback invoked unexpectedly');
|
| - finishJSTest();
|
| - }, function(e) {
|
| - if (errorCallbackInvoked) {
|
| - testFailed('Error callback invoked unexpectedly');
|
| - finishJSTest();
|
| - }
|
| - errorCallbackInvoked = true;
|
| -
|
| - error = e;
|
| - shouldBe('error.code', 'error.POSITION_UNAVAILABLE');
|
| - shouldBe('error.message', 'mockMessage');
|
| - debug('');
|
| - continueTest();
|
| - });
|
| -
|
| - function continueTest() {
|
| - mockMessage += ' repeat';
|
| -
|
| - mock.setGeolocationPositionUnavailableError(mockMessage);
|
| -
|
| - navigator.geolocation.getCurrentPosition(function(p) {
|
| - testFailed('Success callback invoked unexpectedly');
|
| - finishJSTest();
|
| - }, function(e) {
|
| - error = e;
|
| - shouldBe('error.code', 'error.POSITION_UNAVAILABLE');
|
| - shouldBe('error.message', 'mockMessage');
|
| - finishJSTest();
|
| - });
|
| - }
|
| -});
|
| -
|
| -window.jsTestIsAsync = true;
|
|
|