Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Geolocation / resources / window-close-popup.html
blobf1a2f6edae705e2d64428645ba30361201f951d9
1 <script>
2 var mockLatitude = 51.478;
3 var mockLongitude = -0.166;
4 var mockAccuracy = 100.0;
6 function loadNext() {
7 if (!window.testRunner || !window.internals)
8 debug('This test can not run without testRunner or internals');
10 internals.setGeolocationClientMock(document);
11 internals.setGeolocationPermission(document, true);
12 internals.setGeolocationPosition(document, mockLatitude, mockLongitude, mockAccuracy);
14 navigator.geolocation.watchPosition(window.opener.gotPosition);
16 </script>
17 <body onload="loadNext()"></body>