Skip to content

Commit

Permalink
PiP 1.5: Add external/wpt tests for video conferencing actions
Browse files Browse the repository at this point in the history
This CL adds wpt tests for the updated Blink APIs added for video
conferencing actions.

Bug: 1196466
Change-Id: I51f41fe19fbf5cf81ffb866737a46ccc0d9ae0aa
  • Loading branch information
steimelchrome authored and chromium-wpt-export-bot committed Jun 1, 2021
1 parent 305d7e1 commit 225ce3b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mediasession/setactionhandler.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
window.navigator.mediaSession.setActionHandler("stop", null);
window.navigator.mediaSession.setActionHandler("seekto", null);
window.navigator.mediaSession.setActionHandler("skipad", null);
window.navigator.mediaSession.setActionHandler("togglemicrophone", null);
window.navigator.mediaSession.setActionHandler("togglecamera", null);
window.navigator.mediaSession.setActionHandler("hangup", null);
}, "Test that setActionHandler() can be executed for supported actions");

test(function(t) {
Expand Down
12 changes: 12 additions & 0 deletions mediasession/setcameraactive.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<title>MediaSession.setCameraActive</title>
<script src=/resources/testharness.js></script>
<script src="/resources/testharnessreport.js"></script>
<script>

test(function(t) {
window.navigator.mediaSession.setCameraActive(true);
window.navigator.mediaSession.setCameraActive(false);
}, "Test that setCameraActive() can be executed for boolean values");

</script>
12 changes: 12 additions & 0 deletions mediasession/setmicrophoneactive.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<title>MediaSession.setMicrophoneActive</title>
<script src=/resources/testharness.js></script>
<script src="/resources/testharnessreport.js"></script>
<script>

test(function(t) {
window.navigator.mediaSession.setMicrophoneActive(true);
window.navigator.mediaSession.setMicrophoneActive(false);
}, "Test that setMicrophoneActive() can be executed for boolean values");

</script>

0 comments on commit 225ce3b

Please sign in to comment.