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

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: rebase Created 5 years, 10 months 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
« no previous file with comments | « no previous file | LayoutTests/gamepad/gamepad-api-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
{
« no previous file with comments | « no previous file | LayoutTests/gamepad/gamepad-api-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698