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

Unified Diff: LayoutTests/fast/dom/Geolocation/watchPosition-page-visibility-expected.txt

Issue 27368003: Add page visibility observer for Geolocation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix nit Created 7 years, 2 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: LayoutTests/fast/dom/Geolocation/watchPosition-page-visibility-expected.txt
diff --git a/LayoutTests/fast/dom/Geolocation/watchPosition-page-visibility-expected.txt b/LayoutTests/fast/dom/Geolocation/watchPosition-page-visibility-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..8a656f2c7dea6267c6a3ee418fe3786da10bb8a3
--- /dev/null
+++ b/LayoutTests/fast/dom/Geolocation/watchPosition-page-visibility-expected.txt
@@ -0,0 +1,33 @@
+Tests that watchPosition does not report position changes when the page is not visible.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+* Page is visible
+device moved to (52.478, 0.834)
+Page is notified of the position change
+PASS isPageVisible is true
+PASS position.coords.latitude is 52.478
+PASS position.coords.longitude is 0.834
+
+device moved to (53.478, 1.834)
+Page is notified of the position change
+PASS isPageVisible is true
+PASS position.coords.latitude is 53.478
+PASS position.coords.longitude is 1.834
+
+* Hiding page
+device moved to (54.478, 2.834)
+PASS isPageVisible is false
+
+*Showing page
+device moved to (55.478, 3.834)
+Page is notified of the position change
+PASS isPageVisible is true
+PASS position.coords.latitude is 55.478
+PASS position.coords.longitude is 3.834
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698