<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>
