testaro 28.1.3 → 28.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/README.md CHANGED
@@ -57,7 +57,22 @@ Some of the tests of Testaro are designed to act as approximate alternatives to
57
57
 
58
58
  ## Rules
59
59
 
60
- Each tool accessed with Testaro defines _rules_ and tests _targets_ for compliance with its rules. In total, the nine tools define about 760 rules. Some of the tools are under active development, and their rule counts change over time.
60
+ Each tool accessed with Testaro defines _rules_ and tests _targets_ for compliance with its rules. In total, the nine tools define about 960 rules. The latest tabulation of tool rules is:
61
+
62
+ ```
63
+ alfa: 59
64
+ aslint: 133
65
+ axe: 80
66
+ htmlcs: 115
67
+ ibm: 132
68
+ nuVal: 215
69
+ qualWeb: 131
70
+ testaro: 36
71
+ wave: 58
72
+ total: 959
73
+ ```
74
+
75
+ Some of the tools are under active development, and their rule counts change over time.
61
76
 
62
77
  When you ask Testaro to run tests of a tool, you may specify a subset of the rules of that tool, and the report will give you the results of only the tests for those rules. These tools will perform only those tests:
63
78
  - `alfa`
package/dirWatch.js CHANGED
@@ -33,7 +33,7 @@ const reWatch = () => {
33
33
  }
34
34
  }
35
35
  if (code === 0) {
36
- console.log('Watcher exited successfully');
36
+ console.log('Watcher exited successfully\n');
37
37
  reWatch();
38
38
  }
39
39
  else {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "28.1.3",
4
- "description": "Run 760 web accessibility tests from 9 tools and get a standardized report",
3
+ "version": "28.1.5",
4
+ "description": "Run 960 web accessibility tests from 9 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "tests": "node validation/executors/tests",
package/run.js CHANGED
@@ -200,7 +200,7 @@ const isValidReport = report => {
200
200
  if (typeof timeLimit !== 'number' || timeLimit < 1) {
201
201
  return 'Bad report time limit';
202
202
  }
203
- if (! acts || ! Array.isArray(acts) || acts.length < 2) {
203
+ if (! acts || ! Array.isArray(acts) || ! acts.length) {
204
204
  return 'Bad report acts';
205
205
  }
206
206
  if (! acts.every(act => act.type && typeof act.type === 'string')) {
@@ -437,7 +437,7 @@ const addError = (act, error, message) => {
437
437
  };
438
438
  // Recursively performs the acts in a report.
439
439
  const doActs = async (report, actIndex, page) => {
440
- // Quits and reports the performance being aborted.
440
+ // Quits and reports the job being aborted.
441
441
  const abortActs = async () => {
442
442
  // Add data on the aborted act to the report.
443
443
  report.jobData.abortTime = nowString();
@@ -447,8 +447,6 @@ const doActs = async (report, actIndex, page) => {
447
447
  actIndex = -2;
448
448
  // Report this.
449
449
  console.log('ERROR: Job aborted');
450
- // Stop the action until the user resumes it.
451
- await page.pause();
452
450
  };
453
451
  process.on('message', message => {
454
452
  if (message === 'interrupt') {