https://github.com/web-platform-tests/wpt
Raw File
Tip revision: d667dfe87079b7acf0d9ec69afd1158e5f7fde8a authored by Rob Buis on 12 April 2018, 16:14:10 UTC
Fix regression allowing text value for -webkit-background-origin
Tip revision: d667dfe
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