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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Geolocation/enabled.html

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698