testaro 26.2.0 → 26.2.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "26.2.0",
3
+ "version": "26.2.1",
4
4
  "description": "Run 650 web accessibility tests from 8 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,172 @@
1
+ {
2
+ "id": "opFoc",
3
+ "what": "validation of opFoc test",
4
+ "strict": true,
5
+ "timeLimit": 20,
6
+ "acts": [
7
+ {
8
+ "type": "launch",
9
+ "which": "chromium",
10
+ "url": "file://validation/tests/targets/opFoc/good.html",
11
+ "what": "page with standard focusability and operability"
12
+ },
13
+ {
14
+ "type": "test",
15
+ "which": "testaro",
16
+ "withItems": true,
17
+ "stopOnFail": true,
18
+ "expect": [
19
+ [
20
+ "standardResult.totals.2",
21
+ "=",
22
+ 0
23
+ ],
24
+ [
25
+ "standardResult.totals.3",
26
+ "=",
27
+ 0
28
+ ],
29
+ [
30
+ "standardResult.instances.length",
31
+ "=",
32
+ 0
33
+ ]
34
+ ],
35
+ "rules": [
36
+ "y",
37
+ "opFoc"
38
+ ]
39
+ },
40
+ {
41
+ "type": "url",
42
+ "which": "file://validation/tests/targets/opFoc/bad.html",
43
+ "what": "page with deviant focusability and operability"
44
+ },
45
+ {
46
+ "type": "test",
47
+ "which": "testaro",
48
+ "withItems": true,
49
+ "stopOnFail": true,
50
+ "expect": [
51
+ [
52
+ "standardResult.totals.2",
53
+ "=",
54
+ 0
55
+ ],
56
+ [
57
+ "standardResult.totals.3",
58
+ "=",
59
+ 3
60
+ ],
61
+ [
62
+ "standardResult.instances.0.ruleID",
63
+ "=",
64
+ "opFoc"
65
+ ],
66
+ [
67
+ "standardResult.instances.0.what",
68
+ "i",
69
+ "Element is operable (tag name BUTTON)"
70
+ ],
71
+ [
72
+ "standardResult.instances.0.ordinalSeverity",
73
+ "=",
74
+ 3
75
+ ],
76
+ [
77
+ "standardResult.instances.0.tagName",
78
+ "=",
79
+ "BUTTON"
80
+ ],
81
+ [
82
+ "standardResult.instances.0.location.doc",
83
+ "=",
84
+ "dom"
85
+ ],
86
+ [
87
+ "standardResult.instances.0.location.type",
88
+ "=",
89
+ "box"
90
+ ],
91
+ [
92
+ "standardResult.instances.0.location.spec.width",
93
+ ">",
94
+ 0
95
+ ],
96
+ [
97
+ "standardResult.instances.0.excerpt",
98
+ "=",
99
+ "button"
100
+ ],
101
+ [
102
+ "standardResult.instances.1.tagName",
103
+ "=",
104
+ "SPAN"
105
+ ],
106
+ [
107
+ "standardResult.instances.2.what",
108
+ "i",
109
+ "Element is operable (pointer cursor)"
110
+ ]
111
+ ],
112
+ "rules": [
113
+ "y",
114
+ "opFoc"
115
+ ]
116
+ },
117
+ {
118
+ "type": "test",
119
+ "which": "testaro",
120
+ "withItems": false,
121
+ "stopOnFail": true,
122
+ "expect": [
123
+ [
124
+ "standardResult.totals.2",
125
+ "=",
126
+ 0
127
+ ],
128
+ [
129
+ "standardResult.totals.3",
130
+ "=",
131
+ 3
132
+ ],
133
+ [
134
+ "standardResult.totals.1",
135
+ "=",
136
+ 0
137
+ ],
138
+ [
139
+ "standardResult.instances.0.ruleID",
140
+ "=",
141
+ "opFoc"
142
+ ],
143
+ [
144
+ "standardResult.instances.0.what",
145
+ "i",
146
+ "Elements are operable but"
147
+ ],
148
+ [
149
+ "standardResult.instances.0.ordinalSeverity",
150
+ "=",
151
+ 3
152
+ ],
153
+ [
154
+ "standardResult.instances.0.count",
155
+ "=",
156
+ 3
157
+ ]
158
+ ],
159
+ "rules": [
160
+ "y",
161
+ "opFoc"
162
+ ]
163
+ }
164
+ ],
165
+ "sources": {
166
+ "script": "",
167
+ "host": {},
168
+ "requester": ""
169
+ },
170
+ "creationTime": "2013-05-28T12:00:00",
171
+ "timeStamp": "00000"
172
+ }
@@ -9,10 +9,10 @@
9
9
  <body>
10
10
  <main>
11
11
  <h1>Page with deviant focusability and operability</h1>
12
- <p>This paragraph contains a link to <a href="https://en.wikipedia.org">information</a>, a <button type="button" tabindex="-1">button</button>, and a <label>text input <input type="text"></label>. The button is not focusable.</p>
13
- <p>This paragraph contains a <span style="font-weight: bold" tabindex="0">focusable part</span> that is not operable.</p>
14
- <p>If you click <span id="clickable" style="color: red" onclick="document.getElementById('clickable').style.color = 'black'">this text</span>, it will turn black, but it is not focusable.</p>
15
- <p>This <span style="cursor: pointer">word</span> is not focusable, but its cursor makes you think it is operable.</p>
12
+ <p>This paragraph contains a link to <a href="https://en.wikipedia.org">information</a>, a <button type="button" tabindex="-1">button</button>, and a <label>text input <input type="text"></label>. Defect 1: The button is not focusable.</p>
13
+ <p>This paragraph contains a <span style="font-weight: bold" tabindex="0">focusable part</span> that is not operable. This test does not cover that defect.</p>
14
+ <p>Defect 2: If you click <span id="clickable" style="color: red" onclick="document.getElementById('clickable').style.color = 'black'">this text</span>, it will turn black, but it is not focusable.</p>
15
+ <p>Defect 3: This <span style="cursor: pointer">word</span> is not focusable, but its cursor makes you think it is operable.</p>
16
16
  </main>
17
17
  </body>
18
18
  </html>