Move files from gst-devtools into the "subprojects/gst-devtools/" subdir
[platform/upstream/gstreamer.git] / subprojects / gst-devtools / validate / tests / launcher_tests / foreach_array.validatetest
1 meta,
2     handles-states=true,
3     args = {
4         "videotestsrc pattern=ball name=s ! fakesink",
5     }
6
7 foreach, pattern=<green, blue>,
8     actions = {
9         [set-properties, s::pattern="$(pattern)"],
10     }
11
12 priv_check-action-type-calls, type=set-properties, n=2
13
14 check-properties, s::pattern="Blue"
15
16 foreach, pattern=<
17             # We can also pass int values (which works for enums)
18             1,  3, 5, # green
19         >,
20     actions = {
21         [set-properties, s::pattern="$(pattern)"],
22     }
23
24 priv_check-action-type-calls, type=set-properties, n=5
25 check-properties, s::pattern="Green"
26
27 foreach, pattern=<blue, white, black>,
28     actions = {
29         [set-properties, s::pattern="$(pattern)"],
30     }
31 priv_check-action-type-calls, type=set-properties, n=8
32 check-properties, s::pattern="100\%\ Black"
33 stop