| Index: third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/multiple-requests.js
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/multiple-requests.js b/third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/multiple-requests.js
|
| deleted file mode 100644
|
| index ca73f26689208f5f6952a817cd66fe0a8f4ae343..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/multiple-requests.js
|
| +++ /dev/null
|
| @@ -1,43 +0,0 @@
|
| -description("Tests that Geolocation correctly handles multiple concurrent requests.");
|
| -
|
| -var mockLatitude = 51.478;
|
| -var mockLongitude = -0.166;
|
| -var mockAccuracy = 100;
|
| -
|
| -var position;
|
| -var watchCallbackInvoked = false;
|
| -var oneShotCallbackInvoked = false;
|
| -
|
| -geolocationServiceMock.then(mock => {
|
| - mock.setGeolocationPermission(true);
|
| - mock.setGeolocationPosition(mockLatitude, mockLongitude, mockAccuracy);
|
| -
|
| - navigator.geolocation.watchPosition(function(p) {
|
| - shouldBeFalse('watchCallbackInvoked');
|
| - watchCallbackInvoked = true;
|
| - maybeFinishTest(p);
|
| - }, function() {
|
| - testFailed('Error callback invoked unexpectedly');
|
| - finishJSTest();
|
| - });
|
| -
|
| - navigator.geolocation.getCurrentPosition(function(p) {
|
| - shouldBeFalse('oneShotCallbackInvoked');
|
| - oneShotCallbackInvoked = true;
|
| - maybeFinishTest(p);
|
| - }, function() {
|
| - testFailed('Error callback invoked unexpectedly');
|
| - finishJSTest();
|
| - });
|
| -
|
| - function maybeFinishTest(p) {
|
| - position = p;
|
| - shouldBe('position.coords.latitude', 'mockLatitude');
|
| - shouldBe('position.coords.longitude', 'mockLongitude');
|
| - shouldBe('position.coords.accuracy', 'mockAccuracy');
|
| - if (watchCallbackInvoked && oneShotCallbackInvoked)
|
| - finishJSTest();
|
| - }
|
| -});
|
| -
|
| -window.jsTestIsAsync = true;
|
|
|