From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:22:09 +0200 Subject: Adding upstream version 110.0.1. Signed-off-by: Daniel Baumann --- testing/web-platform/tests/audio-output/META.yml | 4 + .../enumerateDevices-permissions-policy.https.html | 32 +++++ ...merateDevices-with-selectAudioOutput.https.html | 48 ++++++++ .../tests/audio-output/idlharness.https.window.js | 20 ++++ .../removeTrack-after-setSinkId.https.html | 27 +++++ .../tests/audio-output/secure-context.html | 23 ++++ ...ctAudioOutput-permissions-policy.https.sub.html | 48 ++++++++ ...lectAudioOutput-sans-user-activation.https.html | 18 +++ .../tests/audio-output/setSinkId-manual.https.html | 132 +++++++++++++++++++++ .../setSinkId-permissions-policy.https.sub.html | 32 +++++ .../setSinkId-with-selectAudioOutput.https.html | 54 +++++++++ .../tests/audio-output/setSinkId.https.html | 62 ++++++++++ 12 files changed, 500 insertions(+) create mode 100644 testing/web-platform/tests/audio-output/META.yml create mode 100644 testing/web-platform/tests/audio-output/enumerateDevices-permissions-policy.https.html create mode 100644 testing/web-platform/tests/audio-output/enumerateDevices-with-selectAudioOutput.https.html create mode 100644 testing/web-platform/tests/audio-output/idlharness.https.window.js create mode 100644 testing/web-platform/tests/audio-output/removeTrack-after-setSinkId.https.html create mode 100644 testing/web-platform/tests/audio-output/secure-context.html create mode 100644 testing/web-platform/tests/audio-output/selectAudioOutput-permissions-policy.https.sub.html create mode 100644 testing/web-platform/tests/audio-output/selectAudioOutput-sans-user-activation.https.html create mode 100644 testing/web-platform/tests/audio-output/setSinkId-manual.https.html create mode 100644 testing/web-platform/tests/audio-output/setSinkId-permissions-policy.https.sub.html create mode 100644 testing/web-platform/tests/audio-output/setSinkId-with-selectAudioOutput.https.html create mode 100644 testing/web-platform/tests/audio-output/setSinkId.https.html (limited to 'testing/web-platform/tests/audio-output') diff --git a/testing/web-platform/tests/audio-output/META.yml b/testing/web-platform/tests/audio-output/META.yml new file mode 100644 index 0000000000..b6a7d4d062 --- /dev/null +++ b/testing/web-platform/tests/audio-output/META.yml @@ -0,0 +1,4 @@ +spec: https://w3c.github.io/mediacapture-output/ +suggested_reviewers: + - guidou + - jan-ivar diff --git a/testing/web-platform/tests/audio-output/enumerateDevices-permissions-policy.https.html b/testing/web-platform/tests/audio-output/enumerateDevices-permissions-policy.https.html new file mode 100644 index 0000000000..4e5652e68f --- /dev/null +++ b/testing/web-platform/tests/audio-output/enumerateDevices-permissions-policy.https.html @@ -0,0 +1,32 @@ + + + + Test permissions policy on enumerateDevices() after getUserMedia() + + + + +

If prompted, please allow access to + a microphone device.

+ + + + + + diff --git a/testing/web-platform/tests/audio-output/enumerateDevices-with-selectAudioOutput.https.html b/testing/web-platform/tests/audio-output/enumerateDevices-with-selectAudioOutput.https.html new file mode 100644 index 0000000000..51da44286a --- /dev/null +++ b/testing/web-platform/tests/audio-output/enumerateDevices-with-selectAudioOutput.https.html @@ -0,0 +1,48 @@ + + +Test effect of selectAudioOutput() on audiooutput devices from enumerateDevices() + + + +

If prompted, please allow access to + an audio output device.

+ + + + + + diff --git a/testing/web-platform/tests/audio-output/idlharness.https.window.js b/testing/web-platform/tests/audio-output/idlharness.https.window.js new file mode 100644 index 0000000000..d7cdbd0768 --- /dev/null +++ b/testing/web-platform/tests/audio-output/idlharness.https.window.js @@ -0,0 +1,20 @@ +// META: script=/resources/WebIDLParser.js +// META: script=/resources/idlharness.js + +// https://w3c.github.io/mediacapture-output/ + +'use strict'; + +idl_test( + ['audio-output'], + ['mediacapture-streams', 'html', 'dom'], + idl_array => { + self.audio = document.createElement('audio'); + self.video = document.createElement('video'); + idl_array.add_objects({ + HTMLAudioElement: ['audio'], + HTMLVideoElement: ['video'], + MediaDevices: ['navigator.mediaDevices'], + }); + } +); diff --git a/testing/web-platform/tests/audio-output/removeTrack-after-setSinkId.https.html b/testing/web-platform/tests/audio-output/removeTrack-after-setSinkId.https.html new file mode 100644 index 0000000000..97db5f81e2 --- /dev/null +++ b/testing/web-platform/tests/audio-output/removeTrack-after-setSinkId.https.html @@ -0,0 +1,27 @@ + + + + Test source track removal after setSinkId does not crash + + + + + + + + diff --git a/testing/web-platform/tests/audio-output/secure-context.html b/testing/web-platform/tests/audio-output/secure-context.html new file mode 100644 index 0000000000..7b4dd229a6 --- /dev/null +++ b/testing/web-platform/tests/audio-output/secure-context.html @@ -0,0 +1,23 @@ + + + +setSinkId and sinkId are SecureContext + + + + + + + diff --git a/testing/web-platform/tests/audio-output/selectAudioOutput-permissions-policy.https.sub.html b/testing/web-platform/tests/audio-output/selectAudioOutput-permissions-policy.https.sub.html new file mode 100644 index 0000000000..41917bb1a6 --- /dev/null +++ b/testing/web-platform/tests/audio-output/selectAudioOutput-permissions-policy.https.sub.html @@ -0,0 +1,48 @@ + + + + + + + + + + + diff --git a/testing/web-platform/tests/audio-output/selectAudioOutput-sans-user-activation.https.html b/testing/web-platform/tests/audio-output/selectAudioOutput-sans-user-activation.https.html new file mode 100644 index 0000000000..9f014476d2 --- /dev/null +++ b/testing/web-platform/tests/audio-output/selectAudioOutput-sans-user-activation.https.html @@ -0,0 +1,18 @@ + + +Test selectAudioOutput() without user activation + + + + + diff --git a/testing/web-platform/tests/audio-output/setSinkId-manual.https.html b/testing/web-platform/tests/audio-output/setSinkId-manual.https.html new file mode 100644 index 0000000000..a083cdf092 --- /dev/null +++ b/testing/web-platform/tests/audio-output/setSinkId-manual.https.html @@ -0,0 +1,132 @@ + + + +Test setSinkId behavior with permissions / device changes + + + + + + +

Description

+

This test checks that setSinkId follows the algorithm, this includes manually checking the proper rendering on new output devices.

+

When prompted to access microphones, please accept as this is the only current way to get permissions for associated output devices.

+

For each authorized output device, check that selecting it makes the audio beat rendered on the corresponding device.

+

Available but unauthorized devices (only those for which we can gain permission can be selected):

+ +

Authorized devices:

+ + + +
+ + + diff --git a/testing/web-platform/tests/audio-output/setSinkId-permissions-policy.https.sub.html b/testing/web-platform/tests/audio-output/setSinkId-permissions-policy.https.sub.html new file mode 100644 index 0000000000..8e26fc44a8 --- /dev/null +++ b/testing/web-platform/tests/audio-output/setSinkId-permissions-policy.https.sub.html @@ -0,0 +1,32 @@ + + + + + + + + + diff --git a/testing/web-platform/tests/audio-output/setSinkId-with-selectAudioOutput.https.html b/testing/web-platform/tests/audio-output/setSinkId-with-selectAudioOutput.https.html new file mode 100644 index 0000000000..6847545503 --- /dev/null +++ b/testing/web-platform/tests/audio-output/setSinkId-with-selectAudioOutput.https.html @@ -0,0 +1,54 @@ + + +Test setSinkId() before and after selectAudioOutput() + + + + + + + diff --git a/testing/web-platform/tests/audio-output/setSinkId.https.html b/testing/web-platform/tests/audio-output/setSinkId.https.html new file mode 100644 index 0000000000..be65f0ac81 --- /dev/null +++ b/testing/web-platform/tests/audio-output/setSinkId.https.html @@ -0,0 +1,62 @@ + + +Test setSinkId behavior + + + + + + + + + -- cgit v1.2.3