https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 36857c5f01b941752b8877902dccd8b7b01202be authored by Tooru Fujisawa on 02 October 2018, 08:23:59 UTC
Do not raise error if jstests.py is executed without virtualenv on non-automation.
Tip revision: 36857c5
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