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

Unified Diff: LayoutTests/gamepad/gamepad-api.html

Issue 808643005: Sync Navigator.getGamepads() with the spec Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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-api.html
diff --git a/LayoutTests/gamepad/gamepad-api.html b/LayoutTests/gamepad/gamepad-api.html
index 30a082d381ad97829aea12db104aa9820a1215a9..bae5f1727e16016b554d99fa1cb0565f504afc3f 100644
--- a/LayoutTests/gamepad/gamepad-api.html
+++ b/LayoutTests/gamepad/gamepad-api.html
@@ -15,10 +15,11 @@
shouldBeNull("webkitGamepads.item(0)");
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)
{
« no previous file with comments | « no previous file | LayoutTests/gamepad/gamepad-api-expected.txt » ('j') | Source/modules/gamepad/NavigatorGamepad.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698