gstreamer/subprojects/gst-devtools/validate/tests/launcher_tests/foreach_array.validatetest

34 lines
814 B
Plaintext

meta,
handles-states=true,
args = {
"videotestsrc pattern=ball name=s ! fakesink",
}
foreach, pattern=<green, blue>,
actions = {
[set-properties, s::pattern="$(pattern)"],
}
priv_check-action-type-calls, type=set-properties, n=2
check-properties, s::pattern="Blue"
foreach, pattern=<
# We can also pass int values (which works for enums)
1, 3, 5, # green
>,
actions = {
[set-properties, s::pattern="$(pattern)"],
}
priv_check-action-type-calls, type=set-properties, n=5
check-properties, s::pattern="Green"
foreach, pattern=<blue, white, black>,
actions = {
[set-properties, s::pattern="$(pattern)"],
}
priv_check-action-type-calls, type=set-properties, n=8
check-properties, s::pattern="100\%\ Black"
stop