Skip to content

Commit 48d06d4

Browse files
committed
Bug 1979187 [wpt PR 53964] - [MediaStream] Support new EchoCancellationModes in track capabilities, a=testonly
Automatic update from web-platform-tests [MediaStream] Support new EchoCancellationModes in track capabilities Bug: 428856440 Change-Id: I4a67a857d1426da1e6a44d72c4d4ad0d72327072 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6779826 Reviewed-by: Olga Sharonova <olkachromium.org> Commit-Queue: Guido Urdaneta <guidouchromium.org> Cr-Commit-Position: refs/heads/main{#1492188} -- wpt-commits: 039221d69c1670c19d0c199f0c1bb6d06ad39ffe wpt-pr: 53964 UltraBlame original commit: 20512ba03609ad0927b5ae6c1b47726083d20adc
1 parent c81394c commit 48d06d4

File tree

1 file changed

+95
-0
lines changed

1 file changed

+95
-0
lines changed

testing/web-platform/tests/mediacapture-streams/MediaStreamTrack-getCapabilities.https.html

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,23 @@
131131
:
132132
"
133133
boolean
134+
or
135+
string
136+
"
137+
validValues
138+
:
139+
[
140+
true
141+
false
142+
"
143+
all
144+
"
145+
"
146+
remote
147+
-
148+
only
134149
"
150+
]
135151
}
136152
{
137153
name
@@ -563,6 +579,51 @@
563579
;
564580
}
565581
function
582+
verifyBooleanOrStringCapability
583+
(
584+
capability
585+
validMembers
586+
)
587+
{
588+
capability
589+
.
590+
forEach
591+
(
592+
c
593+
=
594+
>
595+
{
596+
assert_true
597+
(
598+
typeof
599+
c
600+
=
601+
=
602+
"
603+
boolean
604+
"
605+
|
606+
|
607+
typeof
608+
c
609+
=
610+
=
611+
"
612+
string
613+
"
614+
)
615+
;
616+
assert_in_array
617+
(
618+
c
619+
validMembers
620+
)
621+
;
622+
}
623+
)
624+
;
625+
}
626+
function
566627
testCapabilities
567628
(
568629
capabilities
@@ -700,6 +761,40 @@
700761
=
701762
=
702763
"
764+
boolean
765+
or
766+
string
767+
"
768+
)
769+
{
770+
test
771+
(
772+
(
773+
)
774+
=
775+
>
776+
{
777+
verifyBooleanOrStringCapability
778+
(
779+
capability
780+
property
781+
.
782+
validValues
783+
)
784+
;
785+
}
786+
testName
787+
)
788+
;
789+
}
790+
if
791+
(
792+
property
793+
.
794+
type
795+
=
796+
=
797+
"
703798
number
704799
"
705800
)

0 commit comments

Comments
 (0)