OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
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 the acceptable types for arguments to Geolocation methods."); | 8 description("Tests the acceptable types for arguments to Geolocation methods."); |
9 | 9 |
10 function shouldNotThrow(expression) | 10 function shouldNotThrow(expression) |
11 { | 11 { |
12 try { | 12 try { |
13 eval(expression); | 13 eval(expression); |
14 testPassed(expression + " did not throw exception."); | 14 testPassed(expression + " did not throw exception."); |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 test('navigator.geolocation.getCurrentPosition(emptyFunction, undefined, {timeou
t:42})', false); | 119 test('navigator.geolocation.getCurrentPosition(emptyFunction, undefined, {timeou
t:42})', false); |
120 test('navigator.geolocation.getCurrentPosition(emptyFunction, undefined, {timeou
t:Infinity})', false); | 120 test('navigator.geolocation.getCurrentPosition(emptyFunction, undefined, {timeou
t:Infinity})', false); |
121 test('navigator.geolocation.getCurrentPosition(emptyFunction, undefined, {timeou
t:-Infinity})', false); | 121 test('navigator.geolocation.getCurrentPosition(emptyFunction, undefined, {timeou
t:-Infinity})', false); |
122 test('navigator.geolocation.getCurrentPosition(emptyFunction, undefined, {timeou
t:"string"})', false); | 122 test('navigator.geolocation.getCurrentPosition(emptyFunction, undefined, {timeou
t:"string"})', false); |
123 | 123 |
124 window.jsTestIsAsync = false; | 124 window.jsTestIsAsync = false; |
125 | 125 |
126 </script> | 126 </script> |
127 </body> | 127 </body> |
128 </html> | 128 </html> |
OLD | NEW |