Skip to content

Commit

Permalink
Add togglescreenshare and voiceactivity test coverage (web-platfo…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad-S792 authored Jan 31, 2025
1 parent e578b62 commit a8a3649
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mediasession/setactionhandler.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<title>Test that setting MediaSession event handler should notify the service</title>
<link rel="help" href="https://w3c.github.io/mediasession/#media-session-action" />
<script src=/resources/testharness.js></script>
<script src="/resources/testharnessreport.js"></script>
<script>
Expand All @@ -16,10 +17,12 @@
"skipad",
"togglemicrophone",
"togglecamera",
"togglescreenshare",
"hangup",
"previousslide",
"nextslide",
"enterpictureinpicture",
"voiceactivity"
].forEach((action) =>
test((t) => {
window.navigator.mediaSession.setActionHandler(action, null);
Expand Down

0 comments on commit a8a3649

Please sign in to comment.