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

Unified Diff: LayoutTests/gamepad/page-visibility-expected.txt

Issue 306363002: Gamepad: honor page visibility (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: just a comment that it will be better with Oilpan Created 6 years, 6 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/gamepad/page-visibility-expected.txt
diff --git a/LayoutTests/gamepad/page-visibility-expected.txt b/LayoutTests/gamepad/page-visibility-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..b0c26a8c8d357968e1ab207960ab9cd2077c30be
--- /dev/null
+++ b/LayoutTests/gamepad/page-visibility-expected.txt
@@ -0,0 +1,18 @@
+Tests that gamepad events are not fired when page is hidden but kept as pending and fired when the page becomes visible again.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS Received a gamepadconnected event
+PASS event.gamepad.index is 0
+PASS document.visibilityState is "hidden"
+PASS gamepaddisconnected dispatched after visibility change
+PASS document.visibilityState is "visible"
+PASS event.gamepad.index is 0
+PASS gamepadconnected dispatched after page become visible
+PASS document.visibilityState is "visible"
+PASS event.gamepad.index is 1
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698