https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 92ea85944695eb6db9a1c60b5982ea3335f180a4 authored by Philip Jägenstedt on 03 April 2018, 21:38:14 UTC
can't link to chrome://, give up
Tip revision: 92ea859
clearWatch_TypeError.html
<!DOCTYPE HTML>
<meta charset='utf-8'>
<title>Geolocation Test: clearWatch TypeError tests</title>
<link rel='help' href='http://www.w3.org/TR/geolocation-API/#clear-watch'>
<script src='/resources/testharness.js'></script>
<script src='/resources/testharnessreport.js'></script>
<script src='support.js'></script>

<div id='log'></div>

<script>
// Rewrite http://dev.w3.org/geo/api/test-suite/t.html?00080
test(function() {
  try {
    geo.clearWatch(-1);
    geo.clearWatch(0);
    geo.clearWatch(1);
  } catch(e) {
    assert_unreached('An exception was thrown unexpectedly: ' + e.message);
  }
}, 'Test that calling clearWatch with invalid watch IDs does not cause an exception');
</script>
back to top