Index: LayoutTests/gamepad/gamepad-polling-access-expected.txt |
diff --git a/LayoutTests/gamepad/gamepad-polling-access-expected.txt b/LayoutTests/gamepad/gamepad-polling-access-expected.txt |
index 15d54ce40ab1efb55871ea2ff48a8fb8ea77ffb4..9142de177201ab9fbf2024cde18e529d2ae8dcc5 100644 |
--- a/LayoutTests/gamepad/gamepad-polling-access-expected.txt |
+++ b/LayoutTests/gamepad/gamepad-polling-access-expected.txt |
@@ -1,15 +1,28 @@ |
-PASS navigator.getGamepads().length is 4 |
-PASS navigator.getGamepads().item(0) is null |
-PASS navigator.getGamepads().item(1) is null |
-PASS navigator.getGamepads().item(2) is null |
-PASS navigator.getGamepads().item(3) is null |
-PASS navigator.getGamepads()[0] is undefined. |
-PASS navigator.getGamepads()[1] is undefined. |
-PASS navigator.getGamepads()[2] is undefined. |
-PASS navigator.getGamepads()[3] is undefined. |
-PASS navigator.getGamepads()[0] is non-null. |
-PASS navigator.getGamepads().item(0) is null |
-PASS navigator.getGamepads()[0] is undefined. |
+PASS navigator.getGamepads() is an instance of Array |
+PASS navigator.getGamepads().length is 0 |
+PASS navigator.getGamepads().hasOwnProperty(0) is false |
+PASS navigator.getGamepads().hasOwnProperty(1) is false |
+PASS navigator.getGamepads().length is 1 |
+PASS navigator.getGamepads().hasOwnProperty(0) is true |
+PASS navigator.getGamepads()[0] is an instance of Gamepad |
+PASS navigator.getGamepads()[0].index is 0 |
+PASS navigator.getGamepads().hasOwnProperty(1) is false |
+PASS navigator.getGamepads().length is 2 |
+PASS navigator.getGamepads().hasOwnProperty(0) is true |
+PASS navigator.getGamepads()[0] is an instance of Gamepad |
+PASS navigator.getGamepads()[0].index is 0 |
+PASS navigator.getGamepads().hasOwnProperty(1) is true |
+PASS navigator.getGamepads()[1] is an instance of Gamepad |
+PASS navigator.getGamepads()[1].index is 1 |
+PASS navigator.getGamepads().length is 2 |
+PASS navigator.getGamepads().hasOwnProperty(0) is true |
+PASS navigator.getGamepads()[0] is null |
+PASS navigator.getGamepads().hasOwnProperty(1) is true |
+PASS navigator.getGamepads()[1] is an instance of Gamepad |
+PASS navigator.getGamepads()[1].index is 1 |
+PASS navigator.getGamepads().length is 0 |
+PASS navigator.getGamepads().hasOwnProperty(0) is false |
+PASS navigator.getGamepads().hasOwnProperty(1) is false |
PASS navigator.getGamepads()[0].id is 'MockStick 3000' |
PASS navigator.getGamepads()[0].buttons.length is 2 |
PASS navigator.getGamepads()[0].axes.length is 2 |