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

Side by Side Diff: LayoutTests/gamepad/gamepad-events-basic-expected.txt

Issue 280393004: Update Gamepad.axes / GamepadButton.value to match the latest specification (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add back #ifdefs Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/gamepad/gamepad-events-basic.html ('k') | Source/modules/gamepad/Gamepad.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Basic test for 'gamepadconnected' and 'gamepaddisconnected' events. 1 Basic test for 'gamepadconnected' and 'gamepaddisconnected' events.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 Gamepad connected 6 Gamepad connected
7 PASS event.__proto__ is GamepadEvent.prototype 7 PASS event.__proto__ is GamepadEvent.prototype
8 PASS event.__proto__.__proto__ is Event.prototype 8 PASS event.__proto__.__proto__ is Event.prototype
9 PASS event.gamepad.id is "MockStick 3000" 9 PASS event.gamepad.id is "MockStick 3000"
10 PASS event.gamepad.buttons.length is 2 10 PASS event.gamepad.buttons.length is 3
11 PASS event.gamepad.axes.length is 2 11 PASS event.gamepad.axes.length is 3
12 PASS event.gamepad.buttons[0].value is 1.0 12 PASS event.gamepad.buttons[0].value is 1.0
13 PASS event.gamepad.buttons[0].pressed is true 13 PASS event.gamepad.buttons[0].pressed is true
14 PASS event.gamepad.buttons[1].value is 0.0 14 PASS event.gamepad.buttons[1].value is 0.0
15 PASS event.gamepad.buttons[1].pressed is false 15 PASS event.gamepad.buttons[1].pressed is false
16 PASS event.gamepad.axes.length is 2 16 PASS event.gamepad.axes.length is 3
17 PASS event.gamepad.buttons[2].value is 0.333333
18 PASS event.gamepad.buttons[2].pressed is true
17 PASS event.gamepad.axes[0] is 0.5 19 PASS event.gamepad.axes[0] is 0.5
18 PASS event.gamepad.axes[1] is -1.0 20 PASS event.gamepad.axes[1] is -1.0
21 PASS event.gamepad.axes[2] is 0.333333
19 Gamepad disconnected 22 Gamepad disconnected
20 PASS event.__proto__ is GamepadEvent.prototype 23 PASS event.__proto__ is GamepadEvent.prototype
21 PASS event.__proto__.__proto__ is Event.prototype 24 PASS event.__proto__.__proto__ is Event.prototype
22 PASS event.gamepad.id is "MockStick 3000" 25 PASS event.gamepad.id is "MockStick 3000"
23 PASS event.gamepad.buttons.length is 2 26 PASS event.gamepad.buttons.length is 3
24 PASS event.gamepad.axes.length is 2 27 PASS event.gamepad.axes.length is 3
25 PASS successfullyParsed is true 28 PASS successfullyParsed is true
26 29
27 TEST COMPLETE 30 TEST COMPLETE
28 31
OLDNEW
« no previous file with comments | « LayoutTests/gamepad/gamepad-events-basic.html ('k') | Source/modules/gamepad/Gamepad.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698