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

Issue 212813008: Gamepad API: tests for gamepad events (Closed)

Created:
6 years, 9 months ago by kbalazs
Modified:
6 years, 8 months ago
CC:
blink-reviews, sof
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Gamepad API: tests for gamepad events This CL adds a basic test for 'gamepadconnected' and 'gamepaddisconnected' events and extends the api test to check the differences between the prefixed and non-prefixed api's. BUG=344556 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170461

Patch Set 1 #

Total comments: 17

Patch Set 2 : cleanups #

Total comments: 20

Patch Set 3 : incorp comments #

Total comments: 6

Patch Set 4 : check prototypes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -2 lines) Patch
M LayoutTests/gamepad/gamepad-api.html View 1 2 3 1 chunk +59 lines, -1 line 0 comments Download
M LayoutTests/gamepad/gamepad-api-expected.txt View 1 2 3 1 chunk +40 lines, -1 line 0 comments Download
A LayoutTests/gamepad/gamepad-events-basic.html View 1 2 1 chunk +56 lines, -0 lines 0 comments Download
A LayoutTests/gamepad/gamepad-events-basic-expected.txt View 1 2 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
kbalazs
6 years, 9 months ago (2014-03-26 20:44:08 UTC) #1
sof
Just some test style issues, hopefully useful. https://codereview.chromium.org/212813008/diff/1/LayoutTests/gamepad/gamepad-api.html File LayoutTests/gamepad/gamepad-api.html (right): https://codereview.chromium.org/212813008/diff/1/LayoutTests/gamepad/gamepad-api.html#newcode12 LayoutTests/gamepad/gamepad-api.html:12: shouldBeEqualToString("Object.prototype.toString.call(webkitGamepads)", "[object ...
6 years, 9 months ago (2014-03-26 21:43:46 UTC) #2
kbalazs
On 2014/03/26 21:43:46, sof wrote: > Just some test style issues, hopefully useful. > > ...
6 years, 9 months ago (2014-03-26 23:03:06 UTC) #3
kbalazs
On 2014/03/26 23:03:06, kbalazs wrote: > On 2014/03/26 21:43:46, sof wrote: > > Just some ...
6 years, 9 months ago (2014-03-26 23:24:53 UTC) #4
kbalazs
https://codereview.chromium.org/212813008/diff/1/LayoutTests/gamepad/gamepad-api.html File LayoutTests/gamepad/gamepad-api.html (right): https://codereview.chromium.org/212813008/diff/1/LayoutTests/gamepad/gamepad-api.html#newcode16 LayoutTests/gamepad/gamepad-api.html:16: shouldBe("webkitGamepads.item(0)", "null"); On 2014/03/26 21:43:46, sof wrote: > shouldBeNull() ...
6 years, 9 months ago (2014-03-26 23:27:13 UTC) #5
Inactive
https://codereview.chromium.org/212813008/diff/10001/LayoutTests/gamepad/gamepad-api.html File LayoutTests/gamepad/gamepad-api.html (right): https://codereview.chromium.org/212813008/diff/10001/LayoutTests/gamepad/gamepad-api.html#newcode27 LayoutTests/gamepad/gamepad-api.html:27: shouldNotThrow("window.addEventListener('gamepadconnected', function(){}, false)"); I don't believe addEventListener can ever ...
6 years, 9 months ago (2014-03-27 13:27:23 UTC) #6
kbalazs
https://codereview.chromium.org/212813008/diff/10001/LayoutTests/gamepad/gamepad-api.html File LayoutTests/gamepad/gamepad-api.html (right): https://codereview.chromium.org/212813008/diff/10001/LayoutTests/gamepad/gamepad-api.html#newcode27 LayoutTests/gamepad/gamepad-api.html:27: shouldNotThrow("window.addEventListener('gamepadconnected', function(){}, false)"); On 2014/03/27 13:27:24, Chris Dumez wrote: ...
6 years, 9 months ago (2014-03-28 23:24:12 UTC) #7
Inactive
https://codereview.chromium.org/212813008/diff/30001/LayoutTests/gamepad/gamepad-api.html File LayoutTests/gamepad/gamepad-api.html (right): https://codereview.chromium.org/212813008/diff/30001/LayoutTests/gamepad/gamepad-api.html#newcode14 LayoutTests/gamepad/gamepad-api.html:14: shouldBeEqualToString("Object.prototype.toString.call(webkitGamepads.item)", "[object Function]") shouldBe("webkitGamepads.item.__proto__", "Function.prototype"); https://codereview.chromium.org/212813008/diff/30001/LayoutTests/gamepad/gamepad-api.html#newcode20 LayoutTests/gamepad/gamepad-api.html:20: shouldBeEqualToString("Object.prototype.toString.call(gamepads.item)", "[object ...
6 years, 9 months ago (2014-03-29 00:26:35 UTC) #8
kbalazs
https://codereview.chromium.org/212813008/diff/30001/LayoutTests/gamepad/gamepad-api.html File LayoutTests/gamepad/gamepad-api.html (right): https://codereview.chromium.org/212813008/diff/30001/LayoutTests/gamepad/gamepad-api.html#newcode14 LayoutTests/gamepad/gamepad-api.html:14: shouldBeEqualToString("Object.prototype.toString.call(webkitGamepads.item)", "[object Function]") On 2014/03/29 00:26:35, Chris Dumez wrote: ...
6 years, 8 months ago (2014-03-31 01:49:08 UTC) #9
Inactive
lgtm
6 years, 8 months ago (2014-03-31 13:25:50 UTC) #10
kbalazs
The CQ bit was checked by b.kelemen@samsung.com
6 years, 8 months ago (2014-03-31 15:33:08 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/b.kelemen@samsung.com/212813008/50001
6 years, 8 months ago (2014-03-31 15:33:14 UTC) #12
commit-bot: I haz the power
6 years, 8 months ago (2014-03-31 16:39:56 UTC) #13
Message was sent while issue was closed.
Change committed as 170461

Powered by Google App Engine
This is Rietveld 408576698