blob: c8444ea889fe53b2cb4b603cf10b1dc74e8ec826 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../resources/js-test.js"></script>
</head>
<body>
<script>
description("Tests how Geolocation handles receiving too few arguments.");
shouldThrow("window.navigator.geolocation.getCurrentPosition()");
shouldThrow("window.navigator.geolocation.watchPosition()");
shouldThrow("window.navigator.geolocation.clearWatch()", '"TypeError: Failed to execute \'clearWatch\' on \'Geolocation\': 1 argument required, but only 0 present."');
</script>
</body>
</html>