Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Geolocation / not-enough-arguments.html
blobe7137431e8f7aeef5fe4a225099cb4bbbf45b3d2
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <script>
8 description("Tests how Geolocation handles receiving too few arguments.");
10 shouldThrow("window.navigator.geolocation.getCurrentPosition()");
11 shouldThrow("window.navigator.geolocation.watchPosition()");
12 shouldThrow("window.navigator.geolocation.clearWatch()", '"TypeError: Failed to execute \'clearWatch\' on \'Geolocation\': 1 argument required, but only 0 present."');
13 </script>
14 </body>
15 </html>