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

Unified Diff: LayoutTests/gamepad/gamepad-polling-access-expected.txt

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 | « LayoutTests/gamepad/gamepad-polling-access.html ('k') | Source/modules/gamepad/GamepadList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/gamepad/gamepad-polling-access-expected.txt
diff --git a/LayoutTests/gamepad/gamepad-polling-access-expected.txt b/LayoutTests/gamepad/gamepad-polling-access-expected.txt
index 15d54ce40ab1efb55871ea2ff48a8fb8ea77ffb4..9142de177201ab9fbf2024cde18e529d2ae8dcc5 100644
--- a/LayoutTests/gamepad/gamepad-polling-access-expected.txt
+++ b/LayoutTests/gamepad/gamepad-polling-access-expected.txt
@@ -1,15 +1,28 @@
-PASS navigator.getGamepads().length is 4
-PASS navigator.getGamepads().item(0) is null
-PASS navigator.getGamepads().item(1) is null
-PASS navigator.getGamepads().item(2) is null
-PASS navigator.getGamepads().item(3) is null
-PASS navigator.getGamepads()[0] is undefined.
-PASS navigator.getGamepads()[1] is undefined.
-PASS navigator.getGamepads()[2] is undefined.
-PASS navigator.getGamepads()[3] is undefined.
-PASS navigator.getGamepads()[0] is non-null.
-PASS navigator.getGamepads().item(0) is null
-PASS navigator.getGamepads()[0] is undefined.
+PASS navigator.getGamepads() is an instance of Array
+PASS navigator.getGamepads().length is 0
+PASS navigator.getGamepads().hasOwnProperty(0) is false
+PASS navigator.getGamepads().hasOwnProperty(1) is false
+PASS navigator.getGamepads().length is 1
+PASS navigator.getGamepads().hasOwnProperty(0) is true
+PASS navigator.getGamepads()[0] is an instance of Gamepad
+PASS navigator.getGamepads()[0].index is 0
+PASS navigator.getGamepads().hasOwnProperty(1) is false
+PASS navigator.getGamepads().length is 2
+PASS navigator.getGamepads().hasOwnProperty(0) is true
+PASS navigator.getGamepads()[0] is an instance of Gamepad
+PASS navigator.getGamepads()[0].index is 0
+PASS navigator.getGamepads().hasOwnProperty(1) is true
+PASS navigator.getGamepads()[1] is an instance of Gamepad
+PASS navigator.getGamepads()[1].index is 1
+PASS navigator.getGamepads().length is 2
+PASS navigator.getGamepads().hasOwnProperty(0) is true
+PASS navigator.getGamepads()[0] is null
+PASS navigator.getGamepads().hasOwnProperty(1) is true
+PASS navigator.getGamepads()[1] is an instance of Gamepad
+PASS navigator.getGamepads()[1].index is 1
+PASS navigator.getGamepads().length is 0
+PASS navigator.getGamepads().hasOwnProperty(0) is false
+PASS navigator.getGamepads().hasOwnProperty(1) is false
PASS navigator.getGamepads()[0].id is 'MockStick 3000'
PASS navigator.getGamepads()[0].buttons.length is 2
PASS navigator.getGamepads()[0].axes.length is 2
« no previous file with comments | « LayoutTests/gamepad/gamepad-polling-access.html ('k') | Source/modules/gamepad/GamepadList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698