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

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

Issue 346273008: Gamepad: make gamepad events play well with page visibility (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@gamepad-vis
Patch Set: PersistentHeapDequeWillBeHeapDeque Created 6 years, 5 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
« no previous file with comments | « LayoutTests/gamepad/page-visibility.html ('k') | Source/modules/gamepad/NavigatorGamepad.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..6eb4e2a69ff4cacadf6396262ba88b9386f67ffa
--- /dev/null
+++ b/LayoutTests/gamepad/page-visibility-expected.txt
@@ -0,0 +1,30 @@
+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 eventCounter < expectations.length is true
+PASS event.gamepad.index is 0
+PASS expected.connected is false
+PASS event.gamepad.connected is false
+PASS eventCounter < expectations.length is true
+PASS event.gamepad.index is 1
+PASS expected.connected is false
+PASS event.gamepad.connected is false
+PASS event.gamepad.id is "old"
+PASS eventCounter < expectations.length is true
+PASS event.gamepad.index is 1
+PASS expected.connected is true
+PASS event.gamepad.connected is true
+PASS event.gamepad.id is "new"
+PASS eventCounter < expectations.length is true
+PASS event.gamepad.index is 2
+PASS expected.connected is true
+PASS event.gamepad.connected is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/gamepad/page-visibility.html ('k') | Source/modules/gamepad/NavigatorGamepad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698