diff options
Diffstat (limited to 'LayoutTests/fast/dom/Geolocation/resources/window-close-popup.html')
-rw-r--r-- | LayoutTests/fast/dom/Geolocation/resources/window-close-popup.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/LayoutTests/fast/dom/Geolocation/resources/window-close-popup.html b/LayoutTests/fast/dom/Geolocation/resources/window-close-popup.html new file mode 100644 index 0000000..cfeabae --- /dev/null +++ b/LayoutTests/fast/dom/Geolocation/resources/window-close-popup.html @@ -0,0 +1,19 @@ +<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( + function(p) { window.opener.gotPosition(); }, + function(e) { window.opener.failedToCreateWatch(e); }); +} +</script> +<body onload="loadNext()"></body> |