testilo 19.1.3 → 19.1.5
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
|
@@ -31,31 +31,13 @@
|
|
|
31
31
|
</header>
|
|
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
|
-
<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 960 rules, which are classified here into about
|
|
35
|
-
<
|
|
36
|
-
<
|
|
37
|
-
<table class="allBorder secondCellRight">
|
|
38
|
-
<caption>Score summary</caption>
|
|
39
|
-
<thead>
|
|
40
|
-
<tr><th>Component</th><th>Score</th><th>Description</th></tr>
|
|
41
|
-
</thead>
|
|
42
|
-
<tbody class="headersLeft">
|
|
43
|
-
<tr><th>issue</th><td>__issue__</td><td>Severity and number of reported defects</td></tr>
|
|
44
|
-
<tr><th>tool</th><td>__tool__</td><td>Tool-by-tool defect ratings</td></tr>
|
|
45
|
-
<tr><th>prevention</th><td>__prevention__</td><td>Failed attempts by tools to test the page</td></tr>
|
|
46
|
-
<tr><th>log</th><td>__log__</td><td>Browser warnings about the page</td></tr>
|
|
47
|
-
<tr><th>latency</th><td>__latency__</td><td>Abnormal delay in page responses</td></tr>
|
|
48
|
-
</tbody>
|
|
49
|
-
<tfoot>
|
|
50
|
-
<tr><th>total</th><td>__total__</td><td>Sum of the component scores</td></tr>
|
|
51
|
-
</tfoot>
|
|
52
|
-
</table>
|
|
53
|
-
<h2>Issue scores</h2>
|
|
54
|
-
<p>The score on an issue depends on the <dfn>severity</dfn> (user impact and certainty) of the issue and on how many instances were reported (by one or more tools).</p>
|
|
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 960 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>
|
|
36
|
+
<h2>Issue summary</h2>
|
|
55
37
|
<table class="allBorder thirdCellRight">
|
|
56
38
|
<caption>Summary of issues</caption>
|
|
57
39
|
<thead>
|
|
58
|
-
<tr><th>Issue</th><th>WCAG</th><th>Score</th><th>Tools
|
|
40
|
+
<tr><th>Issue</th><th>WCAG</th><th>Score</th><th>Tools reporting the issue</th></tr>
|
|
59
41
|
</thead>
|
|
60
42
|
<tbody class="headersLeft">
|
|
61
43
|
__issueRows__
|
package/procs/score/tsp37.js
CHANGED
|
@@ -95,7 +95,7 @@ exports.scorer = report => {
|
|
|
95
95
|
// Add this to the score.
|
|
96
96
|
details.prevention[which] = preventionWeight;
|
|
97
97
|
}
|
|
98
|
-
// Otherwise, if a
|
|
98
|
+
// Otherwise, if a valid standard result exists:
|
|
99
99
|
else if (
|
|
100
100
|
standardResult
|
|
101
101
|
&& standardResult.totals
|
|
@@ -125,6 +125,7 @@ exports.scorer = report => {
|
|
|
125
125
|
// Add the instance to the issue details of the score data.
|
|
126
126
|
if (! details.issue[issueName]) {
|
|
127
127
|
details.issue[issueName] = {
|
|
128
|
+
summary: issues[issueName].summary,
|
|
128
129
|
score: 0,
|
|
129
130
|
maxCount: 0,
|
|
130
131
|
weight: issues[issueName].weight,
|