testaro 28.1.0 → 28.1.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 +1 -1
- package/procs/standardize.js +12 -1
package/package.json
CHANGED
package/procs/standardize.js
CHANGED
|
@@ -52,6 +52,15 @@ const aslintData = {
|
|
|
52
52
|
['track', 'audio-alternativeT'],
|
|
53
53
|
['alternative', 'audio-alternativeA'],
|
|
54
54
|
['bgsound', 'audio-alternativeB']
|
|
55
|
+
],
|
|
56
|
+
'table-missing-description': [
|
|
57
|
+
['describedby', 'associated', 'table-missing-descriptionDM'],
|
|
58
|
+
['labeledby', 'associated', 'table-missing-descriptionLM'],
|
|
59
|
+
['caption', 'not been defined', 'table-missing-descriptionC'],
|
|
60
|
+
['summary', 'empty', 'table-missing-descriptionS'],
|
|
61
|
+
['describedby', 'empty', 'table-missing-descriptionDE'],
|
|
62
|
+
['labeledby', 'empty', 'table-missing-descriptionLE'],
|
|
63
|
+
['caption', 'no content', 'table-missing-descriptionE']
|
|
55
64
|
]
|
|
56
65
|
};
|
|
57
66
|
// Converts issue instances at an axe certainty level.
|
|
@@ -295,7 +304,9 @@ const convert = (toolName, result, standardResult) => {
|
|
|
295
304
|
: '';
|
|
296
305
|
const ruleData = aslintData[ruleID];
|
|
297
306
|
if (ruleData) {
|
|
298
|
-
const changer = ruleData.find(
|
|
307
|
+
const changer = ruleData.find(
|
|
308
|
+
specs => specs.slice(0, -1).every(matcher => what.includes(matcher))
|
|
309
|
+
);
|
|
299
310
|
if (changer) {
|
|
300
311
|
ruleID = changer[1];
|
|
301
312
|
}
|