Index: LayoutTests/gamepad/gamepad-polling-access.html |
diff --git a/LayoutTests/gamepad/gamepad-polling-access.html b/LayoutTests/gamepad/gamepad-polling-access.html |
index 00e44716c4d7dece045199f90c208dfc01620578..9bc59a50000bf0ea0e608d7e1eaaa4d61e4238d7 100644 |
--- a/LayoutTests/gamepad/gamepad-polling-access.html |
+++ b/LayoutTests/gamepad/gamepad-polling-access.html |
@@ -9,16 +9,6 @@ |
gamepadController.disconnect(1); |
gamepadController.disconnect(2); |
gamepadController.disconnect(3); |
- shouldBe("navigator.webkitGetGamepads().length", "4"); |
- shouldBeNull("navigator.webkitGetGamepads().item(0)"); |
- shouldBeNull("navigator.webkitGetGamepads().item(1)"); |
- shouldBeNull("navigator.webkitGetGamepads().item(2)"); |
- shouldBeNull("navigator.webkitGetGamepads().item(3)"); |
- shouldBeUndefined("navigator.webkitGetGamepads()[0]"); |
- shouldBeUndefined("navigator.webkitGetGamepads()[1]"); |
- shouldBeUndefined("navigator.webkitGetGamepads()[2]"); |
- shouldBeUndefined("navigator.webkitGetGamepads()[3]"); |
- |
shouldBe("navigator.getGamepads().length", "4"); |
shouldBeNull("navigator.getGamepads().item(0)"); |
shouldBeNull("navigator.getGamepads().item(1)"); |
@@ -31,11 +21,8 @@ |
// connect and disconnect |
gamepadController.connect(0); |
- shouldBeNonNull("navigator.webkitGetGamepads()[0]"); |
shouldBeNonNull("navigator.getGamepads()[0]"); |
gamepadController.disconnect(0); |
- shouldBeNull("navigator.webkitGetGamepads().item(0)"); |
- shouldBeUndefined("navigator.webkitGetGamepads()[0]"); |
shouldBeNull("navigator.getGamepads().item(0)"); |
shouldBeUndefined("navigator.getGamepads()[0]"); |
@@ -48,15 +35,6 @@ |
gamepadController.setButtonData(0, 1, 0); |
gamepadController.setAxisData(0, 0, .5); |
gamepadController.setAxisData(0, 1, -1.0); |
- shouldBe("navigator.webkitGetGamepads()[0].id", "'MockStick 3000'"); |
- shouldBe("navigator.webkitGetGamepads()[0].buttons.length", "2"); |
- shouldBe("navigator.webkitGetGamepads()[0].axes.length", "2"); |
- shouldBe("navigator.webkitGetGamepads()[0].buttons[0]", "1.0"); |
- shouldBe("navigator.webkitGetGamepads()[0].buttons[1]", "0.0"); |
- shouldBe("navigator.webkitGetGamepads()[0].axes.length", "2"); |
- shouldBe("navigator.webkitGetGamepads()[0].axes[0]", "0.5"); |
- shouldBe("navigator.webkitGetGamepads()[0].axes[1]", "-1.0"); |
- |
shouldBe("navigator.getGamepads()[0].id", "'MockStick 3000'"); |
shouldBe("navigator.getGamepads()[0].buttons.length", "2"); |
shouldBe("navigator.getGamepads()[0].axes.length", "2"); |