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

Side by Side Diff: third_party/WebKit/LayoutTests/geolocation-api/enabled.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 that the navigator.geolocation object is present."); 8 description("Tests that the navigator.geolocation object is present.");
9 9
10 function hasGeolocationProperty() 10 function hasGeolocationProperty()
11 { 11 {
12 for (var property in navigator) { 12 for (var property in navigator) {
13 if (property == "geolocation") 13 if (property == "geolocation")
14 return true; 14 return true;
15 } 15 }
16 return false; 16 return false;
17 } 17 }
18 18
19 shouldBeTrue("typeof navigator.geolocation == 'object'"); 19 shouldBeTrue("typeof navigator.geolocation == 'object'");
20 shouldBeTrue("hasGeolocationProperty()"); 20 shouldBeTrue("hasGeolocationProperty()");
21 shouldBeTrue("'geolocation' in navigator"); 21 shouldBeTrue("'geolocation' in navigator");
22 22
23 window.jsTestIsAsync = false; 23 window.jsTestIsAsync = false;
24 </script> 24 </script>
25 </body> 25 </body>
26 </html> 26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698