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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Geolocation/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
(Empty)
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <script>
8 description("Tests that the navigator.geolocation object is present.");
9
10 function hasGeolocationProperty()
11 {
12 for (var property in navigator) {
13 if (property == "geolocation")
14 return true;
15 }
16 return false;
17 }
18
19 shouldBeTrue("typeof navigator.geolocation == 'object'");
20 shouldBeTrue("hasGeolocationProperty()");
21 shouldBeTrue("'geolocation' in navigator");
22
23 window.jsTestIsAsync = false;
24 </script>
25 </body>
26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698