OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../../resources/js-test.js"></script> | 4 <script src="../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 description("Tests how Geolocation handles receiving too few arguments."); | 8 description("Tests how Geolocation handles receiving too few arguments."); |
9 | 9 |
10 shouldThrow("window.navigator.geolocation.getCurrentPosition()"); | 10 shouldThrow("window.navigator.geolocation.getCurrentPosition()"); |
11 shouldThrow("window.navigator.geolocation.watchPosition()"); | 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 prese
nt."'); | 12 shouldThrow("window.navigator.geolocation.clearWatch()", '"TypeError: Failed to
execute \'clearWatch\' on \'Geolocation\': 1 argument required, but only 0 prese
nt."'); |
13 </script> | 13 </script> |
14 </body> | 14 </body> |
15 </html> | 15 </html> |
OLD | NEW |