OLD | NEW |
| 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 webkitGamepads.length is 4 |
| 11 PASS webkitGamepads[0] is undefined. |
| 12 PASS Object.prototype.toString.call(webkitGamepads.item) is "[object Function]" |
| 13 PASS webkitGamepads.item(0) is null |
| 14 PASS gamepads.length is 4 |
| 15 PASS gamepads[0] is undefined. |
| 16 PASS Object.prototype.toString.call(gamepads.item) is "[object Function]" |
| 17 PASS gamepads.item(0) is null |
| 18 PASS gamepad is non-null. |
| 19 PASS gamepad.connected is true |
| 20 PASS gamepad.__proto__ is WebKitGamepad.prototype |
| 21 PASS Object.prototype.toString.call(gamepad.id) is "[object String]" |
| 22 PASS Object.prototype.toString.call(gamepad.connected) is "[object Boolean]" |
| 23 PASS Object.prototype.toString.call(gamepad.index) is "[object Number]" |
| 24 PASS Object.prototype.toString.call(gamepad.timestamp) is "[object Number]" |
| 25 PASS Object.prototype.toString.call(gamepad.axes) is "[object Array]" |
| 26 PASS Object.prototype.toString.call(gamepad.axes[0]) is "[object Number]" |
| 27 PASS Object.prototype.toString.call(gamepad.buttons) is "[object Array]" |
| 28 PASS Object.prototype.toString.call(gamepad.buttons[0]) is "[object Number]" |
| 29 PASS gamepad is non-null. |
| 30 PASS gamepad.connected is true |
| 31 PASS gamepad.__proto__ is Gamepad.prototype |
| 32 PASS Object.prototype.toString.call(gamepad.id) is "[object String]" |
| 33 PASS Object.prototype.toString.call(gamepad.connected) is "[object Boolean]" |
| 34 PASS Object.prototype.toString.call(gamepad.index) is "[object Number]" |
| 35 PASS Object.prototype.toString.call(gamepad.timestamp) is "[object Number]" |
| 36 PASS Object.prototype.toString.call(gamepad.axes) is "[object Array]" |
| 37 PASS Object.prototype.toString.call(gamepad.axes[0]) is "[object Number]" |
| 38 PASS Object.prototype.toString.call(gamepad.buttons) is "[object Array]" |
| 39 PASS Object.prototype.toString.call(gamepad.buttons[0].pressed) is "[object Bool
ean]" |
| 40 PASS Object.prototype.toString.call(gamepad.buttons[0].value) is "[object Number
]" |
| 41 PASS Object.prototype.toString.call(gamepad.mapping) is "[object String]" |
3 PASS successfullyParsed is true | 42 PASS successfullyParsed is true |
4 | 43 |
5 TEST COMPLETE | 44 TEST COMPLETE |
6 Make sure the main polling access point exists on navigator. | 45 |
OLD | NEW |