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.
Files changed (161) hide show
  1. package/.eslintrc.json +41 -41
  2. package/LICENSE +21 -21
  3. package/README.md +19 -0
  4. package/aceconfig.js +3 -1
  5. package/actSpecs.js +358 -358
  6. package/call.js +85 -85
  7. package/continuum/AccessEngine.community.js +791 -791
  8. package/continuum/Continuum.community.js +2697 -2697
  9. package/continuum/continuum.conf.js +19 -19
  10. package/data/roles.txt +62 -62
  11. package/htmlcs/.eslintrc.json +67 -67
  12. package/htmlcs/HTMLCS.js +8204 -8204
  13. package/htmlcs/licence.txt +24 -24
  14. package/package.json +1 -1
  15. package/procs/allText.js +76 -76
  16. package/procs/allVis.js +17 -17
  17. package/procs/linksByType.js +54 -54
  18. package/procs/textOf.txt +73 -73
  19. package/procs/wavedoc.json +1617 -1617
  20. package/run.js +1548 -1548
  21. package/samples/00000-ts18-example.json +231 -231
  22. package/tests/alfa.js +138 -138
  23. package/tests/allHidden.js +49 -49
  24. package/tests/attVal.js +48 -48
  25. package/tests/axe.js +118 -118
  26. package/tests/bulk.js +22 -22
  27. package/tests/continuum.js +71 -71
  28. package/tests/docType.js +14 -14
  29. package/tests/elements.js +159 -159
  30. package/tests/embAc.js +36 -36
  31. package/tests/filter.js +47 -47
  32. package/tests/focAll.js +57 -57
  33. package/tests/focInd.js +167 -167
  34. package/tests/focOp.js +138 -138
  35. package/tests/focVis.js +29 -29
  36. package/tests/hover.js +381 -381
  37. package/tests/htmlcs.js +90 -90
  38. package/tests/ibm.js +3 -10
  39. package/tests/labClash.js +159 -159
  40. package/tests/linkTo.js +25 -25
  41. package/tests/linkUl.js +68 -68
  42. package/tests/menuNav.js +264 -264
  43. package/tests/miniText.js +48 -48
  44. package/tests/motion.js +125 -125
  45. package/tests/nonTable.js +67 -67
  46. package/tests/nuVal.js +92 -92
  47. package/tests/radioSet.js +97 -97
  48. package/tests/role.js +483 -483
  49. package/tests/styleDiff.js +153 -153
  50. package/tests/tabNav.js +328 -328
  51. package/tests/tenon.js +130 -130
  52. package/tests/textNodes.js +140 -140
  53. package/tests/title.js +11 -11
  54. package/tests/titledEl.js +31 -31
  55. package/tests/wave.js +59 -59
  56. package/tests/zIndex.js +49 -49
  57. package/validation/done/README.md +3 -3
  58. package/validation/executors/run.js +40 -40
  59. package/validation/executors/test.js +7 -7
  60. package/validation/executors/tests.js +22 -22
  61. package/validation/executors/watchDir.js +28 -28
  62. package/validation/executors/watchNet.js +117 -117
  63. package/validation/jobs/done/README.md +3 -3
  64. package/validation/jobs/todo/00000-simple-example.json +35 -35
  65. package/validation/jobs/todo/README.md +3 -3
  66. package/validation/tests/jobs/allHidden.json +314 -314
  67. package/validation/tests/jobs/bulk.json +48 -48
  68. package/validation/tests/jobs/docType.json +46 -46
  69. package/validation/tests/jobs/elements.json +140 -140
  70. package/validation/tests/jobs/embAc.json +54 -54
  71. package/validation/tests/jobs/filter.json +55 -55
  72. package/validation/tests/jobs/focAll.json +68 -68
  73. package/validation/tests/jobs/focInd.json +69 -69
  74. package/validation/tests/jobs/focOp.json +62 -62
  75. package/validation/tests/jobs/focVis.json +35 -35
  76. package/validation/tests/jobs/hover.json +118 -118
  77. package/validation/tests/jobs/labClash.json +52 -52
  78. package/validation/tests/jobs/linkTo.json +35 -35
  79. package/validation/tests/jobs/linkUl.json +71 -71
  80. package/validation/tests/jobs/menuNav.json +106 -106
  81. package/validation/tests/jobs/miniText.json +36 -36
  82. package/validation/tests/jobs/motion.json +62 -62
  83. package/validation/tests/jobs/nonTable.json +37 -37
  84. package/validation/tests/jobs/radioSet.json +52 -52
  85. package/validation/tests/jobs/role.json +60 -60
  86. package/validation/tests/jobs/styleDiff.json +71 -71
  87. package/validation/tests/jobs/tabNav.json +106 -106
  88. package/validation/tests/jobs/textNodes.json +98 -98
  89. package/validation/tests/jobs/title.json +46 -46
  90. package/validation/tests/jobs/titledEl.json +37 -37
  91. package/validation/tests/jobs/zIndex.json +49 -49
  92. package/validation/tests/targets/allHidden/ariaHiddenMain.html +15 -15
  93. package/validation/tests/targets/allHidden/good.html +15 -15
  94. package/validation/tests/targets/allHidden/hiddenMain.html +16 -16
  95. package/validation/tests/targets/allHidden/mixedHidden0.html +16 -16
  96. package/validation/tests/targets/allHidden/mixedHidden1.html +16 -16
  97. package/validation/tests/targets/allHidden/noBody.html +11 -11
  98. package/validation/tests/targets/allHidden/noMain.html +13 -13
  99. package/validation/tests/targets/allHidden/noneDoc.html +15 -15
  100. package/validation/tests/targets/allHidden/noneMain.html +15 -15
  101. package/validation/tests/targets/allHidden/semiHidden.html +15 -15
  102. package/validation/tests/targets/allHidden/visHiddenMain.html +15 -15
  103. package/validation/tests/targets/bulk/bad.html +48 -48
  104. package/validation/tests/targets/bulk/good.html +15 -15
  105. package/validation/tests/targets/docType/bad.html +14 -14
  106. package/validation/tests/targets/docType/good.html +15 -15
  107. package/validation/tests/targets/elements/index.html +40 -40
  108. package/validation/tests/targets/embAc/bad.html +21 -21
  109. package/validation/tests/targets/embAc/good.html +15 -15
  110. package/validation/tests/targets/filter/bad.html +27 -27
  111. package/validation/tests/targets/filter/good.html +19 -19
  112. package/validation/tests/targets/focAll/good.html +15 -15
  113. package/validation/tests/targets/focAll/less.html +15 -15
  114. package/validation/tests/targets/focAll/more.html +16 -16
  115. package/validation/tests/targets/focInd/bad.html +66 -66
  116. package/validation/tests/targets/focInd/good.html +22 -22
  117. package/validation/tests/targets/focOp/bad.html +18 -18
  118. package/validation/tests/targets/focOp/good.html +15 -15
  119. package/validation/tests/targets/focVis/index.html +23 -23
  120. package/validation/tests/targets/hover/bad.html +25 -25
  121. package/validation/tests/targets/hover/good.html +20 -20
  122. package/validation/tests/targets/hover/large.html +27 -27
  123. package/validation/tests/targets/hover/styleBad.html +35 -35
  124. package/validation/tests/targets/labClash/bad.html +24 -24
  125. package/validation/tests/targets/labClash/good.html +22 -22
  126. package/validation/tests/targets/linkTo/index.html +15 -15
  127. package/validation/tests/targets/linkUl/bad.html +35 -35
  128. package/validation/tests/targets/linkUl/good.html +30 -30
  129. package/validation/tests/targets/linkUl/na.html +20 -20
  130. package/validation/tests/targets/menuNav/bad.html +106 -106
  131. package/validation/tests/targets/menuNav/bad.js +348 -348
  132. package/validation/tests/targets/menuNav/good.html +106 -106
  133. package/validation/tests/targets/menuNav/good.js +365 -365
  134. package/validation/tests/targets/menuNav/style.css +22 -22
  135. package/validation/tests/targets/miniText/index.html +33 -33
  136. package/validation/tests/targets/motion/bad.css +15 -15
  137. package/validation/tests/targets/motion/bad.html +16 -16
  138. package/validation/tests/targets/motion/good.html +15 -15
  139. package/validation/tests/targets/nonTable/index.html +65 -65
  140. package/validation/tests/targets/radioSet/bad.html +34 -34
  141. package/validation/tests/targets/radioSet/good.html +27 -27
  142. package/validation/tests/targets/role/bad.html +48 -48
  143. package/validation/tests/targets/role/good.html +22 -22
  144. package/validation/tests/targets/styleDiff/bad.html +35 -35
  145. package/validation/tests/targets/styleDiff/good.html +36 -36
  146. package/validation/tests/targets/tabNav/bad.html +51 -51
  147. package/validation/tests/targets/tabNav/bad.js +35 -35
  148. package/validation/tests/targets/tabNav/good.html +53 -53
  149. package/validation/tests/targets/tabNav/good.js +83 -83
  150. package/validation/tests/targets/tabNav/goodMoz.js +205 -205
  151. package/validation/tests/targets/tabNav/style.css +34 -34
  152. package/validation/tests/targets/textNodes/index.html +40 -40
  153. package/validation/tests/targets/title/bad.html +14 -14
  154. package/validation/tests/targets/title/good.html +15 -15
  155. package/validation/tests/targets/titledEl/index.html +17 -17
  156. package/validation/tests/targets/zIndex/bad.html +17 -17
  157. package/validation/tests/targets/zIndex/good.html +15 -15
  158. package/validation/validateTest.js +44 -44
  159. package/validation/watch/done/README.md +3 -3
  160. package/validation/watch/todo/README.md +3 -3
  161. 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
package/aceconfig.js CHANGED
@@ -2,5 +2,7 @@ module.exports = {
2
2
  reportLevels: [
3
3
  'violation',
4
4
  'recommendation'
5
- ]
5
+ ],
6
+ cacheFolder: `${__dirname}/temp`,
7
+ outputFolder: `${__dirname}/ibmOutput`
6
8
  };