| Index: third_party/WebKit/LayoutTests/fast/dom/Geolocation/enabled.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/Geolocation/enabled.html b/third_party/WebKit/LayoutTests/fast/dom/Geolocation/enabled.html
|
| index b6330e15c4184f41c627a767094c9a5dda2d8af4..da45a2540072e470cf7a5a3d5d86727caf951b0a 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/dom/Geolocation/enabled.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/dom/Geolocation/enabled.html
|
| @@ -4,6 +4,23 @@
|
| <script src="../../../resources/js-test.js"></script>
|
| </head>
|
| <body>
|
| -<script src="script-tests/enabled.js"></script>
|
| +<script>
|
| +description("Tests that the navigator.geolocation object is present.");
|
| +
|
| +function hasGeolocationProperty()
|
| +{
|
| + for (var property in navigator) {
|
| + if (property == "geolocation")
|
| + return true;
|
| + }
|
| + return false;
|
| +}
|
| +
|
| +shouldBeTrue("typeof navigator.geolocation == 'object'");
|
| +shouldBeTrue("hasGeolocationProperty()");
|
| +shouldBeTrue("'geolocation' in navigator");
|
| +
|
| +window.jsTestIsAsync = false;
|
| +</script>
|
| </body>
|
| </html>
|
|
|