blob: 0f1e6a4390641600c6fa85537e58bdaba106f0ce [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<script type="module">
test(() => {
const geolocation = window.navigator.geolocation;
assert_throws_js(TypeError, () => geolocation.getCurrentPosition());
assert_throws_js(TypeError, () => geolocation.watchPosition());
assert_throws_js(TypeError, () => geolocation.clearWatch());
}, 'geolocation API rejects calls with missing arguments');
</script>
</body>
</html>