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

Unified Diff: LayoutTests/gamepad/gamepad-events-basic-expected.txt

Issue 212813008: Gamepad API: tests for gamepad events (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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/gamepad-events-basic-expected.txt
diff --git a/LayoutTests/gamepad/gamepad-events-basic-expected.txt b/LayoutTests/gamepad/gamepad-events-basic-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..7b07c85c8577ed6a4be1bc6989ea5826ae00d98c
--- /dev/null
+++ b/LayoutTests/gamepad/gamepad-events-basic-expected.txt
@@ -0,0 +1,19 @@
+Gamepad connected
+PASS event.gamepad.id is 'MockStick 3000'
+PASS event.gamepad.buttons.length is 2
+PASS event.gamepad.axes.length is 2
+PASS event.gamepad.buttons[0].value is 1.0
+PASS event.gamepad.buttons[0].pressed is true
+PASS event.gamepad.buttons[1].value is 0.0
+PASS event.gamepad.buttons[1].pressed is false
+PASS event.gamepad.axes.length is 2
+PASS event.gamepad.axes[0] is 0.5
+PASS event.gamepad.axes[1] is -1.0
+Gamepad disconnected
+PASS event.gamepad.id is 'MockStick 3000'
+PASS event.gamepad.buttons.length is 2
+PASS event.gamepad.axes.length is 2
+PASS successfullyParsed is true
+
+TEST COMPLETE
+Basic test for 'gamepadconnected' and 'gamepaddisconnected' events.

Powered by Google App Engine
This is Rietveld 408576698