testaro 28.0.2 → 28.0.4
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/LICENSE +1 -1
- package/package.json +2 -2
- package/procs/standardize.js +11 -0
package/LICENSE
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "testaro",
|
|
3
|
-
"version": "28.0.
|
|
4
|
-
"description": "Run
|
|
3
|
+
"version": "28.0.4",
|
|
4
|
+
"description": "Run 760 web accessibility tests from 9 tools and get a standardized report",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"tests": "node validation/executors/tests",
|
package/procs/standardize.js
CHANGED
|
@@ -272,6 +272,17 @@ const convert = (toolName, result, standardResult) => {
|
|
|
272
272
|
if (ruleID === 'misused-required-attribute' && what.includes('not needed')) {
|
|
273
273
|
ruleID = 'misused-required-attributeR';
|
|
274
274
|
}
|
|
275
|
+
else if (ruleID === 'accessible-svg') {
|
|
276
|
+
if (what.includes('associated')) {
|
|
277
|
+
ruleID = 'accessible-svgI';
|
|
278
|
+
}
|
|
279
|
+
else if (what.includes('tabindex')) {
|
|
280
|
+
ruleID = 'accessible-svgT';
|
|
281
|
+
}
|
|
282
|
+
else {
|
|
283
|
+
ruleID = 'accessible-svgN';
|
|
284
|
+
}
|
|
285
|
+
}
|
|
275
286
|
const {issueType} = result.rules[ruleID];
|
|
276
287
|
const xpath = ruleResult.element && ruleResult.element.xpath || '';
|
|
277
288
|
const tagName = xpath && xpath.replace(/^.*\//, '').replace(/[^-\w].*$/, '').toUpperCase()
|