Bug 1714703 - Promisify GamepadServiceTest r=tjr,peterv
commitee3a5b1832c9e26f47ffea50bc7b4f8f320300fd
authorMarcos Cáceres <marcos@marcosc.com>
Tue, 22 Jun 2021 08:45:59 +0000 (22 08:45 +0000)
committerMarcos Cáceres <marcos@marcosc.com>
Tue, 22 Jun 2021 08:45:59 +0000 (22 08:45 +0000)
treec4c48fc07e4ff6503af892f3560e885bfb91668e
parent66ff0385210e4cbff3f8f9726b972c22a1cdceac
Bug 1714703 - Promisify GamepadServiceTest r=tjr,peterv

make GamepadServiceTest's methods return promises, so to avoid testing with flaky setTimeout().

Differential Revision: https://phabricator.services.mozilla.com/D117258
13 files changed:
browser/components/resistfingerprinting/test/mochitest/test_hide_gamepad_info_iframe.html
dom/gamepad/GamepadServiceTest.cpp
dom/gamepad/GamepadServiceTest.h
dom/gamepad/ipc/GamepadTestChannelParent.cpp
dom/tests/mochitest/gamepad/test_check_timestamp_iframe.html
dom/tests/mochitest/gamepad/test_gamepad_connect_events_iframe.html
dom/tests/mochitest/gamepad/test_gamepad_extensions_iframe.html
dom/tests/mochitest/gamepad/test_gamepad_frame_state_sync_iframe.html
dom/tests/mochitest/gamepad/test_gamepad_hidden_frame_iframe.html
dom/tests/mochitest/gamepad/test_gamepad_iframe.html
dom/tests/mochitest/gamepad/test_gamepad_multitouch_crossorigin_iframe.html
dom/tests/mochitest/gamepad/test_navigator_gamepads_iframe.html
dom/webidl/GamepadServiceTest.webidl