testilo 17.1.1 → 17.2.0
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 +3 -1
- package/batch.js +2 -5
- package/merge.js +7 -4
- package/package.json +1 -1
- package/procs/score/tic36 copy.js +8184 -0
- package/procs/score/tic36.js +162 -131
- package/procs/score/tsp36.js +278 -0
- package/script.js +1 -1
- package/scripts/ts36.json +56 -0
package/README.md
CHANGED
|
@@ -344,7 +344,9 @@ This is a valid Testaro job.
|
|
|
344
344
|
|
|
345
345
|
If, however, you requested a merger **with** isolation, then Testilo would take cognizance of the fact that an `axe` test act is a target-modifying act. Testilo would therefore act as if another instance of the placeholder had been located in the script after the `axe` test act. So, copies of the same 6 acts that precede the `axe` test act would be inserted **after** the `axe` test act, too.
|
|
346
346
|
|
|
347
|
-
Of the
|
|
347
|
+
Of the 9 tools providing tests for Testaro, 6 are target-modifying:
|
|
348
|
+
- `alfa`
|
|
349
|
+
- `aslint`
|
|
348
350
|
- `axe`
|
|
349
351
|
- `htmlcs`
|
|
350
352
|
- `ibm`
|
package/batch.js
CHANGED
package/merge.js
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
Arguments:
|
|
5
5
|
0. script
|
|
6
6
|
1. batch
|
|
7
|
-
2.
|
|
7
|
+
2. requester
|
|
8
|
+
3. whether to provide test isolation (no if omitted)
|
|
8
9
|
*/
|
|
9
10
|
|
|
10
11
|
// ########## IMPORTS
|
|
@@ -17,9 +18,12 @@ require('dotenv').config();
|
|
|
17
18
|
const stdRequester = process.env.REQUESTER;
|
|
18
19
|
// Tools that alter the page.
|
|
19
20
|
const contaminantNames = new Set([
|
|
21
|
+
'alfa',
|
|
22
|
+
'aslint',
|
|
20
23
|
'axe',
|
|
21
24
|
'htmlcs',
|
|
22
|
-
'ibm'
|
|
25
|
+
'ibm',
|
|
26
|
+
'testaro'
|
|
23
27
|
]);
|
|
24
28
|
|
|
25
29
|
// ########## FUNCTIONS
|
|
@@ -70,8 +74,7 @@ exports.merge = (script, batch, requester, isolate = false) => {
|
|
|
70
74
|
act.type === 'test'
|
|
71
75
|
&& contaminantNames.has(act.which)
|
|
72
76
|
&& actIndex < acts.length - 1
|
|
73
|
-
&& nextAct.type
|
|
74
|
-
&& (nextAct.type !== 'test')
|
|
77
|
+
&& (nextAct.type === 'test')
|
|
75
78
|
) {
|
|
76
79
|
acts[actIndex] = JSON.parse(JSON.stringify([act, lastPlaceholder]));
|
|
77
80
|
}
|