testaro 28.1.0 → 28.1.2

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": "28.1.0",
3
+ "version": "28.1.2",
4
4
  "description": "Run 760 web accessibility tests from 9 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -52,6 +52,66 @@ 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']
64
+ ],
65
+ 'label-implicitly-associated': [
66
+ ['only whice spaces', 'label-implicitly-associatedW'],
67
+ ['more than one', 'label-implicitly-associatedM']
68
+ ],
69
+ 'label-inappropriate-association': [
70
+ ['Missing', 'label-inappropriate-associationM'],
71
+ ['non-form', 'label-inappropriate-associationN']
72
+ ],
73
+ 'table-row-and-column-headers': [
74
+ ['headers', 'table-row-and-column-headersRC'],
75
+ ['Content', 'table-row-and-column-headersB'],
76
+ ['head of the columns', 'table-row-and-column-headersH']
77
+ ],
78
+ 'color-contrast-state-pseudo-classes-abstract': [
79
+ ['position: fixed', 'color-contrast-state-pseudo-classes-abstractF'],
80
+ ['transparent', 'color-contrast-state-pseudo-classes-abstractB'],
81
+ ['least 3:1', 'color-contrast-state-pseudo-classes-abstract3'],
82
+ ['least 4.5:1', 'color-contrast-state-pseudo-classes-abstract4']
83
+ ],
84
+ 'color-contrast-state-pseudo-classes-active': [
85
+ ['position: fixed', 'color-contrast-state-pseudo-classes-abstractF'],
86
+ ['transparent', 'color-contrast-state-pseudo-classes-abstractB'],
87
+ ['least 3:1', 'color-contrast-state-pseudo-classes-abstract3'],
88
+ ['least 4.5:1', 'color-contrast-state-pseudo-classes-abstract4']
89
+ ],
90
+ 'color-contrast-state-pseudo-classes-focus': [
91
+ ['position: fixed', 'color-contrast-state-pseudo-classes-abstractF'],
92
+ ['transparent', 'color-contrast-state-pseudo-classes-abstractB'],
93
+ ['least 3:1', 'color-contrast-state-pseudo-classes-abstract3'],
94
+ ['least 4.5:1', 'color-contrast-state-pseudo-classes-abstract4']
95
+ ],
96
+ 'color-contrast-state-pseudo-classes-hover': [
97
+ ['position: fixed', 'color-contrast-state-pseudo-classes-abstractF'],
98
+ ['transparent', 'color-contrast-state-pseudo-classes-abstractB'],
99
+ ['least 3:1', 'color-contrast-state-pseudo-classes-abstract3'],
100
+ ['least 4.5:1', 'color-contrast-state-pseudo-classes-abstract4']
101
+ ],
102
+ 'color-contrast-aaa': [
103
+ ['transparent', 'color-contrast-aaaB'],
104
+ ['least 4.5:1', 'color-contrast-aaa4'],
105
+ ['least 7:1', 'color-contrast-aaa7']
106
+ ],
107
+ 'animation': [
108
+ ['duration', 'animationD'],
109
+ ['iteration', 'animationI'],
110
+ ['mechanism', 'animationM']
111
+ ],
112
+ 'page-title': [
113
+ ['empty', 'page-titleN'],
114
+ ['not identify', 'page-titleU']
55
115
  ]
56
116
  };
57
117
  // Converts issue instances at an axe certainty level.
@@ -295,7 +355,9 @@ const convert = (toolName, result, standardResult) => {
295
355
  : '';
296
356
  const ruleData = aslintData[ruleID];
297
357
  if (ruleData) {
298
- const changer = ruleData.find(pair => what.includes(pair[0]));
358
+ const changer = ruleData.find(
359
+ specs => specs.slice(0, -1).every(matcher => what.includes(matcher))
360
+ );
299
361
  if (changer) {
300
362
  ruleID = changer[1];
301
363
  }