https://github.com/web-platform-tests/wpt
Raw File
Tip revision: be315b1de5c832b49d353768e0b2a268658714b9 authored by Chris Rebert on 09 October 2015, 01:08:52 UTC
Stop using designMode and execCommand for dirtying in HTML form constraint tests
Tip revision: be315b1
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);
  }
  done();
}, 'Test that calling clearWatch with invalid watch IDs does not cause an exception');
</script>
back to top