1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../../../resources/js-test.js"></script>
8 description("This tests removing the watcher from a position callback does not causes assertions.");
10 var mockLatitude
= 51.478;
11 var mockLongitude
= -0.166;
12 var mockAccuracy
= 100;
14 if (!window
.testRunner
|| !window
.internals
)
15 debug('This test can not run without testRunner or internals');
17 internals
.setGeolocationPermission(document
, true);
18 internals
.setGeolocationPosition(document
,
23 var watchId
= navigator
.geolocation
.watchPosition(function() {
24 navigator
.geolocation
.clearWatch(watchId
);
27 navigator
.geolocation
.clearWatch(watchId
);
32 window
.jsTestIsAsync
= true;