| Index: LayoutTests/inspector/geolocation-emulation/emulate-geolocation-with-overrides.html
|
| diff --git a/LayoutTests/inspector/geolocation-emulation/emulate-geolocation-with-overrides.html b/LayoutTests/inspector/geolocation-emulation/emulate-geolocation-with-overrides.html
|
| deleted file mode 100644
|
| index f562cac254a891803255c4fbd5b48be33cb08944..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/inspector/geolocation-emulation/emulate-geolocation-with-overrides.html
|
| +++ /dev/null
|
| @@ -1,64 +0,0 @@
|
| -<html>
|
| -<head>
|
| -<script src="../../http/tests/inspector/inspector-test.js"></script>
|
| -<script>
|
| -
|
| -function testLocationMock()
|
| -{
|
| - function testSuccess(position)
|
| - {
|
| - if (position.message) console.log("Error " + position.message)
|
| - else console.log("Latitude: " + position.coords.latitude + " Longitude: " + position.coords.longitude);
|
| - }
|
| -
|
| - function testFailed()
|
| - {
|
| - console.log("Unexpected error occured. Test failed.");
|
| - }
|
| -
|
| - var mockLatitude = 100;
|
| - var mockLongitude = 200;
|
| - var mockAccuracy = 94;
|
| -
|
| - internals.setGeolocationPosition(document, mockLatitude, mockLongitude, mockAccuracy);
|
| - navigator.geolocation.getCurrentPosition(testSuccess, testFailed);
|
| -}
|
| -
|
| -function setup()
|
| -{
|
| - if (window.internals) {
|
| - internals.setGeolocationClientMock(document);
|
| - internals.setGeolocationPermission(document, true);
|
| - }
|
| -}
|
| -
|
| -function test()
|
| -{
|
| - InspectorTest.runTestSuite([
|
| - function setUp(next)
|
| - {
|
| - InspectorTest.evaluateInPage("setup()", next);
|
| - },
|
| -
|
| - function setOverride(next)
|
| - {
|
| - InspectorTest.addConsoleSniffer(next);
|
| - // Override positions
|
| - GeolocationAgent.setGeolocationOverride(-510, 512, 100);
|
| - InspectorTest.evaluateInPage("testLocationMock()", next);
|
| - },
|
| -
|
| - function clearOverride(next)
|
| - {
|
| - GeolocationAgent.clearGeolocationOverride(next);
|
| - }
|
| - ]);
|
| -}
|
| -</script>
|
| -</head>
|
| -<body onload="runTest()">
|
| -<p>
|
| -Tests that geolocation emulation with latitude and longitude works as expected.
|
| -</p>
|
| -</body>
|
| -</html>
|
|
|