| Index: LayoutTests/gamepad/gamepad-api.html
|
| diff --git a/LayoutTests/gamepad/gamepad-api.html b/LayoutTests/gamepad/gamepad-api.html
|
| index 5eb03436ecf700499854495db67ca2034cc29b42..2fac9e307961eff4d9ab6089c9926239975ba09e 100644
|
| --- a/LayoutTests/gamepad/gamepad-api.html
|
| +++ b/LayoutTests/gamepad/gamepad-api.html
|
| @@ -8,10 +8,11 @@
|
| shouldBeDefined("GamepadEvent");
|
|
|
| gamepads = navigator.getGamepads();
|
| - shouldBe("gamepads.length", "4");
|
| - shouldBeUndefined("gamepads[0]");
|
| - shouldBe("gamepads.item.__proto__", "Function.prototype")
|
| - shouldBeNull("gamepads.item(0)");
|
| + shouldBeType("gamepads", "Array");
|
| + shouldBe("gamepads.length", "0");
|
| +
|
| + // A new Array object must be returned every time.
|
| + shouldBeFalse("navigator.getGamepads() === navigator.getGamepads()");
|
|
|
| if (window.gamepadController)
|
| {
|
|
|