testaro 28.0.0 → 28.0.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/README.md CHANGED
@@ -284,6 +284,8 @@ If a tool has the option to be used without itemization and is being so used, th
284
284
  This standard format reflects some judgments. For example:
285
285
  - The `ordinalSeverity` property of an instance may have required interpretation. Tools may report severity, certainty, priority, or some combination of those. They may use ordinal or metric quantifications. If they quantify ordinally, their scales may have more or fewer than 4 ranks. Testaro coerces each tool’s severity, certainty, and/or priority classification into a 4-rank ordinal classification. This classification is deemed to express the most common pattern among the tools.
286
286
  - The `tagName` property of an instance may not always be obvious, because in some cases the rule being tested for requires a relationship among more than one element (e.g., “An X element may not have a Y element as its parent”).
287
+ - The `ruleID` property of an instance is a matching rule if the tool issues a message but no rule identifier for each instance. The `nuVal` tool does this. In this case, Testaro is classifying the messages into rules.
288
+ - The `ruleID` property of an instance may reclassify tool rules. For example, if a tool rule covers multiple situations that are dissimilar (such as having dissimilar user impacts), that rule may be split into multiple rules with distinct `ruleID` properties.
287
289
 
288
290
  You are not dependent on the judgments incorporated into the standard format, because Testaro can give you the original reports from the tools.
289
291
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "28.0.0",
3
+ "version": "28.0.2",
4
4
  "description": "Run 650 web accessibility tests from 8 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/procs/aslint.js CHANGED
@@ -9,14 +9,13 @@ const options = {
9
9
  reportFormat: {JSON: true},
10
10
  watchDomChanges: false
11
11
  };
12
- const bundleEl = document.getElementById('aslintBundle');
13
12
  window
14
13
  .aslint
15
14
  .config(options)
16
15
  .addListener('onValidatorStarted', function () {
17
16
  console.log('@ Validator started');
18
17
  })
19
- .addListener('onValidatorComplete', function (error, report) {
18
+ .addListener('onValidatorComplete', function () {
20
19
  console.log('@ Validator Complete');
21
20
  })
22
21
  .addFilter('onBeforeRuleReport', function (report) {
@@ -42,7 +41,7 @@ window
42
41
  .html
43
42
  .replace(/&lt;/g, '<')
44
43
  .replace(/&gt;/g, '>')
45
- .replace(/&quot;/g, '\"')
44
+ .replace(/&quot;/g, '"')
46
45
  .replace(/&#x3D;/g, '=')
47
46
  .replace(/&#x2F;/g, '/')
48
47
  .replace(/&#39;/g, '\'')
@@ -55,7 +54,7 @@ window
55
54
  .description
56
55
  .replace(/&lt;/g, '<')
57
56
  .replace(/&gt;/g, '>')
58
- .replace(/&quot;/g, '\"')
57
+ .replace(/&quot;/g, '"')
59
58
  .replace(/&#x3D;/g, '=')
60
59
  .replace(/&#x2F;/g, '/')
61
60
  .replace(/&amp;(?:amp;)*/g, '&')
@@ -268,6 +268,10 @@ const convert = (toolName, result, standardResult) => {
268
268
  const ruleResults = result.rules[ruleID].results;
269
269
  if (ruleResults && ruleResults.length) {
270
270
  ruleResults.forEach(ruleResult => {
271
+ const what = ruleResult.message.actual.description;
272
+ if (ruleID === 'misused-required-attribute' && what.includes('not needed')) {
273
+ ruleID = 'misused-required-attributeR';
274
+ }
271
275
  const {issueType} = result.rules[ruleID];
272
276
  const xpath = ruleResult.element && ruleResult.element.xpath || '';
273
277
  const tagName = xpath && xpath.replace(/^.*\//, '').replace(/[^-\w].*$/, '').toUpperCase()
@@ -279,7 +283,7 @@ const convert = (toolName, result, standardResult) => {
279
283
  : '';
280
284
  const instance = {
281
285
  ruleID,
282
- what: ruleResult.message.actual.description,
286
+ what,
283
287
  ordinalSeverity: ['warning', 0, 0, 'error'].indexOf(issueType),
284
288
  tagName,
285
289
  id,