blob: d191e3850947ea67419b280ac34f52124a6ccfce [file] [log] [blame]
<script>
var mockLatitude = 51.478;
var mockLongitude = -0.166;
var mockAccuracy = 100.0;
function loadNext() {
var geolocation = navigator.geolocation;
if (window.testRunner) {
testRunner.setGeolocationPermission(true);
testRunner.setMockGeolocationPosition(mockLatitude, mockLongitude, mockAccuracy);
}
navigator.geolocation.watchPosition(window.opener.gotPosition);
}
</script>
<body onload="loadNext()"></body>