Skip to content

Interop 2025 investigation effort - Gamepad API testing #219

@nondebug

Description

@nondebug

See also: #175

As part of Interop 2025, we are running an Investigation Effort to improve testability of the Gamepad API.

https://github.com/web-platform-tests/interop-gamepad

Gamepad API currently lacks WPT test coverage for most of the API surface. Automated tests only cover feature policy, not-fully-active state, and IDL.

https://github.com/web-platform-tests/wpt/blob/master/gamepad/feature-policy-gamepad.html
https://github.com/web-platform-tests/wpt/blob/master/gamepad/gamepad-default-feature-policy.https.sub.html
https://github.com/web-platform-tests/wpt/blob/master/gamepad/gamepad-supported-by-feature-policy.html
https://github.com/web-platform-tests/wpt/blob/master/gamepad/not-fully-active.html
https://github.com/web-platform-tests/wpt/blob/master/gamepad/idlharness.window.js

There are a handful of manual tests that require the tester to connect a gamepad:

https://github.com/web-platform-tests/wpt/blob/master/gamepad/events-manual.html
https://github.com/web-platform-tests/wpt/blob/master/gamepad/gamepad-dual-rumble-effect-manual.https.html
https://github.com/web-platform-tests/wpt/blob/master/gamepad/gamepad-trigger-rumble-effect-manual.https.html
https://github.com/web-platform-tests/wpt/blob/master/gamepad/getgamepads-polling-manual.html
https://github.com/web-platform-tests/wpt/blob/master/gamepad/idlharness-manual.html
https://github.com/web-platform-tests/wpt/blob/master/gamepad/timestamp-manual.html

The goal of this effort is to expand test coverage to include automated tests that exercise parts of the API that rely on simulating device behaviors (connection, disconnection, button/axis/touchpad state change, vibration).

Metadata

Metadata

Assignees

Labels

TPAC2025Topics for discussion at TPAC 2025

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions