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 |
+ |