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

Side by Side Diff: LayoutTests/gamepad/gamepad-api-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 unified diff | Download patch
OLDNEW
1 CONSOLE WARNING: 'navigator.webkitGetGamepads' is deprecated. Please use 'naviga tor.getGamepads' instead.
2 Validates the exposed Gamepad API.
3
4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
5
6
1 PASS navigator.webkitGetGamepads is defined. 7 PASS navigator.webkitGetGamepads is defined.
2 PASS navigator.getGamepads is defined. 8 PASS navigator.getGamepads is defined.
9 PASS GamepadEvent is defined.
10 PASS Object.prototype.toString.call(webkitGamepads) is "[object WebKitGamepadLis t]"
11 PASS webkitGamepads.length is 4
12 PASS webkitGamepads[0] is undefined
13 PASS Object.prototype.toString.call(webkitGamepads.item) is "[object Function]"
14 PASS webkitGamepads.item(0) is null
15 PASS Object.prototype.toString.call(gamepads) is "[object GamepadList]"
16 PASS gamepads.length is 4
17 PASS gamepads[0] is undefined
18 PASS Object.prototype.toString.call(gamepads.item) is "[object Function]"
19 PASS webkitGamepads.item(0) is null
20 PASS window.addEventListener('gamepadconnected', function(){}, false) did not th row exception.
21 PASS window.addEventListener('gamepaddisconnected', function(){}, false) did not throw exception.
22 PASS gamepad is non-null.
23 PASS gamepad.connected is true
24 PASS Object.prototype.toString.call(gamepad) is "[object WebKitGamepad]"
25 PASS Object.prototype.toString.call(gamepad.id) is "[object String]"
26 PASS Object.prototype.toString.call(gamepad.connected) is "[object Boolean]"
27 PASS Object.prototype.toString.call(gamepad.index) is "[object Number]"
28 PASS Object.prototype.toString.call(gamepad.timestamp) is "[object Number]"
29 PASS Object.prototype.toString.call(gamepad.axes) is "[object Array]"
30 PASS Object.prototype.toString.call(gamepad.axes[0]) is "[object Number]"
31 PASS Object.prototype.toString.call(gamepad.buttons) is "[object Array]"
32 PASS Object.prototype.toString.call(gamepad.buttons[0]) is "[object Number]"
33 PASS gamepad is non-null.
34 PASS gamepad.connected is true
35 PASS Object.prototype.toString.call(gamepad) is "[object Gamepad]"
36 PASS Object.prototype.toString.call(gamepad.id) is "[object String]"
37 PASS Object.prototype.toString.call(gamepad.connected) is "[object Boolean]"
38 PASS Object.prototype.toString.call(gamepad.index) is "[object Number]"
39 PASS Object.prototype.toString.call(gamepad.timestamp) is "[object Number]"
40 PASS Object.prototype.toString.call(gamepad.axes) is "[object Array]"
41 PASS Object.prototype.toString.call(gamepad.axes[0]) is "[object Number]"
42 PASS Object.prototype.toString.call(gamepad.buttons) is "[object Array]"
43 PASS Object.prototype.toString.call(gamepad.buttons[0]) is "[object GamepadButto n]"
44 PASS Object.prototype.toString.call(gamepad.buttons[0].pressed) is "[object Bool ean]"
45 PASS Object.prototype.toString.call(gamepad.buttons[0].value) is "[object Number ]"
46 PASS Object.prototype.toString.call(gamepad.mapping) is "[object String]"
3 PASS successfullyParsed is true 47 PASS successfullyParsed is true
4 48
5 TEST COMPLETE 49 TEST COMPLETE
6 Make sure the main polling access point exists on navigator. 50
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698