summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/dom/Geolocation/resources/window-close-popup.html
blob: 5370b4cfb30d8510598b90fc83d47f2808347f78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<script>
var mockLatitude = 51.478;
var mockLongitude = -0.166;
var mockAccuracy = 100.0;

function loadNext() {
    var geolocation = navigator.geolocation;

    if (window.layoutTestController) {
       layoutTestController.setGeolocationPermission(true);
       layoutTestController.setMockGeolocationPosition(mockLatitude, mockLongitude, mockAccuracy);
    }

    navigator.geolocation.watchPosition(window.opener.gotPosition);
}
</script>
<body onload="loadNext()"></body>