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

Unified Diff: LayoutTests/gamepad/gamepad-api-expected.txt

Issue 212813008: Gamepad API: tests for gamepad events (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: cleanups Created 6 years, 9 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
Index: LayoutTests/gamepad/gamepad-api-expected.txt
diff --git a/LayoutTests/gamepad/gamepad-api-expected.txt b/LayoutTests/gamepad/gamepad-api-expected.txt
index 6de3573b6d073e83f55b5db081b06f3c6c13dbe5..b17fcd14ca693de6298149f5b42ee0b022f73113 100644
--- a/LayoutTests/gamepad/gamepad-api-expected.txt
+++ b/LayoutTests/gamepad/gamepad-api-expected.txt
@@ -1,6 +1,50 @@
+CONSOLE WARNING: 'navigator.webkitGetGamepads' is deprecated. Please use 'navigator.getGamepads' instead.
+Validates the exposed Gamepad API.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
PASS navigator.webkitGetGamepads is defined.
PASS navigator.getGamepads is defined.
+PASS GamepadEvent is defined.
+PASS Object.prototype.toString.call(webkitGamepads) is "[object WebKitGamepadList]"
+PASS webkitGamepads.length is 4
+PASS webkitGamepads[0] is undefined.
+PASS Object.prototype.toString.call(webkitGamepads.item) is "[object Function]"
+PASS webkitGamepads.item(0) is null
+PASS Object.prototype.toString.call(gamepads) is "[object GamepadList]"
+PASS gamepads.length is 4
+PASS gamepads[0] is undefined.
+PASS Object.prototype.toString.call(gamepads.item) is "[object Function]"
+PASS gamepads.item(0) is null
+PASS window.addEventListener('gamepadconnected', function(){}, false) did not throw exception.
+PASS window.addEventListener('gamepaddisconnected', function(){}, false) did not throw exception.
+PASS gamepad is non-null.
+PASS gamepad.connected is true
+PASS Object.prototype.toString.call(gamepad) is "[object WebKitGamepad]"
+PASS Object.prototype.toString.call(gamepad.id) is "[object String]"
+PASS Object.prototype.toString.call(gamepad.connected) is "[object Boolean]"
+PASS Object.prototype.toString.call(gamepad.index) is "[object Number]"
+PASS Object.prototype.toString.call(gamepad.timestamp) is "[object Number]"
+PASS Object.prototype.toString.call(gamepad.axes) is "[object Array]"
+PASS Object.prototype.toString.call(gamepad.axes[0]) is "[object Number]"
+PASS Object.prototype.toString.call(gamepad.buttons) is "[object Array]"
+PASS Object.prototype.toString.call(gamepad.buttons[0]) is "[object Number]"
+PASS gamepad is non-null.
+PASS gamepad.connected is true
+PASS Object.prototype.toString.call(gamepad) is "[object Gamepad]"
+PASS Object.prototype.toString.call(gamepad.id) is "[object String]"
+PASS Object.prototype.toString.call(gamepad.connected) is "[object Boolean]"
+PASS Object.prototype.toString.call(gamepad.index) is "[object Number]"
+PASS Object.prototype.toString.call(gamepad.timestamp) is "[object Number]"
+PASS Object.prototype.toString.call(gamepad.axes) is "[object Array]"
+PASS Object.prototype.toString.call(gamepad.axes[0]) is "[object Number]"
+PASS Object.prototype.toString.call(gamepad.buttons) is "[object Array]"
+PASS Object.prototype.toString.call(gamepad.buttons[0]) is "[object GamepadButton]"
+PASS Object.prototype.toString.call(gamepad.buttons[0].pressed) is "[object Boolean]"
+PASS Object.prototype.toString.call(gamepad.buttons[0].value) is "[object Number]"
+PASS Object.prototype.toString.call(gamepad.mapping) is "[object String]"
PASS successfullyParsed is true
TEST COMPLETE
-Make sure the main polling access point exists on navigator.
+

Powered by Google App Engine
This is Rietveld 408576698