testaro 10.6.5 → 11.0.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.
- package/.eslintrc.json +41 -41
- package/LICENSE +21 -21
- package/README.md +19 -0
- package/aceconfig.js +3 -1
- package/actSpecs.js +358 -358
- package/call.js +85 -85
- package/continuum/AccessEngine.community.js +791 -791
- package/continuum/Continuum.community.js +2697 -2697
- package/continuum/continuum.conf.js +19 -19
- package/data/roles.txt +62 -62
- package/htmlcs/.eslintrc.json +67 -67
- package/htmlcs/HTMLCS.js +8204 -8204
- package/htmlcs/licence.txt +24 -24
- package/package.json +1 -1
- package/procs/allText.js +76 -76
- package/procs/allVis.js +17 -17
- package/procs/linksByType.js +54 -54
- package/procs/textOf.txt +73 -73
- package/procs/wavedoc.json +1617 -1617
- package/run.js +1548 -1548
- package/samples/00000-ts18-example.json +231 -231
- package/tests/alfa.js +138 -138
- package/tests/allHidden.js +49 -49
- package/tests/attVal.js +48 -48
- package/tests/axe.js +118 -118
- package/tests/bulk.js +22 -22
- package/tests/continuum.js +71 -71
- package/tests/docType.js +14 -14
- package/tests/elements.js +159 -159
- package/tests/embAc.js +36 -36
- package/tests/filter.js +47 -47
- package/tests/focAll.js +57 -57
- package/tests/focInd.js +167 -167
- package/tests/focOp.js +138 -138
- package/tests/focVis.js +29 -29
- package/tests/hover.js +381 -381
- package/tests/htmlcs.js +90 -90
- package/tests/ibm.js +3 -10
- package/tests/labClash.js +159 -159
- package/tests/linkTo.js +25 -25
- package/tests/linkUl.js +68 -68
- package/tests/menuNav.js +264 -264
- package/tests/miniText.js +48 -48
- package/tests/motion.js +125 -125
- package/tests/nonTable.js +67 -67
- package/tests/nuVal.js +92 -92
- package/tests/radioSet.js +97 -97
- package/tests/role.js +483 -483
- package/tests/styleDiff.js +153 -153
- package/tests/tabNav.js +328 -328
- package/tests/tenon.js +130 -130
- package/tests/textNodes.js +140 -140
- package/tests/title.js +11 -11
- package/tests/titledEl.js +31 -31
- package/tests/wave.js +59 -59
- package/tests/zIndex.js +49 -49
- package/validation/done/README.md +3 -3
- package/validation/executors/run.js +40 -40
- package/validation/executors/test.js +7 -7
- package/validation/executors/tests.js +22 -22
- package/validation/executors/watchDir.js +28 -28
- package/validation/executors/watchNet.js +117 -117
- package/validation/jobs/done/README.md +3 -3
- package/validation/jobs/todo/00000-simple-example.json +35 -35
- package/validation/jobs/todo/README.md +3 -3
- package/validation/tests/jobs/allHidden.json +314 -314
- package/validation/tests/jobs/bulk.json +48 -48
- package/validation/tests/jobs/docType.json +46 -46
- package/validation/tests/jobs/elements.json +140 -140
- package/validation/tests/jobs/embAc.json +54 -54
- package/validation/tests/jobs/filter.json +55 -55
- package/validation/tests/jobs/focAll.json +68 -68
- package/validation/tests/jobs/focInd.json +69 -69
- package/validation/tests/jobs/focOp.json +62 -62
- package/validation/tests/jobs/focVis.json +35 -35
- package/validation/tests/jobs/hover.json +118 -118
- package/validation/tests/jobs/labClash.json +52 -52
- package/validation/tests/jobs/linkTo.json +35 -35
- package/validation/tests/jobs/linkUl.json +71 -71
- package/validation/tests/jobs/menuNav.json +106 -106
- package/validation/tests/jobs/miniText.json +36 -36
- package/validation/tests/jobs/motion.json +62 -62
- package/validation/tests/jobs/nonTable.json +37 -37
- package/validation/tests/jobs/radioSet.json +52 -52
- package/validation/tests/jobs/role.json +60 -60
- package/validation/tests/jobs/styleDiff.json +71 -71
- package/validation/tests/jobs/tabNav.json +106 -106
- package/validation/tests/jobs/textNodes.json +98 -98
- package/validation/tests/jobs/title.json +46 -46
- package/validation/tests/jobs/titledEl.json +37 -37
- package/validation/tests/jobs/zIndex.json +49 -49
- package/validation/tests/targets/allHidden/ariaHiddenMain.html +15 -15
- package/validation/tests/targets/allHidden/good.html +15 -15
- package/validation/tests/targets/allHidden/hiddenMain.html +16 -16
- package/validation/tests/targets/allHidden/mixedHidden0.html +16 -16
- package/validation/tests/targets/allHidden/mixedHidden1.html +16 -16
- package/validation/tests/targets/allHidden/noBody.html +11 -11
- package/validation/tests/targets/allHidden/noMain.html +13 -13
- package/validation/tests/targets/allHidden/noneDoc.html +15 -15
- package/validation/tests/targets/allHidden/noneMain.html +15 -15
- package/validation/tests/targets/allHidden/semiHidden.html +15 -15
- package/validation/tests/targets/allHidden/visHiddenMain.html +15 -15
- package/validation/tests/targets/bulk/bad.html +48 -48
- package/validation/tests/targets/bulk/good.html +15 -15
- package/validation/tests/targets/docType/bad.html +14 -14
- package/validation/tests/targets/docType/good.html +15 -15
- package/validation/tests/targets/elements/index.html +40 -40
- package/validation/tests/targets/embAc/bad.html +21 -21
- package/validation/tests/targets/embAc/good.html +15 -15
- package/validation/tests/targets/filter/bad.html +27 -27
- package/validation/tests/targets/filter/good.html +19 -19
- package/validation/tests/targets/focAll/good.html +15 -15
- package/validation/tests/targets/focAll/less.html +15 -15
- package/validation/tests/targets/focAll/more.html +16 -16
- package/validation/tests/targets/focInd/bad.html +66 -66
- package/validation/tests/targets/focInd/good.html +22 -22
- package/validation/tests/targets/focOp/bad.html +18 -18
- package/validation/tests/targets/focOp/good.html +15 -15
- package/validation/tests/targets/focVis/index.html +23 -23
- package/validation/tests/targets/hover/bad.html +25 -25
- package/validation/tests/targets/hover/good.html +20 -20
- package/validation/tests/targets/hover/large.html +27 -27
- package/validation/tests/targets/hover/styleBad.html +35 -35
- package/validation/tests/targets/labClash/bad.html +24 -24
- package/validation/tests/targets/labClash/good.html +22 -22
- package/validation/tests/targets/linkTo/index.html +15 -15
- package/validation/tests/targets/linkUl/bad.html +35 -35
- package/validation/tests/targets/linkUl/good.html +30 -30
- package/validation/tests/targets/linkUl/na.html +20 -20
- package/validation/tests/targets/menuNav/bad.html +106 -106
- package/validation/tests/targets/menuNav/bad.js +348 -348
- package/validation/tests/targets/menuNav/good.html +106 -106
- package/validation/tests/targets/menuNav/good.js +365 -365
- package/validation/tests/targets/menuNav/style.css +22 -22
- package/validation/tests/targets/miniText/index.html +33 -33
- package/validation/tests/targets/motion/bad.css +15 -15
- package/validation/tests/targets/motion/bad.html +16 -16
- package/validation/tests/targets/motion/good.html +15 -15
- package/validation/tests/targets/nonTable/index.html +65 -65
- package/validation/tests/targets/radioSet/bad.html +34 -34
- package/validation/tests/targets/radioSet/good.html +27 -27
- package/validation/tests/targets/role/bad.html +48 -48
- package/validation/tests/targets/role/good.html +22 -22
- package/validation/tests/targets/styleDiff/bad.html +35 -35
- package/validation/tests/targets/styleDiff/good.html +36 -36
- package/validation/tests/targets/tabNav/bad.html +51 -51
- package/validation/tests/targets/tabNav/bad.js +35 -35
- package/validation/tests/targets/tabNav/good.html +53 -53
- package/validation/tests/targets/tabNav/good.js +83 -83
- package/validation/tests/targets/tabNav/goodMoz.js +205 -205
- package/validation/tests/targets/tabNav/style.css +34 -34
- package/validation/tests/targets/textNodes/index.html +40 -40
- package/validation/tests/targets/title/bad.html +14 -14
- package/validation/tests/targets/title/good.html +15 -15
- package/validation/tests/targets/titledEl/index.html +17 -17
- package/validation/tests/targets/zIndex/bad.html +17 -17
- package/validation/tests/targets/zIndex/good.html +15 -15
- package/validation/validateTest.js +44 -44
- package/validation/watch/done/README.md +3 -3
- package/validation/watch/todo/README.md +3 -3
- package/watch.js +1 -1
package/.eslintrc.json
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"browser": true,
|
|
4
|
-
"commonjs": true,
|
|
5
|
-
"es2021": true,
|
|
6
|
-
"node": true
|
|
7
|
-
},
|
|
8
|
-
"extends": "eslint:recommended",
|
|
9
|
-
"parserOptions": {
|
|
10
|
-
"ecmaVersion": 2021
|
|
11
|
-
},
|
|
12
|
-
"rules": {
|
|
13
|
-
"indent": [
|
|
14
|
-
"error",
|
|
15
|
-
2,
|
|
16
|
-
{
|
|
17
|
-
"MemberExpression": 0,
|
|
18
|
-
"ObjectExpression": "first"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"linebreak-style": [
|
|
22
|
-
"error",
|
|
23
|
-
"unix"
|
|
24
|
-
],
|
|
25
|
-
"quotes": [
|
|
26
|
-
"error",
|
|
27
|
-
"single"
|
|
28
|
-
],
|
|
29
|
-
"semi": [
|
|
30
|
-
"error",
|
|
31
|
-
"always"
|
|
32
|
-
],
|
|
33
|
-
"no-use-before-define": [
|
|
34
|
-
"error"
|
|
35
|
-
],
|
|
36
|
-
"brace-style": [
|
|
37
|
-
"error",
|
|
38
|
-
"stroustrup"
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"env": {
|
|
3
|
+
"browser": true,
|
|
4
|
+
"commonjs": true,
|
|
5
|
+
"es2021": true,
|
|
6
|
+
"node": true
|
|
7
|
+
},
|
|
8
|
+
"extends": "eslint:recommended",
|
|
9
|
+
"parserOptions": {
|
|
10
|
+
"ecmaVersion": 2021
|
|
11
|
+
},
|
|
12
|
+
"rules": {
|
|
13
|
+
"indent": [
|
|
14
|
+
"error",
|
|
15
|
+
2,
|
|
16
|
+
{
|
|
17
|
+
"MemberExpression": 0,
|
|
18
|
+
"ObjectExpression": "first"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"linebreak-style": [
|
|
22
|
+
"error",
|
|
23
|
+
"unix"
|
|
24
|
+
],
|
|
25
|
+
"quotes": [
|
|
26
|
+
"error",
|
|
27
|
+
"single"
|
|
28
|
+
],
|
|
29
|
+
"semi": [
|
|
30
|
+
"error",
|
|
31
|
+
"always"
|
|
32
|
+
],
|
|
33
|
+
"no-use-before-define": [
|
|
34
|
+
"error"
|
|
35
|
+
],
|
|
36
|
+
"brace-style": [
|
|
37
|
+
"error",
|
|
38
|
+
"stroustrup"
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
}
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2021 Jonathan Pool
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Jonathan Pool
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -329,6 +329,25 @@ Level Access on 22 August 2022 granted authorization for the copying of the `Acc
|
|
|
329
329
|
|
|
330
330
|
The `ibm` packaged test requires the `aceconfig.js` file.
|
|
331
331
|
|
|
332
|
+
As of 2 March 2023 (version 3.1.45 of `accessibility-checker`), the `ibm` packaged test threw errors when hosted under the Windows operating system. To prevent these errors, it was possible to edit two files in the package as follows:
|
|
333
|
+
|
|
334
|
+
In `node_modules/accessibility-checker/lib/ACEngineManager.js`, remove or comment out these lines starting on line 169:
|
|
335
|
+
|
|
336
|
+
```javaScript
|
|
337
|
+
if (nodePath.charAt(0) !== '/') {
|
|
338
|
+
nodePath = "../../" + nodePath;
|
|
339
|
+
}
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
In `node_modules/accessibility-checker/lib/reporters/ACReporterJSON.js`, add these lines starting on line 106, immediately before the line `var resultsFileName = pathLib.join(resultDir, results.label + '.json');`:
|
|
343
|
+
|
|
344
|
+
```javaScript
|
|
345
|
+
// Replace the colons in the label with hyphen-minuses.
|
|
346
|
+
results.label = results.label.replace(/:/g, '-');
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
These changes were proposed as pull requests 1333 and 1334 (https://github.com/IBMa/equal-access/pulls).
|
|
350
|
+
|
|
332
351
|
If you choose to invoke this packaged test with the `withNewContent` property specified, you will choose whether the tested content is the content of the existing page or is retrieved anew with the document URL. Typically, both methods succeed and deliver similar results. However, sometimes one method succeeds and the other fails, or one method reports more violations than the other does. In those cases, most often the success, or the larger violation count, arises from the existing page (`withNewContent: false`).
|
|
333
352
|
|
|
334
353
|
###### HTML CodeSniffer
|