1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../../../resources/js-test.js"></script>
8 description("This tests removing the watcher from an error callback does not causes assertions.");
10 if (!window
.testRunner
|| !window
.internals
)
11 debug('This test can not run without testRunner or internals');
13 internals
.setGeolocationPermission(document
, true);
14 internals
.setGeolocationPositionUnavailableError(document
, "debug");
16 var watchId
= navigator
.geolocation
.watchPosition(function() {
17 navigator
.geolocation
.clearWatch(watchId
);
20 navigator
.geolocation
.clearWatch(watchId
);
25 window
.jsTestIsAsync
= true;