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

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: check prototypes 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
« no previous file with comments | « LayoutTests/gamepad/gamepad-events-basic.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..238c69e261031fe6de9ecf3479f021b752179f48
--- /dev/null
+++ b/LayoutTests/gamepad/gamepad-events-basic-expected.txt
@@ -0,0 +1,28 @@
+Basic test for 'gamepadconnected' and 'gamepaddisconnected' events.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Gamepad connected
+PASS event.__proto__ is GamepadEvent.prototype
+PASS event.__proto__.__proto__ is Event.prototype
+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.__proto__ is GamepadEvent.prototype
+PASS event.__proto__.__proto__ is Event.prototype
+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
+
« no previous file with comments | « LayoutTests/gamepad/gamepad-events-basic.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698