Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Unified Diff: LayoutTests/gamepad/gamepad-polling-access.html

Issue 806993002: Removed deprecated navigator.webkitGetGamepads. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Missed one layout test expectations update Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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");
« no previous file with comments | « LayoutTests/gamepad/gamepad-api-expected.txt ('k') | LayoutTests/gamepad/gamepad-polling-access-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698