Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: third_party/WebKit/LayoutTests/geolocation-api/argument-types.html

Issue 2671933003: Move Geolocation out from fast/dom. (Closed)
Patch Set: . Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698