2 var mockLatitude
= 51.478;
3 var mockLongitude
= -0.166;
4 var mockAccuracy
= 100.0;
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
);
17 <body onload=
"loadNext()"></body>