haikuwebkit/LayoutTests/media/media-session
Jean-Yves Avenard 852e333a23 Implement API to ensure MediaRemote key mapping is correct
https://bugs.webkit.org/show_bug.cgi?id=229070
<rdar://problem/81894480>

Reviewed by Eric Carlson.

Source/WebCore:

This change adds Internals entries to test bug 229068.
While we do not mock the MediaRemote service, we still go one step further in
ensuring that the mappings between MediaSession action handlers and
PlatformMediaSession are correct.

Test: media/media-session/actionHandlerInternalMappings.html

* platform/NowPlayingManager.cpp:
(WebCore::NowPlayingManager::supportedCommands const):
* platform/NowPlayingManager.h:
* platform/audio/PlatformMediaSession.h:
* platform/audio/PlatformMediaSessionManager.h:
(WebCore::PlatformMediaSessionManager::supportedCommands const):
* platform/audio/cocoa/MediaSessionManagerCocoa.h:
* platform/audio/cocoa/MediaSessionManagerCocoa.mm:
(WebCore::MediaSessionManagerCocoa::supportedCommands const):
* testing/Internals.cpp:
(WebCore::Internals::platformSupportedCommands const):
* testing/Internals.h:
* testing/Internals.idl:

LayoutTests:

* media/media-session/actionHandlerInternalMappings-expected.txt: Added.
* media/media-session/actionHandlerInternalMappings.html: Added.


Canonical link: https://commits.webkit.org/240588@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@281134 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-08-17 13:09:28 +00:00
..
actionHandlerInternalMappings-expected.txt Implement API to ensure MediaRemote key mapping is correct 2021-08-17 13:09:28 +00:00
actionHandlerInternalMappings.html Implement API to ensure MediaRemote key mapping is correct 2021-08-17 13:09:28 +00:00
callActionHandler-expected.txt Add MediaSession.callActionHandler 2021-05-28 20:08:08 +00:00
callActionHandler.html Add MediaSession.callActionHandler 2021-05-28 20:08:08 +00:00
default-actionHandlers-expected.txt Media Session action should default to the MediaElement's default when no MediaSession handler are set 2021-04-10 00:45:37 +00:00
default-actionHandlers.html Media Session action should default to the MediaElement's default when no MediaSession handler are set 2021-04-10 00:45:37 +00:00
mock-actionHandlers-expected.txt
mock-actionHandlers.html
mock-coordinator-expected.txt LayoutTests/imported/w3c: 2021-06-02 01:20:38 +00:00
mock-coordinator.html LayoutTests/imported/w3c: 2021-06-02 01:20:38 +00:00
mock-currentPosition-expected.txt
mock-currentPosition.html
play-after-seek-expected.txt Video pauses after scrubbing with Touch Bar 2021-07-27 00:25:42 +00:00
play-after-seek.html Video pauses after scrubbing with Touch Bar 2021-07-27 00:25:42 +00:00
user-gesture-action-handlers-expected.txt MediaSession action handlers aren't treated as having a user gesture 2021-05-17 18:12:36 +00:00
user-gesture-action-handlers.html MediaSession action handlers aren't treated as having a user gesture 2021-05-17 18:12:36 +00:00