testilo 21.4.0 → 21.4.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testilo",
3
- "version": "21.4.0",
3
+ "version": "21.4.1",
4
4
  "description": "Prepares and processes Testaro reports",
5
5
  "main": "aim.js",
6
6
  "scripts": {
@@ -32,7 +32,7 @@
32
32
  <h2>Introduction</h2>
33
33
  <p>How <a href="https://www.w3.org/WAI/">accessible</a> is the __org__ web page at <a href="__url__"><code>__url__</code></a>?</p>
34
34
  <p>This digest can help answer that question. Nine different tools (Alfa, ASLint, Axe, Equal Access, HTML CodeSniffer, Nu Html Checker, QualWeb, Testaro, and WAVE) tested the page to check its compliance with their accessibility rules. In all, the tools define about 915 rules, which are classified here into about 300 accessibility issues.</p>
35
- <p>The results were interpreted to yield a score, with 0 being ideal. The score for this page was __total__, the sum of __issue__ for issues, __tool__ for tool-by-tool ratings, __prevention__ for the page preventing tools from running, __log__ for browser warnings, and __latency__ for delayed page responses.</p>
35
+ <p>The results were interpreted to yield a score, with 0 being ideal. The score for this page was __total__, the sum of __issueCount__ for the count of issues, __issue__ for specific issues, __tool__ for tool-by-tool ratings, __prevention__ for the page preventing tools from running, __log__ for browser warnings, and __latency__ for delayed page responses.</p>
36
36
  <h2>Issue summary</h2>
37
37
  <table class="allBorder thirdCellRight">
38
38
  <caption>Summary of issues</caption>
@@ -43,7 +43,7 @@ const populateQuery = (report, query) => {
43
43
  summaryRows: [],
44
44
  issueRows: []
45
45
  };
46
- ['total', 'issue', 'tool', 'prevention', 'log', 'latency'].forEach(sumItem => {
46
+ ['total', 'issueCount', 'issue', 'tool', 'prevention', 'log', 'latency'].forEach(sumItem => {
47
47
  query[sumItem] = summary[sumItem];
48
48
  rows.summaryRows.push(getScoreRow(sumItem, query[sumItem]));
49
49
  });
@@ -22,7 +22,7 @@ const preventionWeight = 300;
22
22
  // Maximum instance count addition weight (divisor of max).
23
23
  const maxWeight = 30;
24
24
  // Issue count weight.
25
- const issueCountWeight = 15;
25
+ const issueCountWeight = 10;
26
26
  // Other weights.
27
27
  const severityWeights = [1, 2, 3, 4];
28
28
  const toolWeight = 0.1;