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

Side by Side 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: cleanups 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 unified diff | Download patch
OLDNEW
(Empty)
1 Basic test for 'gamepadconnected' and 'gamepaddisconnected' events.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 Gamepad connected
7 PASS event.gamepad.id is "MockStick 3000"
8 PASS event.gamepad.buttons.length is 2
9 PASS event.gamepad.axes.length is 2
10 PASS event.gamepad.buttons[0].value is 1.0
11 PASS event.gamepad.buttons[0].pressed is true
12 PASS event.gamepad.buttons[1].value is 0.0
13 PASS event.gamepad.buttons[1].pressed is false
14 PASS event.gamepad.axes.length is 2
15 PASS event.gamepad.axes[0] is 0.5
16 PASS event.gamepad.axes[1] is -1.0
17 Gamepad disconnected
18 PASS event.gamepad.id is "MockStick 3000"
19 PASS event.gamepad.buttons.length is 2
20 PASS event.gamepad.axes.length is 2
21 PASS successfullyParsed is true
22
23 TEST COMPLETE
24
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698