4 "name": "Add simple action",
10 "requires": "nsPlugin"
14 "$TC actions flush action simple",
20 "cmdUnderTest": "$TC actions add action simple sdata \"A triumph\" index 60",
22 "verifyCmd": "$TC actions list action simple",
23 "matchPattern": "action order [0-9]*: Simple <A triumph>.*index 60 ref",
26 "$TC actions flush action simple"
31 "name": "Add simple action with change command",
37 "requires": "nsPlugin"
41 "$TC actions flush action simple",
47 "cmdUnderTest": "$TC actions change action simple sdata \"Not changed\" index 60",
49 "verifyCmd": "$TC actions list action simple",
50 "matchPattern": "action order [0-9]*: Simple <Not changed>.*index 60 ref",
53 "$TC actions flush action simple"
58 "name": "Add simple action with duplicate index",
64 "requires": "nsPlugin"
68 "$TC actions flush action simple",
73 "$TC actions add action simple sdata \"Aruba\" index 4"
75 "cmdUnderTest": "$TC actions add action simple sdata \"Jamaica\" index 4",
77 "verifyCmd": "$TC actions list action simple",
78 "matchPattern": "action order [0-9]*: Simple <Jamaica>.*ref",
81 "$TC actions flush action simple"
86 "name": "List simple actions",
92 "requires": "nsPlugin"
96 "$TC actions flush action simple",
101 "$TC actions add action simple sdata \"Rock\"",
102 "$TC actions add action simple sdata \"Paper\"",
103 "$TC actions add action simple sdata \"Scissors\" index 98"
105 "cmdUnderTest": "$TC actions list action simple",
107 "verifyCmd": "$TC actions list action simple",
108 "matchPattern": "action order [0-9]*: Simple <[A-Z][a-z]*>",
111 "$TC actions flush action simple"
116 "name": "Delete simple action",
122 "requires": "nsPlugin"
126 "$TC actions flush action simple",
131 "$TC actions add action simple sdata \"Blinkenlights\" index 1"
133 "cmdUnderTest": "$TC actions delete action simple index 1",
135 "verifyCmd": "$TC actions list action simple",
136 "matchPattern": "action order [0-9]*: Simple <Blinkenlights>.*index 1 ref",
139 "$TC actions flush action simple"
144 "name": "Flush simple actions",
150 "requires": "nsPlugin"
154 "$TC actions flush action simple",
159 "$TC actions add action simple sdata \"Kirk\"",
160 "$TC actions add action simple sdata \"Spock\" index 50",
161 "$TC actions add action simple sdata \"McCoy\" index 9"
163 "cmdUnderTest": "$TC actions flush action simple",
165 "verifyCmd": "$TC actions list action simple",
166 "matchPattern": "action order [0-9]*: Simple <[A-Z][a-z]*>",
174 "name": "Replace simple action with invalid goto chain control",
180 "requires": "nsPlugin"
184 "$TC actions flush action simple",
189 "$TC actions add action simple sdata \"hello\" pass index 90"
191 "cmdUnderTest": "$TC actions replace action simple sdata \"world\" goto chain 42 index 90 cookie c1a0c1a0",
192 "expExitCode": "255",
193 "verifyCmd": "$TC actions list action simple",
194 "matchPattern": "action order [0-9]*: Simple <hello>.*index 90 ref",
197 "$TC actions flush action simple"
202 "name": "Verify cleanup of failed actions batch add",
208 "requires": "nsPlugin"
212 "$TC actions flush action simple",
217 "$TC actions add action simple sdata \"2\" index 2",
219 "$TC actions add action simple sdata \"1\" index 1 action simple sdata \"2\" index 2",
222 "$TC actions flush action simple"
224 "cmdUnderTest": "$TC actions add action simple sdata \"2\" index 2",
226 "verifyCmd": "$TC actions list action simple",
227 "matchPattern": "action order [0-9]*: Simple <2>.*index 2 ref",
230 "$TC actions flush action simple"
235 "name": "Verify cleanup of failed actions batch change",
241 "requires": "nsPlugin"
245 "$TC actions flush action simple",
251 "$TC actions change action simple sdata \"1\" index 1 action simple sdata \"2\" goto chain 42 index 2",
254 "$TC actions flush action simple"
256 "cmdUnderTest": "$TC actions add action simple sdata \"1\" index 1",
258 "verifyCmd": "$TC actions list action simple",
259 "matchPattern": "action order [0-9]*: Simple <1>.*index 1 ref",
262 "$TC actions flush action simple"