testaro 13.0.2 → 14.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/README.md +190 -94
  2. package/actSpecs.js +17 -158
  3. package/package.json +1 -1
  4. package/run.js +31 -31
  5. package/standardize.js +338 -0
  6. package/{tests → testaro}/allHidden.js +36 -1
  7. package/{tests → testaro}/attVal.js +36 -2
  8. package/{tests → testaro}/autocomplete.js +34 -1
  9. package/{tests → testaro}/bulk.js +15 -1
  10. package/{tests → testaro}/docType.js +15 -1
  11. package/{tests → testaro}/dupAtt.js +34 -1
  12. package/{tests → testaro}/elements.js +9 -3
  13. package/testaro/embAc.js +78 -0
  14. package/{tests → testaro}/filter.js +35 -1
  15. package/{tests → testaro}/focAll.js +20 -3
  16. package/{tests → testaro}/focInd.js +45 -3
  17. package/{tests → testaro}/focOp.js +61 -2
  18. package/{tests → testaro}/focVis.js +35 -1
  19. package/{tests → testaro}/hover.js +67 -5
  20. package/{tests → testaro}/labClash.js +54 -4
  21. package/{tests → testaro}/linkTo.js +33 -1
  22. package/{tests → testaro}/linkUl.js +43 -5
  23. package/{tests → testaro}/menuNav.js +42 -1
  24. package/{tests → testaro}/miniText.js +32 -1
  25. package/{tests → testaro}/motion.js +27 -4
  26. package/{tests → testaro}/nonTable.js +32 -1
  27. package/{tests → testaro}/radioSet.js +33 -2
  28. package/{tests → testaro}/role.js +38 -1
  29. package/{tests → testaro}/styleDiff.js +43 -2
  30. package/{tests → testaro}/tabNav.js +42 -1
  31. package/{tests → testaro}/textNodes.js +6 -2
  32. package/{tests → testaro}/title.js +8 -4
  33. package/{tests → testaro}/titledEl.js +32 -1
  34. package/{tests → testaro}/zIndex.js +40 -2
  35. package/tests/alfa.js +72 -75
  36. package/tests/continuum.js +6 -2
  37. package/tests/ibm.js +14 -42
  38. package/tests/testaro.js +73 -0
  39. package/validation/tests/jobs/allHidden.json +877 -174
  40. package/validation/tests/jobs/attVal.json +57 -19
  41. package/validation/tests/jobs/autocomplete.json +34 -8
  42. package/validation/tests/jobs/bulk.json +33 -7
  43. package/validation/tests/jobs/docType.json +23 -5
  44. package/validation/tests/jobs/dupAtt.json +47 -8
  45. package/validation/tests/jobs/elements.json +231 -70
  46. package/validation/tests/jobs/embAc.json +70 -15
  47. package/validation/tests/jobs/filter.json +56 -12
  48. package/validation/tests/jobs/focAll.json +64 -16
  49. package/validation/tests/jobs/focInd.json +107 -23
  50. package/validation/tests/jobs/focOp.json +93 -21
  51. package/validation/tests/jobs/focVis.json +16 -4
  52. package/validation/tests/jobs/hover.json +246 -56
  53. package/validation/tests/jobs/labClash.json +43 -11
  54. package/validation/tests/jobs/linkTo.json +16 -4
  55. package/validation/tests/jobs/linkUl.json +79 -19
  56. package/validation/tests/jobs/menuNav.json +313 -65
  57. package/validation/tests/jobs/miniText.json +21 -5
  58. package/validation/tests/jobs/motion.json +81 -23
  59. package/validation/tests/jobs/nonTable.json +26 -6
  60. package/validation/tests/jobs/radioSet.json +43 -11
  61. package/validation/tests/jobs/role.json +93 -19
  62. package/validation/tests/jobs/styleDiff.json +124 -28
  63. package/validation/tests/jobs/tabNav.json +313 -65
  64. package/validation/tests/jobs/textNodes.json +190 -49
  65. package/validation/tests/jobs/title.json +23 -5
  66. package/validation/tests/jobs/titledEl.json +26 -6
  67. package/validation/tests/jobs/zIndex.json +28 -8
  68. package/validation/tests/old/allHidden.json +314 -0
  69. package/validation/tests/old/attVal.json +60 -0
  70. package/validation/tests/old/autocomplete.json +51 -0
  71. package/validation/tests/old/bulk.json +48 -0
  72. package/validation/tests/old/docType.json +46 -0
  73. package/validation/tests/old/dupAtt.json +51 -0
  74. package/validation/tests/old/elements.json +140 -0
  75. package/validation/tests/old/embAc.json +54 -0
  76. package/validation/tests/old/filter.json +55 -0
  77. package/validation/tests/old/focAll.json +68 -0
  78. package/validation/tests/old/focInd.json +69 -0
  79. package/validation/tests/old/focOp.json +62 -0
  80. package/validation/tests/old/focVis.json +35 -0
  81. package/validation/tests/old/hover.json +118 -0
  82. package/validation/tests/old/labClash.json +52 -0
  83. package/validation/tests/old/linkTo.json +35 -0
  84. package/validation/tests/old/linkUl.json +71 -0
  85. package/validation/tests/old/menuNav.json +106 -0
  86. package/validation/tests/old/miniText.json +36 -0
  87. package/validation/tests/old/motion.json +62 -0
  88. package/validation/tests/old/nonTable.json +37 -0
  89. package/validation/tests/old/radioSet.json +52 -0
  90. package/validation/tests/old/role.json +60 -0
  91. package/validation/tests/old/styleDiff.json +71 -0
  92. package/validation/tests/old/tabNav.json +106 -0
  93. package/validation/tests/old/temp.js +28 -0
  94. package/validation/tests/old/textNodes.json +98 -0
  95. package/validation/tests/old/title.json +46 -0
  96. package/validation/tests/old/titledEl.json +37 -0
  97. package/validation/tests/old/zIndex.json +49 -0
  98. package/validation/tests/targets/attVal/good.html +1 -1
  99. package/validation/tests/targets/elements/index.html +1 -0
  100. package/tests/embAc.js +0 -36
@@ -16,40 +16,164 @@
16
16
  },
17
17
  {
18
18
  "type": "test",
19
- "which": "tabNav",
19
+ "which": "testaro",
20
20
  "what": "tab-list navigation",
21
- "withItems": false,
21
+ "withItems": true,
22
22
  "expect": [
23
- ["totals.navigations.all.total", "=", 21],
24
- ["totals.navigations.all.correct", "=", 21],
25
- ["totals.navigations.all.incorrect", "=", 0],
26
- ["totals.navigations.specific.tab.total", "=", 3],
27
- ["totals.navigations.specific.tab.correct", "=", 3],
28
- ["totals.navigations.specific.tab.incorrect", "=", 0],
29
- ["totals.navigations.specific.left.total", "=", 3],
30
- ["totals.navigations.specific.left.correct", "=", 3],
31
- ["totals.navigations.specific.left.incorrect", "=", 0],
32
- ["totals.navigations.specific.right.total", "=", 3],
33
- ["totals.navigations.specific.right.correct", "=", 3],
34
- ["totals.navigations.specific.right.incorrect", "=", 0],
35
- ["totals.navigations.specific.up.total", "=", 3],
36
- ["totals.navigations.specific.up.correct", "=", 3],
37
- ["totals.navigations.specific.up.incorrect", "=", 0],
38
- ["totals.navigations.specific.down.total", "=", 3],
39
- ["totals.navigations.specific.down.correct", "=", 3],
40
- ["totals.navigations.specific.down.incorrect", "=", 0],
41
- ["totals.navigations.specific.home.total", "=", 3],
42
- ["totals.navigations.specific.home.correct", "=", 3],
43
- ["totals.navigations.specific.home.incorrect", "=", 0],
44
- ["totals.navigations.specific.end.total", "=", 3],
45
- ["totals.navigations.specific.end.correct", "=", 3],
46
- ["totals.navigations.specific.end.incorrect", "=", 0],
47
- ["totals.tabElements.total", "=", 3],
48
- ["totals.tabElements.correct", "=", 3],
49
- ["totals.tabElements.incorrect", "=", 0],
50
- ["totals.tabLists.total", "=", 1],
51
- ["totals.tabLists.correct", "=", 1],
52
- ["totals.tabLists.incorrect", "=", 0]
23
+ [
24
+ "result.rules.tabNav.data.totals.navigations.all.total",
25
+ "=",
26
+ 21
27
+ ],
28
+ [
29
+ "result.rules.tabNav.data.totals.navigations.all.correct",
30
+ "=",
31
+ 21
32
+ ],
33
+ [
34
+ "result.rules.tabNav.data.totals.navigations.all.incorrect",
35
+ "=",
36
+ 0
37
+ ],
38
+ [
39
+ "result.rules.tabNav.data.totals.navigations.specific.tab.total",
40
+ "=",
41
+ 3
42
+ ],
43
+ [
44
+ "result.rules.tabNav.data.totals.navigations.specific.tab.correct",
45
+ "=",
46
+ 3
47
+ ],
48
+ [
49
+ "result.rules.tabNav.data.totals.navigations.specific.tab.incorrect",
50
+ "=",
51
+ 0
52
+ ],
53
+ [
54
+ "result.rules.tabNav.data.totals.navigations.specific.left.total",
55
+ "=",
56
+ 3
57
+ ],
58
+ [
59
+ "result.rules.tabNav.data.totals.navigations.specific.left.correct",
60
+ "=",
61
+ 3
62
+ ],
63
+ [
64
+ "result.rules.tabNav.data.totals.navigations.specific.left.incorrect",
65
+ "=",
66
+ 0
67
+ ],
68
+ [
69
+ "result.rules.tabNav.data.totals.navigations.specific.right.total",
70
+ "=",
71
+ 3
72
+ ],
73
+ [
74
+ "result.rules.tabNav.data.totals.navigations.specific.right.correct",
75
+ "=",
76
+ 3
77
+ ],
78
+ [
79
+ "result.rules.tabNav.data.totals.navigations.specific.right.incorrect",
80
+ "=",
81
+ 0
82
+ ],
83
+ [
84
+ "result.rules.tabNav.data.totals.navigations.specific.up.total",
85
+ "=",
86
+ 3
87
+ ],
88
+ [
89
+ "result.rules.tabNav.data.totals.navigations.specific.up.correct",
90
+ "=",
91
+ 3
92
+ ],
93
+ [
94
+ "result.rules.tabNav.data.totals.navigations.specific.up.incorrect",
95
+ "=",
96
+ 0
97
+ ],
98
+ [
99
+ "result.rules.tabNav.data.totals.navigations.specific.down.total",
100
+ "=",
101
+ 3
102
+ ],
103
+ [
104
+ "result.rules.tabNav.data.totals.navigations.specific.down.correct",
105
+ "=",
106
+ 3
107
+ ],
108
+ [
109
+ "result.rules.tabNav.data.totals.navigations.specific.down.incorrect",
110
+ "=",
111
+ 0
112
+ ],
113
+ [
114
+ "result.rules.tabNav.data.totals.navigations.specific.home.total",
115
+ "=",
116
+ 3
117
+ ],
118
+ [
119
+ "result.rules.tabNav.data.totals.navigations.specific.home.correct",
120
+ "=",
121
+ 3
122
+ ],
123
+ [
124
+ "result.rules.tabNav.data.totals.navigations.specific.home.incorrect",
125
+ "=",
126
+ 0
127
+ ],
128
+ [
129
+ "result.rules.tabNav.data.totals.navigations.specific.end.total",
130
+ "=",
131
+ 3
132
+ ],
133
+ [
134
+ "result.rules.tabNav.data.totals.navigations.specific.end.correct",
135
+ "=",
136
+ 3
137
+ ],
138
+ [
139
+ "result.rules.tabNav.data.totals.navigations.specific.end.incorrect",
140
+ "=",
141
+ 0
142
+ ],
143
+ [
144
+ "result.rules.tabNav.data.totals.tabElements.total",
145
+ "=",
146
+ 3
147
+ ],
148
+ [
149
+ "result.rules.tabNav.data.totals.tabElements.correct",
150
+ "=",
151
+ 3
152
+ ],
153
+ [
154
+ "result.rules.tabNav.data.totals.tabElements.incorrect",
155
+ "=",
156
+ 0
157
+ ],
158
+ [
159
+ "result.rules.tabNav.data.totals.tabLists.total",
160
+ "=",
161
+ 1
162
+ ],
163
+ [
164
+ "result.rules.tabNav.data.totals.tabLists.correct",
165
+ "=",
166
+ 1
167
+ ],
168
+ [
169
+ "result.rules.tabNav.data.totals.tabLists.incorrect",
170
+ "=",
171
+ 0
172
+ ]
173
+ ],
174
+ "rules": [
175
+ "y",
176
+ "tabNav"
53
177
  ]
54
178
  },
55
179
  {
@@ -59,40 +183,164 @@
59
183
  },
60
184
  {
61
185
  "type": "test",
62
- "which": "tabNav",
186
+ "which": "testaro",
63
187
  "what": "tab-list navigation",
64
- "withItems": false,
188
+ "withItems": true,
65
189
  "expect": [
66
- ["totals.navigations.all.total", "=", 21],
67
- ["totals.navigations.all.correct", "=", 9],
68
- ["totals.navigations.all.incorrect", "=", 12],
69
- ["totals.navigations.specific.tab.total", "=", 3],
70
- ["totals.navigations.specific.tab.correct", "=", 1],
71
- ["totals.navigations.specific.tab.incorrect", "=", 2],
72
- ["totals.navigations.specific.left.total", "=", 3],
73
- ["totals.navigations.specific.left.correct", "=", 0],
74
- ["totals.navigations.specific.left.incorrect", "=", 3],
75
- ["totals.navigations.specific.right.total", "=", 3],
76
- ["totals.navigations.specific.right.correct", "=", 0],
77
- ["totals.navigations.specific.right.incorrect", "=", 3],
78
- ["totals.navigations.specific.up.total", "=", 3],
79
- ["totals.navigations.specific.up.correct", "=", 3],
80
- ["totals.navigations.specific.up.incorrect", "=", 0],
81
- ["totals.navigations.specific.down.total", "=", 3],
82
- ["totals.navigations.specific.down.correct", "=", 3],
83
- ["totals.navigations.specific.down.incorrect", "=", 0],
84
- ["totals.navigations.specific.home.total", "=", 3],
85
- ["totals.navigations.specific.home.correct", "=", 1],
86
- ["totals.navigations.specific.home.incorrect", "=", 2],
87
- ["totals.navigations.specific.end.total", "=", 3],
88
- ["totals.navigations.specific.end.correct", "=", 1],
89
- ["totals.navigations.specific.end.incorrect", "=", 2],
90
- ["totals.tabElements.total", "=", 3],
91
- ["totals.tabElements.correct", "=", 0],
92
- ["totals.tabElements.incorrect", "=", 3],
93
- ["totals.tabLists.total", "=", 1],
94
- ["totals.tabLists.correct", "=", 0],
95
- ["totals.tabLists.incorrect", "=", 1]
190
+ [
191
+ "result.rules.tabNav.data.totals.navigations.all.total",
192
+ "=",
193
+ 21
194
+ ],
195
+ [
196
+ "result.rules.tabNav.data.totals.navigations.all.correct",
197
+ "=",
198
+ 9
199
+ ],
200
+ [
201
+ "result.rules.tabNav.data.totals.navigations.all.incorrect",
202
+ "=",
203
+ 12
204
+ ],
205
+ [
206
+ "result.rules.tabNav.data.totals.navigations.specific.tab.total",
207
+ "=",
208
+ 3
209
+ ],
210
+ [
211
+ "result.rules.tabNav.data.totals.navigations.specific.tab.correct",
212
+ "=",
213
+ 1
214
+ ],
215
+ [
216
+ "result.rules.tabNav.data.totals.navigations.specific.tab.incorrect",
217
+ "=",
218
+ 2
219
+ ],
220
+ [
221
+ "result.rules.tabNav.data.totals.navigations.specific.left.total",
222
+ "=",
223
+ 3
224
+ ],
225
+ [
226
+ "result.rules.tabNav.data.totals.navigations.specific.left.correct",
227
+ "=",
228
+ 0
229
+ ],
230
+ [
231
+ "result.rules.tabNav.data.totals.navigations.specific.left.incorrect",
232
+ "=",
233
+ 3
234
+ ],
235
+ [
236
+ "result.rules.tabNav.data.totals.navigations.specific.right.total",
237
+ "=",
238
+ 3
239
+ ],
240
+ [
241
+ "result.rules.tabNav.data.totals.navigations.specific.right.correct",
242
+ "=",
243
+ 0
244
+ ],
245
+ [
246
+ "result.rules.tabNav.data.totals.navigations.specific.right.incorrect",
247
+ "=",
248
+ 3
249
+ ],
250
+ [
251
+ "result.rules.tabNav.data.totals.navigations.specific.up.total",
252
+ "=",
253
+ 3
254
+ ],
255
+ [
256
+ "result.rules.tabNav.data.totals.navigations.specific.up.correct",
257
+ "=",
258
+ 3
259
+ ],
260
+ [
261
+ "result.rules.tabNav.data.totals.navigations.specific.up.incorrect",
262
+ "=",
263
+ 0
264
+ ],
265
+ [
266
+ "result.rules.tabNav.data.totals.navigations.specific.down.total",
267
+ "=",
268
+ 3
269
+ ],
270
+ [
271
+ "result.rules.tabNav.data.totals.navigations.specific.down.correct",
272
+ "=",
273
+ 3
274
+ ],
275
+ [
276
+ "result.rules.tabNav.data.totals.navigations.specific.down.incorrect",
277
+ "=",
278
+ 0
279
+ ],
280
+ [
281
+ "result.rules.tabNav.data.totals.navigations.specific.home.total",
282
+ "=",
283
+ 3
284
+ ],
285
+ [
286
+ "result.rules.tabNav.data.totals.navigations.specific.home.correct",
287
+ "=",
288
+ 1
289
+ ],
290
+ [
291
+ "result.rules.tabNav.data.totals.navigations.specific.home.incorrect",
292
+ "=",
293
+ 2
294
+ ],
295
+ [
296
+ "result.rules.tabNav.data.totals.navigations.specific.end.total",
297
+ "=",
298
+ 3
299
+ ],
300
+ [
301
+ "result.rules.tabNav.data.totals.navigations.specific.end.correct",
302
+ "=",
303
+ 1
304
+ ],
305
+ [
306
+ "result.rules.tabNav.data.totals.navigations.specific.end.incorrect",
307
+ "=",
308
+ 2
309
+ ],
310
+ [
311
+ "result.rules.tabNav.data.totals.tabElements.total",
312
+ "=",
313
+ 3
314
+ ],
315
+ [
316
+ "result.rules.tabNav.data.totals.tabElements.correct",
317
+ "=",
318
+ 0
319
+ ],
320
+ [
321
+ "result.rules.tabNav.data.totals.tabElements.incorrect",
322
+ "=",
323
+ 3
324
+ ],
325
+ [
326
+ "result.rules.tabNav.data.totals.tabLists.total",
327
+ "=",
328
+ 1
329
+ ],
330
+ [
331
+ "result.rules.tabNav.data.totals.tabLists.correct",
332
+ "=",
333
+ 0
334
+ ],
335
+ [
336
+ "result.rules.tabNav.data.totals.tabLists.incorrect",
337
+ "=",
338
+ 1
339
+ ]
340
+ ],
341
+ "rules": [
342
+ "y",
343
+ "tabNav"
96
344
  ]
97
345
  }
98
346
  ],
@@ -101,6 +349,6 @@
101
349
  "host": {},
102
350
  "requester": ""
103
351
  },
104
- "creationTime": "2002-11-12T09:31:00",
352
+ "creationTime": "2013-05-28T12:00:00",
105
353
  "timeStamp": "00000"
106
354
  }
@@ -16,76 +16,217 @@
16
16
  },
17
17
  {
18
18
  "type": "test",
19
- "which": "textNodes",
19
+ "which": "testaro",
20
20
  "what": "text nodes",
21
- "detailLevel": 0,
22
21
  "expect": [
23
- ["nodeCount", "=", 35]
24
- ]
22
+ [
23
+ "result.rules.textNodes.data.nodeCount",
24
+ "=",
25
+ 35
26
+ ]
27
+ ],
28
+ "withItems": true,
29
+ "rules": [
30
+ "y",
31
+ "textNodes"
32
+ ],
33
+ "args": {
34
+ "textNodes": [0, ""]
35
+ }
25
36
  },
26
37
  {
27
38
  "type": "test",
28
- "which": "textNodes",
39
+ "which": "testaro",
29
40
  "what": "text nodes",
30
- "detailLevel": 0,
31
- "text": "alia",
32
41
  "expect": [
33
- ["nodeCount", "=", 2]
34
- ]
42
+ [
43
+ "result.rules.textNodes.data.nodeCount",
44
+ "=",
45
+ 2
46
+ ]
47
+ ],
48
+ "withItems": true,
49
+ "rules": [
50
+ "y",
51
+ "textNodes"
52
+ ],
53
+ "args": {
54
+ "textNodes": [0, "alia"]
55
+ }
35
56
  },
36
57
  {
37
58
  "type": "test",
38
- "which": "textNodes",
59
+ "which": "testaro",
39
60
  "what": "text nodes",
40
- "detailLevel": 1,
41
- "text": "alia",
42
61
  "expect": [
43
- ["nodeCount", "=", 2],
44
- ["items.0.text", "=", "Io alia"]
45
- ]
62
+ [
63
+ "result.rules.textNodes.data.nodeCount",
64
+ "=",
65
+ 2
66
+ ],
67
+ [
68
+ "result.rules.textNodes.data.items.0.text",
69
+ "=",
70
+ "Io alia"
71
+ ]
72
+ ],
73
+ "withItems": true,
74
+ "rules": [
75
+ "y",
76
+ "textNodes"
77
+ ],
78
+ "args": {
79
+ "textNodes": [1, "alia"]
80
+ }
46
81
  },
47
82
  {
48
83
  "type": "test",
49
- "which": "textNodes",
84
+ "which": "testaro",
50
85
  "what": "text nodes",
51
- "detailLevel": 2,
52
- "text": "This is the",
53
86
  "expect": [
54
- ["nodeCount", "=", 2],
55
- ["items.0.text", "=", "This is the first button"],
56
- ["items.1.text", "=", "This is the second button"],
57
- ["items.0.ancestors.0.tagName", "=", "BUTTON"],
58
- ["items.1.ancestors.0.tagName", "=", "BUTTON"],
59
- ["items.0.ancestors.0.attributes.0.name", "=", "id"],
60
- ["items.0.ancestors.0.attributes.0.value", "=", "button0"],
61
- ["items.1.ancestors.0.attributes.1.name", "=", "aria-labelledby"],
62
- ["items.1.ancestors.0.attributes.1.value", "=", "button1Label"],
63
- ["items.0.ancestors.0.refLabels"],
64
- ["items.1.ancestors.0.refLabels.0", "=", "Click the second button."],
65
- ["items.0.ancestors.0.labels.0", "=", "Click the first button."],
66
- ["items.0.ancestors.0.labels.1", "=", "Did you click it?"],
67
- ["items.1.ancestors.0.labels"],
68
- ["items.0.ancestors.0.children"]
69
- ]
87
+ [
88
+ "result.rules.textNodes.data.nodeCount",
89
+ "=",
90
+ 2
91
+ ],
92
+ [
93
+ "result.rules.textNodes.data.items.0.text",
94
+ "=",
95
+ "This is the first button"
96
+ ],
97
+ [
98
+ "result.rules.textNodes.data.items.1.text",
99
+ "=",
100
+ "This is the second button"
101
+ ],
102
+ [
103
+ "result.rules.textNodes.data.items.0.ancestors.0.tagName",
104
+ "=",
105
+ "BUTTON"
106
+ ],
107
+ [
108
+ "result.rules.textNodes.data.items.1.ancestors.0.tagName",
109
+ "=",
110
+ "BUTTON"
111
+ ],
112
+ [
113
+ "result.rules.textNodes.data.items.0.ancestors.0.attributes.0.name",
114
+ "=",
115
+ "id"
116
+ ],
117
+ [
118
+ "result.rules.textNodes.data.items.0.ancestors.0.attributes.0.value",
119
+ "=",
120
+ "button0"
121
+ ],
122
+ [
123
+ "result.rules.textNodes.data.items.1.ancestors.0.attributes.1.name",
124
+ "=",
125
+ "aria-labelledby"
126
+ ],
127
+ [
128
+ "result.rules.textNodes.data.items.1.ancestors.0.attributes.1.value",
129
+ "=",
130
+ "button1Label"
131
+ ],
132
+ [
133
+ "result.rules.textNodes.data.items.0.ancestors.0.refLabels"
134
+ ],
135
+ [
136
+ "result.rules.textNodes.data.items.1.ancestors.0.refLabels.0",
137
+ "=",
138
+ "Click the second button."
139
+ ],
140
+ [
141
+ "result.rules.textNodes.data.items.0.ancestors.0.labels.0",
142
+ "=",
143
+ "Click the first button."
144
+ ],
145
+ [
146
+ "result.rules.textNodes.data.items.0.ancestors.0.labels.1",
147
+ "=",
148
+ "Did you click it?"
149
+ ],
150
+ [
151
+ "result.rules.textNodes.data.items.1.ancestors.0.labels"
152
+ ],
153
+ [
154
+ "result.rules.textNodes.data.items.0.ancestors.0.children"
155
+ ]
156
+ ],
157
+ "withItems": true,
158
+ "rules": [
159
+ "y",
160
+ "textNodes"
161
+ ],
162
+ "args": {
163
+ "textNodes": [2, "This is the"]
164
+ }
70
165
  },
71
166
  {
72
167
  "type": "test",
73
- "which": "textNodes",
168
+ "which": "testaro",
74
169
  "what": "text nodes",
75
- "detailLevel": 3,
76
- "text": "tute alia",
77
170
  "expect": [
78
- ["nodeCount", "=", 1],
79
- ["items.0.text", "=", "Io tute alia"],
80
- ["items.0.ancestors.0.tagName", "=", "LI"],
81
- ["items.0.ancestors.1.tagName", "=", "UL"],
82
- ["items.0.ancestors.0.attributes.0.name", "=", "class"],
83
- ["items.0.ancestors.0.attributes.0.value", "=", "last"],
84
- ["items.0.ancestors.1.attributes.0.name", "=", "lang"],
85
- ["items.0.ancestors.1.attributes.0.value", "=", "eo"],
86
- ["items.0.ancestors.1.children.1.tagName", "=", "LI"],
87
- ["items.0.ancestors.1.children.2.attributes.1.name", "=", "hidden"]
88
- ]
171
+ [
172
+ "result.rules.textNodes.data.nodeCount",
173
+ "=",
174
+ 1
175
+ ],
176
+ [
177
+ "result.rules.textNodes.data.items.0.text",
178
+ "=",
179
+ "Io tute alia"
180
+ ],
181
+ [
182
+ "result.rules.textNodes.data.items.0.ancestors.0.tagName",
183
+ "=",
184
+ "LI"
185
+ ],
186
+ [
187
+ "result.rules.textNodes.data.items.0.ancestors.1.tagName",
188
+ "=",
189
+ "UL"
190
+ ],
191
+ [
192
+ "result.rules.textNodes.data.items.0.ancestors.0.attributes.0.name",
193
+ "=",
194
+ "class"
195
+ ],
196
+ [
197
+ "result.rules.textNodes.data.items.0.ancestors.0.attributes.0.value",
198
+ "=",
199
+ "last"
200
+ ],
201
+ [
202
+ "result.rules.textNodes.data.items.0.ancestors.1.attributes.0.name",
203
+ "=",
204
+ "lang"
205
+ ],
206
+ [
207
+ "result.rules.textNodes.data.items.0.ancestors.1.attributes.0.value",
208
+ "=",
209
+ "eo"
210
+ ],
211
+ [
212
+ "result.rules.textNodes.data.items.0.ancestors.1.children.1.tagName",
213
+ "=",
214
+ "LI"
215
+ ],
216
+ [
217
+ "result.rules.textNodes.data.items.0.ancestors.1.children.2.attributes.1.name",
218
+ "=",
219
+ "hidden"
220
+ ]
221
+ ],
222
+ "withItems": true,
223
+ "rules": [
224
+ "y",
225
+ "textNodes"
226
+ ],
227
+ "args": {
228
+ "textNodes": [3, "tute alia"]
229
+ }
89
230
  }
90
231
  ],
91
232
  "sources": {
@@ -93,6 +234,6 @@
93
234
  "host": {},
94
235
  "requester": ""
95
236
  },
96
- "creationTime": "2002-11-12T09:31:00",
237
+ "creationTime": "2013-05-28T12:00:00",
97
238
  "timeStamp": "00000"
98
239
  }