testaro 30.0.8 → 32.0.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/CONTRIBUTING.md +26 -4
- package/LICENSE +1 -1
- package/README.md +24 -2
- package/aceconfig.js +27 -0
- package/actSpecs.js +28 -1
- package/call.js +22 -1
- package/data/template.js +22 -0
- package/dirWatch.js +22 -0
- package/package.json +1 -1
- package/procs/aslint.js +24 -0
- package/procs/getLocatorData.js +29 -1
- package/procs/getSource.js +30 -3
- package/procs/isInlineLink.js +23 -0
- package/procs/operable.js +23 -2
- package/procs/sample.js +22 -0
- package/procs/standardize.js +28 -7
- package/procs/tellServer.js +24 -2
- package/procs/testaro.js +26 -1
- package/procs/visChange.js +22 -0
- package/run.js +373 -83
- package/testaro/allCaps.js +22 -0
- package/testaro/allHidden.js +22 -0
- package/testaro/allSlanted.js +22 -0
- package/testaro/attVal.js +22 -0
- package/testaro/autocomplete.js +22 -0
- package/testaro/bulk.js +22 -0
- package/testaro/buttonMenu.js +22 -0
- package/testaro/distortion.js +22 -0
- package/testaro/docType.js +22 -0
- package/testaro/dupAtt.js +22 -0
- package/testaro/elements.js +22 -0
- package/testaro/embAc.js +22 -0
- package/testaro/filter.js +22 -0
- package/testaro/focAll.js +22 -0
- package/testaro/focInd.js +22 -0
- package/testaro/focOp.js +22 -0
- package/testaro/focVis.js +22 -0
- package/testaro/headEl.js +22 -0
- package/testaro/headingAmb.js +22 -0
- package/testaro/hovInd.js +21 -24
- package/testaro/hover.js +22 -0
- package/testaro/labClash.js +22 -0
- package/testaro/lineHeight.js +22 -0
- package/testaro/linkAmb.js +22 -0
- package/testaro/linkTitle.js +22 -0
- package/testaro/linkUl.js +22 -0
- package/testaro/miniText.js +22 -0
- package/testaro/motion.js +22 -0
- package/testaro/nonTable.js +22 -0
- package/testaro/opFoc.js +22 -0
- package/testaro/pseudoP.js +25 -3
- package/testaro/radioSet.js +22 -0
- package/testaro/role.js +22 -0
- package/testaro/styleDiff.js +80 -1
- package/testaro/tabNav.js +99 -2
- package/testaro/targetSize.js +22 -0
- package/testaro/textNodes.js +25 -3
- package/testaro/title.js +22 -0
- package/testaro/zIndex.js +22 -0
- package/tests/alfa.js +34 -12
- package/tests/aslint.js +55 -17
- package/tests/axe.js +35 -9
- package/tests/htmlcs.js +109 -78
- package/tests/ibm.js +111 -45
- package/tests/nuVal.js +39 -9
- package/tests/qualWeb.js +49 -25
- package/tests/testaro.js +50 -22
- package/tests/wave.js +36 -10
- package/validation/executors/run.js +26 -2
- package/validation/executors/test.js +27 -3
- package/validation/executors/tests.js +26 -2
- package/validation/executors/watchDir.js +26 -2
- package/validation/executors/watchNet.js +26 -2
- package/validation/jobs/todo/README.md +22 -0
- package/validation/tests/targets/adbID/index.html +21 -0
- package/validation/tests/targets/allCaps/index.html +21 -0
- package/validation/tests/targets/allHidden/ariaHiddenBody.html +21 -0
- package/validation/tests/targets/allHidden/good.html +21 -0
- package/validation/tests/targets/allHidden/hiddenMain.html +21 -0
- package/validation/tests/targets/allHidden/mixedHidden.html +22 -1
- package/validation/tests/targets/allHidden/noBody.html +21 -0
- package/validation/tests/targets/allHidden/noMain.html +21 -0
- package/validation/tests/targets/allHidden/noneDoc.html +21 -0
- package/validation/tests/targets/allHidden/visHiddenMain.html +21 -0
- package/validation/tests/targets/allSlanted/index.html +21 -0
- package/validation/tests/targets/altScheme/index.html +21 -0
- package/validation/tests/targets/attVal/bad.html +21 -0
- package/validation/tests/targets/attVal/good.html +21 -0
- package/validation/tests/targets/autocomplete/bad.html +21 -0
- package/validation/tests/targets/autocomplete/good.html +21 -0
- package/validation/tests/targets/bulk/bad.html +21 -0
- package/validation/tests/targets/bulk/good.html +21 -0
- package/validation/tests/targets/buttonMenu/bad.html +21 -0
- package/validation/tests/targets/buttonMenu/bad.js +27 -0
- package/validation/tests/targets/buttonMenu/good.html +21 -0
- package/validation/tests/targets/buttonMenu/good.js +27 -0
- package/validation/tests/targets/buttonMenu/style.css +27 -0
- package/validation/tests/targets/captionLoc/index.html +21 -0
- package/validation/tests/targets/datalistRef/index.html +21 -0
- package/validation/tests/targets/distortion/index.html +21 -0
- package/validation/tests/targets/docType/bad.html +21 -0
- package/validation/tests/targets/docType/good.html +21 -0
- package/validation/tests/targets/dupAtt/bad.html +21 -0
- package/validation/tests/targets/dupAtt/good.html +21 -0
- package/validation/tests/targets/elements/index.html +21 -0
- package/validation/tests/targets/embAc/bad.html +21 -0
- package/validation/tests/targets/embAc/good.html +21 -0
- package/validation/tests/targets/filter/bad.html +21 -0
- package/validation/tests/targets/filter/good.html +21 -0
- package/validation/tests/targets/focAll/good.html +21 -0
- package/validation/tests/targets/focAll/less.html +21 -0
- package/validation/tests/targets/focAll/more.html +21 -0
- package/validation/tests/targets/focInd/bad.html +21 -0
- package/validation/tests/targets/focInd/good.html +21 -0
- package/validation/tests/targets/focOp/bad.html +21 -0
- package/validation/tests/targets/focOp/good.html +21 -0
- package/validation/tests/targets/focVis/index.html +21 -0
- package/validation/tests/targets/headEl/index.html +21 -0
- package/validation/tests/targets/headingAmb/index.html +21 -0
- package/validation/tests/targets/hovInd/index.html +21 -0
- package/validation/tests/targets/hover/bad.html +21 -0
- package/validation/tests/targets/hover/good.html +21 -0
- package/validation/tests/targets/hr/index.html +21 -0
- package/validation/tests/targets/imageLink/index.html +21 -0
- package/validation/tests/targets/labClash/bad.html +21 -0
- package/validation/tests/targets/labClash/good.html +21 -0
- package/validation/tests/targets/legendLoc/index.html +21 -0
- package/validation/tests/targets/lineHeight/index.html +21 -0
- package/validation/tests/targets/linkAmb/index.html +21 -0
- package/validation/tests/targets/linkExt/index.html +21 -0
- package/validation/tests/targets/linkOldAtt/index.html +21 -0
- package/validation/tests/targets/linkTitle/index.html +21 -0
- package/validation/tests/targets/linkTo/index.html +21 -0
- package/validation/tests/targets/linkUl/bad.html +21 -0
- package/validation/tests/targets/linkUl/good.html +21 -0
- package/validation/tests/targets/linkUl/na.html +21 -0
- package/validation/tests/targets/miniText/index.html +21 -0
- package/validation/tests/targets/motion/bad.css +27 -0
- package/validation/tests/targets/motion/bad.html +21 -0
- package/validation/tests/targets/motion/good.html +21 -0
- package/validation/tests/targets/nonTable/index.html +21 -0
- package/validation/tests/targets/opFoc/bad.html +21 -0
- package/validation/tests/targets/opFoc/good.html +21 -0
- package/validation/tests/targets/optRoleSel/index.html +21 -0
- package/validation/tests/targets/phOnly/index.html +21 -0
- package/validation/tests/targets/pseudoP/index.html +21 -0
- package/validation/tests/targets/radioSet/bad.html +21 -0
- package/validation/tests/targets/radioSet/good.html +21 -0
- package/validation/tests/targets/role/bad.html +21 -0
- package/validation/tests/targets/role/good.html +21 -0
- package/validation/tests/targets/secHeading/index.html +21 -0
- package/validation/tests/targets/styleDiff/bad.html +21 -0
- package/validation/tests/targets/styleDiff/good.html +21 -0
- package/validation/tests/targets/tabNav/bad.html +21 -0
- package/validation/tests/targets/tabNav/bad.js +27 -0
- package/validation/tests/targets/tabNav/good.html +21 -0
- package/validation/tests/targets/tabNav/good.js +27 -0
- package/validation/tests/targets/tabNav/style.css +27 -0
- package/validation/tests/targets/targetSize/index.html +21 -0
- package/validation/tests/targets/textNodes/index.html +21 -0
- package/validation/tests/targets/textSem/index.html +21 -0
- package/validation/tests/targets/title/bad.html +21 -0
- package/validation/tests/targets/title/good.html +21 -0
- package/validation/tests/targets/titledEl/index.html +21 -0
- package/validation/tests/targets/zIndex/bad.html +21 -0
- package/validation/tests/targets/zIndex/good.html +21 -0
- package/validation/validateTest.js +39 -3
- package/validation/watch/done/README.md +23 -1
- package/validation/watch/todo/README.md +23 -1
- package/watch.js +32 -7
- package/call-old.js +0 -86
- package/procs/allText.js +0 -76
- package/procs/allVis.js +0 -17
- package/procs/getTextNodes.js +0 -39
- package/procs/linksByType.js +0 -54
- package/procs/nav.js +0 -259
- package/procs/textOf.txt +0 -73
- package/test copy.js +0 -38
- package/validation/tests/old/allCaps.json +0 -102
- package/validation/tests/old/allHidden.json +0 -314
- package/validation/tests/old/attVal.json +0 -60
- package/validation/tests/old/autocomplete.json +0 -51
- package/validation/tests/old/bulk.json +0 -48
- package/validation/tests/old/docType.json +0 -46
- package/validation/tests/old/dupAtt.json +0 -51
- package/validation/tests/old/elements.json +0 -140
- package/validation/tests/old/embAc.json +0 -54
- package/validation/tests/old/filter.json +0 -55
- package/validation/tests/old/focAll.json +0 -68
- package/validation/tests/old/focInd.json +0 -69
- package/validation/tests/old/focOp.json +0 -62
- package/validation/tests/old/focVis.json +0 -35
- package/validation/tests/old/hover.json +0 -118
- package/validation/tests/old/labClash.json +0 -52
- package/validation/tests/old/linkTo.json +0 -35
- package/validation/tests/old/linkUl.json +0 -71
- package/validation/tests/old/menuNav.json +0 -106
- package/validation/tests/old/miniText.json +0 -36
- package/validation/tests/old/motion.json +0 -62
- package/validation/tests/old/nonTable.json +0 -37
- package/validation/tests/old/radioSet.json +0 -52
- package/validation/tests/old/role.json +0 -60
- package/validation/tests/old/styleDiff.json +0 -71
- package/validation/tests/old/tabNav.json +0 -106
- package/validation/tests/old/temp.js +0 -28
- package/validation/tests/old/textNodes.json +0 -98
- package/validation/tests/old/title.json +0 -46
- package/validation/tests/old/titledEl.json +0 -37
- package/validation/tests/old/zIndex.json +0 -49
- package/validation/tests/targets/tabNav/goodMoz.js +0 -206
- package/watch-old.js +0 -275
- package/watch-temp.js +0 -45
package/procs/textOf.txt
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Returns the text associated with an element. Argument: element.
|
|
3
|
-
The content of this file can be used as the second argument in a Function constructor,
|
|
4
|
-
with 'element' being the first argument.
|
|
5
|
-
*/
|
|
6
|
-
// Identify the element, if specified, or else the focused element.
|
|
7
|
-
const el = element || document.activeElement;
|
|
8
|
-
// Initialize an array of its texts.
|
|
9
|
-
const texts = [];
|
|
10
|
-
// FUNCTION DEFINITION START
|
|
11
|
-
// Removes excess spacing from a string.
|
|
12
|
-
const debloat = text => text.trim().replace(/\s+/g, ' ');
|
|
13
|
-
// FUNCTION DEFINITION END
|
|
14
|
-
// Add any attribute label to the array.
|
|
15
|
-
const ariaLabel = el.getAttribute('aria-label');
|
|
16
|
-
if (ariaLabel) {
|
|
17
|
-
const trimmedLabel = debloat(ariaLabel);
|
|
18
|
-
if (trimmedLabel) {
|
|
19
|
-
texts.push(trimmedLabel);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
// Add any explicit and implicit labels to the array.
|
|
23
|
-
const labelNodeList = el.labels;
|
|
24
|
-
if (labelNodeList && labelNodeList.length) {
|
|
25
|
-
const labels = Array.from(labelNodeList);
|
|
26
|
-
const labelTexts = labels
|
|
27
|
-
.map(label => label.textContent && debloat(label.textContent))
|
|
28
|
-
.filter(text => text);
|
|
29
|
-
if (labelTexts.length) {
|
|
30
|
-
texts.push(...labelTexts);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
// Add any referenced labels to the array.
|
|
34
|
-
if (el.hasAttribute('aria-labelledby')) {
|
|
35
|
-
const labelerIDs = el.getAttribute('aria-labelledby').split(/\s+/);
|
|
36
|
-
labelerIDs.forEach(id => {
|
|
37
|
-
const labeler = document.getElementById(id);
|
|
38
|
-
if (labeler) {
|
|
39
|
-
const labelerText = debloat(labeler.textContent);
|
|
40
|
-
if (labelerText) {
|
|
41
|
-
texts.push(labelerText);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
// Add any image text alternatives to the array.
|
|
47
|
-
const altTexts = Array
|
|
48
|
-
.from(element.querySelectorAll('img[alt]:not([alt=""])'))
|
|
49
|
-
.map(img => debloat(img.alt))
|
|
50
|
-
.join('; ');
|
|
51
|
-
if (altTexts.length) {
|
|
52
|
-
texts.push(altTexts);
|
|
53
|
-
}
|
|
54
|
-
// Add any text content of the element to the array.
|
|
55
|
-
const ownText = element.textContent;
|
|
56
|
-
if (ownText) {
|
|
57
|
-
const minText = debloat(ownText);
|
|
58
|
-
if (minText) {
|
|
59
|
-
texts.push(minText);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
// Identify a concatenation of the texts.
|
|
63
|
-
let textChain = texts.join('; ');
|
|
64
|
-
// If it is empty:
|
|
65
|
-
if (! textChain) {
|
|
66
|
-
// Substitute the text content of its parent element, if any.
|
|
67
|
-
textChain = `{${debloat(element.parentElement.textContent)}}`;
|
|
68
|
-
if (textChain === '{}') {
|
|
69
|
-
textChain = '';
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
// Return a concatenation of the texts in the array.
|
|
73
|
-
return textChain;
|
package/test copy.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
watch.js
|
|
3
|
-
Module for watching for a job and running it when found.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
// ########## IMPORTS
|
|
7
|
-
|
|
8
|
-
const httpClient = require('http');
|
|
9
|
-
|
|
10
|
-
// ########## FUNCTIONS
|
|
11
|
-
|
|
12
|
-
// Waits.
|
|
13
|
-
const wait = ms => {
|
|
14
|
-
return new Promise(resolve => {
|
|
15
|
-
setTimeout(() => {
|
|
16
|
-
resolve('');
|
|
17
|
-
}, ms);
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
// Checks servers for a network job.
|
|
21
|
-
const checkNetJob = () => {
|
|
22
|
-
const request = httpClient.request('http://localhost:3008/testu', response => {
|
|
23
|
-
const chunks = [];
|
|
24
|
-
response.on('data', chunk => {
|
|
25
|
-
chunks.push(chunk);
|
|
26
|
-
})
|
|
27
|
-
// When response arrives:
|
|
28
|
-
.on('end', () => {
|
|
29
|
-
// Report it.
|
|
30
|
-
const content = chunks.join('');
|
|
31
|
-
console.log(content);
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
request.end();
|
|
35
|
-
};
|
|
36
|
-
exports.watch = () => {
|
|
37
|
-
checkNetJob();
|
|
38
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "allCaps",
|
|
3
|
-
"what": "validation of allCaps test",
|
|
4
|
-
"strict": true,
|
|
5
|
-
"timeLimit": 20,
|
|
6
|
-
"acts": [
|
|
7
|
-
{
|
|
8
|
-
"type": "launch",
|
|
9
|
-
"which": "chromium",
|
|
10
|
-
"what": "usual browser"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"type": "url",
|
|
14
|
-
"which": "__targets__/allCaps/index.html",
|
|
15
|
-
"what": "page with various letter cases"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"type": "test",
|
|
19
|
-
"which": "testaro",
|
|
20
|
-
"withItems": true,
|
|
21
|
-
"expect": [
|
|
22
|
-
[
|
|
23
|
-
"standardResult.totals.0",
|
|
24
|
-
"=",
|
|
25
|
-
3
|
|
26
|
-
],
|
|
27
|
-
[
|
|
28
|
-
"standardResult.totals.2",
|
|
29
|
-
"=",
|
|
30
|
-
0
|
|
31
|
-
],
|
|
32
|
-
[
|
|
33
|
-
"standardResult.instances.0.tagName",
|
|
34
|
-
"=",
|
|
35
|
-
"P"
|
|
36
|
-
],
|
|
37
|
-
[
|
|
38
|
-
"standardResult.instances.0.ordinalSeverity",
|
|
39
|
-
"=",
|
|
40
|
-
0
|
|
41
|
-
],
|
|
42
|
-
[
|
|
43
|
-
"standardResult.instances.1.tagName",
|
|
44
|
-
"=",
|
|
45
|
-
"SPAN"
|
|
46
|
-
],
|
|
47
|
-
[
|
|
48
|
-
"standardResult.instances.2.excerpt",
|
|
49
|
-
"i",
|
|
50
|
-
"ENTIRELY"
|
|
51
|
-
]
|
|
52
|
-
],
|
|
53
|
-
"rules": [
|
|
54
|
-
"y",
|
|
55
|
-
"allCaps"
|
|
56
|
-
]
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"type": "test",
|
|
60
|
-
"which": "testaro",
|
|
61
|
-
"withItems": false,
|
|
62
|
-
"expect": [
|
|
63
|
-
[
|
|
64
|
-
"standardResult.totals.0",
|
|
65
|
-
"=",
|
|
66
|
-
3
|
|
67
|
-
],
|
|
68
|
-
[
|
|
69
|
-
"standardResult.totals.1",
|
|
70
|
-
"=",
|
|
71
|
-
0
|
|
72
|
-
],
|
|
73
|
-
[
|
|
74
|
-
"standardResult.instances.0.ruleID",
|
|
75
|
-
"=",
|
|
76
|
-
"allCaps"
|
|
77
|
-
],
|
|
78
|
-
[
|
|
79
|
-
"standardResult.instances.0.ordinalSeverity",
|
|
80
|
-
"=",
|
|
81
|
-
0
|
|
82
|
-
],
|
|
83
|
-
[
|
|
84
|
-
"standardResult.instances.0.count",
|
|
85
|
-
"=",
|
|
86
|
-
3
|
|
87
|
-
]
|
|
88
|
-
],
|
|
89
|
-
"rules": [
|
|
90
|
-
"y",
|
|
91
|
-
"allCaps"
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
],
|
|
95
|
-
"sources": {
|
|
96
|
-
"script": "",
|
|
97
|
-
"host": {},
|
|
98
|
-
"requester": ""
|
|
99
|
-
},
|
|
100
|
-
"creationTime": "2013-05-28T12:00:00",
|
|
101
|
-
"timeStamp": "00000"
|
|
102
|
-
}
|
|
@@ -1,314 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "allHidden",
|
|
3
|
-
"what": "validation of allHidden test",
|
|
4
|
-
"strict": true,
|
|
5
|
-
"timeLimit": 20,
|
|
6
|
-
"acts": [
|
|
7
|
-
{
|
|
8
|
-
"type": "launch",
|
|
9
|
-
"which": "chromium",
|
|
10
|
-
"what": "usual browser"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"type": "url",
|
|
14
|
-
"which": "__targets__/allHidden/good.html",
|
|
15
|
-
"what": "page with nothing hidden"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"type": "test",
|
|
19
|
-
"which": "allHidden",
|
|
20
|
-
"what": "entirely or mainly hidden page",
|
|
21
|
-
"expect": [
|
|
22
|
-
["hidden.document", "=", false],
|
|
23
|
-
["hidden.body", "=", false],
|
|
24
|
-
["hidden.main", "=", false],
|
|
25
|
-
["reallyHidden.document", "=", false],
|
|
26
|
-
["reallyHidden.body", "=", false],
|
|
27
|
-
["reallyHidden.main", "=", false],
|
|
28
|
-
["display.document", "=", "block"],
|
|
29
|
-
["display.body", "=", "block"],
|
|
30
|
-
["display.main", "=", "block"],
|
|
31
|
-
["visHidden.document", "=", false],
|
|
32
|
-
["visHidden.body", "=", false],
|
|
33
|
-
["visHidden.main", "=", false],
|
|
34
|
-
["ariaHidden.document", "=", false],
|
|
35
|
-
["ariaHidden.body", "=", false],
|
|
36
|
-
["ariaHidden.main", "=", false]
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"type": "url",
|
|
41
|
-
"which": "__targets__/allHidden/noBody.html",
|
|
42
|
-
"what": "page with no body"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"type": "test",
|
|
46
|
-
"which": "allHidden",
|
|
47
|
-
"what": "entirely or mainly hidden page",
|
|
48
|
-
"expect": [
|
|
49
|
-
["hidden.document", "=", false],
|
|
50
|
-
["hidden.body", "=", false],
|
|
51
|
-
["hidden.main", "=", false],
|
|
52
|
-
["reallyHidden.document", "=", false],
|
|
53
|
-
["reallyHidden.body", "=", false],
|
|
54
|
-
["reallyHidden.main", "=", false],
|
|
55
|
-
["display.document", "=", "block"],
|
|
56
|
-
["visHidden.document", "=", false],
|
|
57
|
-
["visHidden.body", "=", false],
|
|
58
|
-
["visHidden.main", "=", false],
|
|
59
|
-
["ariaHidden.document", "=", false],
|
|
60
|
-
["ariaHidden.body", "=", false],
|
|
61
|
-
["ariaHidden.main", "=", false]
|
|
62
|
-
]
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"type": "url",
|
|
66
|
-
"which": "__targets__/allHidden/noMain.html",
|
|
67
|
-
"what": "page with no main landmark"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"type": "test",
|
|
71
|
-
"which": "allHidden",
|
|
72
|
-
"what": "entirely or mainly hidden page",
|
|
73
|
-
"expect": [
|
|
74
|
-
["hidden.document", "=", false],
|
|
75
|
-
["hidden.body", "=", false],
|
|
76
|
-
["hidden.main", "=", false],
|
|
77
|
-
["reallyHidden.document", "=", false],
|
|
78
|
-
["reallyHidden.body", "=", false],
|
|
79
|
-
["reallyHidden.main", "=", false],
|
|
80
|
-
["display.document", "=", "block"],
|
|
81
|
-
["display.body", "=", "block"],
|
|
82
|
-
["visHidden.document", "=", false],
|
|
83
|
-
["visHidden.body", "=", false],
|
|
84
|
-
["visHidden.main", "=", false],
|
|
85
|
-
["ariaHidden.document", "=", false],
|
|
86
|
-
["ariaHidden.body", "=", false],
|
|
87
|
-
["ariaHidden.main", "=", false]
|
|
88
|
-
]
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"type": "url",
|
|
92
|
-
"which": "__targets__/allHidden/hiddenMain.html",
|
|
93
|
-
"what": "page with a hidden main landmark"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"type": "test",
|
|
97
|
-
"which": "allHidden",
|
|
98
|
-
"what": "entirely or mainly hidden page",
|
|
99
|
-
"expect": [
|
|
100
|
-
["hidden.document", "=", false],
|
|
101
|
-
["hidden.body", "=", false],
|
|
102
|
-
["hidden.main", "=", true],
|
|
103
|
-
["reallyHidden.document", "=", false],
|
|
104
|
-
["reallyHidden.body", "=", false],
|
|
105
|
-
["reallyHidden.main", "=", true],
|
|
106
|
-
["display.document", "=", "block"],
|
|
107
|
-
["display.body", "=", "block"],
|
|
108
|
-
["display.main", "=", "none"],
|
|
109
|
-
["visHidden.document", "=", false],
|
|
110
|
-
["visHidden.body", "=", false],
|
|
111
|
-
["visHidden.main", "=", false],
|
|
112
|
-
["ariaHidden.document", "=", false],
|
|
113
|
-
["ariaHidden.body", "=", false],
|
|
114
|
-
["ariaHidden.main", "=", false]
|
|
115
|
-
]
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"type": "url",
|
|
119
|
-
"which": "__targets__/allHidden/visHiddenMain.html",
|
|
120
|
-
"what": "page with a visually hidden main landmark"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"type": "test",
|
|
124
|
-
"which": "allHidden",
|
|
125
|
-
"what": "entirely or mainly hidden page",
|
|
126
|
-
"expect": [
|
|
127
|
-
["hidden.document", "=", false],
|
|
128
|
-
["hidden.body", "=", false],
|
|
129
|
-
["hidden.main", "=", false],
|
|
130
|
-
["reallyHidden.document", "=", false],
|
|
131
|
-
["reallyHidden.body", "=", false],
|
|
132
|
-
["reallyHidden.main", "=", false],
|
|
133
|
-
["display.document", "=", "block"],
|
|
134
|
-
["display.body", "=", "block"],
|
|
135
|
-
["display.main", "=", "block"],
|
|
136
|
-
["visHidden.document", "=", false],
|
|
137
|
-
["visHidden.body", "=", false],
|
|
138
|
-
["visHidden.main", "=", true],
|
|
139
|
-
["ariaHidden.document", "=", false],
|
|
140
|
-
["ariaHidden.body", "=", false],
|
|
141
|
-
["ariaHidden.main", "=", false]
|
|
142
|
-
]
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"type": "url",
|
|
146
|
-
"which": "__targets__/allHidden/ariaHiddenMain.html",
|
|
147
|
-
"what": "page with an ARIA-hidden main landmark"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"type": "test",
|
|
151
|
-
"which": "allHidden",
|
|
152
|
-
"what": "entirely or mainly hidden page",
|
|
153
|
-
"expect": [
|
|
154
|
-
["hidden.document", "=", false],
|
|
155
|
-
["hidden.body", "=", false],
|
|
156
|
-
["hidden.main", "=", false],
|
|
157
|
-
["reallyHidden.document", "=", false],
|
|
158
|
-
["reallyHidden.body", "=", false],
|
|
159
|
-
["reallyHidden.main", "=", false],
|
|
160
|
-
["display.document", "=", "block"],
|
|
161
|
-
["display.body", "=", "block"],
|
|
162
|
-
["display.main", "=", "block"],
|
|
163
|
-
["visHidden.document", "=", false],
|
|
164
|
-
["visHidden.body", "=", false],
|
|
165
|
-
["visHidden.main", "=", false],
|
|
166
|
-
["ariaHidden.document", "=", false],
|
|
167
|
-
["ariaHidden.body", "=", false],
|
|
168
|
-
["ariaHidden.main", "=", true]
|
|
169
|
-
]
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
"type": "url",
|
|
173
|
-
"which": "__targets__/allHidden/mixedHidden0.html",
|
|
174
|
-
"what": "page with mixed hidden states"
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
"type": "test",
|
|
178
|
-
"which": "allHidden",
|
|
179
|
-
"what": "entirely or mainly hidden page",
|
|
180
|
-
"expect": [
|
|
181
|
-
["hidden.document", "=", false],
|
|
182
|
-
["hidden.body", "=", false],
|
|
183
|
-
["hidden.main", "=", true],
|
|
184
|
-
["reallyHidden.document", "=", false],
|
|
185
|
-
["reallyHidden.body", "=", false],
|
|
186
|
-
["reallyHidden.main", "=", true],
|
|
187
|
-
["display.document", "=", "block"],
|
|
188
|
-
["display.body", "=", "block"],
|
|
189
|
-
["display.main", "=", "none"],
|
|
190
|
-
["visHidden.document", "=", false],
|
|
191
|
-
["visHidden.body", "=", true],
|
|
192
|
-
["visHidden.main", "=", true],
|
|
193
|
-
["ariaHidden.document", "=", true],
|
|
194
|
-
["ariaHidden.body", "=", false],
|
|
195
|
-
["ariaHidden.main", "=", false]
|
|
196
|
-
]
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
"type": "url",
|
|
200
|
-
"which": "__targets__/allHidden/mixedHidden1.html",
|
|
201
|
-
"what": "page with mixed hidden states"
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
"type": "test",
|
|
205
|
-
"which": "allHidden",
|
|
206
|
-
"what": "entirely or mainly hidden page",
|
|
207
|
-
"expect": [
|
|
208
|
-
["hidden.document", "=", true],
|
|
209
|
-
["hidden.body", "=", false],
|
|
210
|
-
["hidden.main", "=", false],
|
|
211
|
-
["reallyHidden.document", "=", true],
|
|
212
|
-
["reallyHidden.body", "=", false],
|
|
213
|
-
["reallyHidden.main", "=", false],
|
|
214
|
-
["display.document", "=", "none"],
|
|
215
|
-
["display.body", "=", "block"],
|
|
216
|
-
["display.main", "=", "block"],
|
|
217
|
-
["visHidden.document", "=", false],
|
|
218
|
-
["visHidden.body", "=", true],
|
|
219
|
-
["visHidden.main", "=", true],
|
|
220
|
-
["ariaHidden.document", "=", false],
|
|
221
|
-
["ariaHidden.body", "=", false],
|
|
222
|
-
["ariaHidden.main", "=", true]
|
|
223
|
-
]
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
"type": "url",
|
|
227
|
-
"which": "__targets__/allHidden/semiHidden.html",
|
|
228
|
-
"what": "page with mixed hidden states"
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
"type": "test",
|
|
232
|
-
"which": "allHidden",
|
|
233
|
-
"what": "entirely or mainly hidden page",
|
|
234
|
-
"expect": [
|
|
235
|
-
["hidden.document", "=", false],
|
|
236
|
-
["hidden.body", "=", false],
|
|
237
|
-
["hidden.main", "=", true],
|
|
238
|
-
["reallyHidden.document", "=", false],
|
|
239
|
-
["reallyHidden.body", "=", false],
|
|
240
|
-
["reallyHidden.main", "=", false],
|
|
241
|
-
["display.document", "=", "block"],
|
|
242
|
-
["display.body", "=", "block"],
|
|
243
|
-
["display.main", "=", "block"],
|
|
244
|
-
["visHidden.document", "=", false],
|
|
245
|
-
["visHidden.body", "=", false],
|
|
246
|
-
["visHidden.main", "=", false],
|
|
247
|
-
["ariaHidden.document", "=", false],
|
|
248
|
-
["ariaHidden.body", "=", false],
|
|
249
|
-
["ariaHidden.main", "=", false]
|
|
250
|
-
]
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
"type": "url",
|
|
254
|
-
"which": "__targets__/allHidden/noneDoc.html",
|
|
255
|
-
"what": "page with mixed hidden states"
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
"type": "test",
|
|
259
|
-
"which": "allHidden",
|
|
260
|
-
"what": "entirely or mainly hidden page",
|
|
261
|
-
"expect": [
|
|
262
|
-
["hidden.document", "=", false],
|
|
263
|
-
["hidden.body", "=", false],
|
|
264
|
-
["hidden.main", "=", false],
|
|
265
|
-
["reallyHidden.document", "=", false],
|
|
266
|
-
["reallyHidden.body", "=", false],
|
|
267
|
-
["reallyHidden.main", "=", false],
|
|
268
|
-
["display.document", "=", "none"],
|
|
269
|
-
["display.body", "=", "block"],
|
|
270
|
-
["display.main", "=", "block"],
|
|
271
|
-
["visHidden.document", "=", false],
|
|
272
|
-
["visHidden.body", "=", false],
|
|
273
|
-
["visHidden.main", "=", false],
|
|
274
|
-
["ariaHidden.document", "=", false],
|
|
275
|
-
["ariaHidden.body", "=", false],
|
|
276
|
-
["ariaHidden.main", "=", false]
|
|
277
|
-
]
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
"type": "url",
|
|
281
|
-
"which": "__targets__/allHidden/noneMain.html",
|
|
282
|
-
"what": "page with mixed hidden states"
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
"type": "test",
|
|
286
|
-
"which": "allHidden",
|
|
287
|
-
"what": "entirely or mainly hidden page",
|
|
288
|
-
"expect": [
|
|
289
|
-
["hidden.document", "=", false],
|
|
290
|
-
["hidden.body", "=", false],
|
|
291
|
-
["hidden.main", "=", false],
|
|
292
|
-
["reallyHidden.document", "=", false],
|
|
293
|
-
["reallyHidden.body", "=", false],
|
|
294
|
-
["reallyHidden.main", "=", false],
|
|
295
|
-
["display.document", "=", "block"],
|
|
296
|
-
["display.body", "=", "block"],
|
|
297
|
-
["display.main", "=", "none"],
|
|
298
|
-
["visHidden.document", "=", false],
|
|
299
|
-
["visHidden.body", "=", false],
|
|
300
|
-
["visHidden.main", "=", false],
|
|
301
|
-
["ariaHidden.document", "=", false],
|
|
302
|
-
["ariaHidden.body", "=", false],
|
|
303
|
-
["ariaHidden.main", "=", false]
|
|
304
|
-
]
|
|
305
|
-
}
|
|
306
|
-
],
|
|
307
|
-
"sources": {
|
|
308
|
-
"script": "",
|
|
309
|
-
"host": {},
|
|
310
|
-
"requester": ""
|
|
311
|
-
},
|
|
312
|
-
"creationTime": "2002-11-12T09:31:00",
|
|
313
|
-
"timeStamp": "00000"
|
|
314
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "attVal",
|
|
3
|
-
"what": "validation of attVal test",
|
|
4
|
-
"strict": true,
|
|
5
|
-
"timeLimit": 20,
|
|
6
|
-
"acts": [
|
|
7
|
-
{
|
|
8
|
-
"type": "launch",
|
|
9
|
-
"which": "chromium",
|
|
10
|
-
"what": "usual browser"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"type": "url",
|
|
14
|
-
"which": "__targets__/attVal/good.html",
|
|
15
|
-
"what": "page with permitted attribute values"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"type": "test",
|
|
19
|
-
"which": "attVal",
|
|
20
|
-
"attributeName": "lang",
|
|
21
|
-
"areLicit": true,
|
|
22
|
-
"values": ["en-US", "de-CH"],
|
|
23
|
-
"what": "attribute values",
|
|
24
|
-
"withItems": true,
|
|
25
|
-
"expect": [
|
|
26
|
-
["total", "=", 0],
|
|
27
|
-
["items.1"]
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"type": "url",
|
|
32
|
-
"which": "__targets__/attVal/bad.html",
|
|
33
|
-
"what": "page with permitted attribute values"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"type": "test",
|
|
37
|
-
"which": "attVal",
|
|
38
|
-
"attributeName": "lang",
|
|
39
|
-
"areLicit": false,
|
|
40
|
-
"values": ["en", "de"],
|
|
41
|
-
"what": "attribute values",
|
|
42
|
-
"withItems": true,
|
|
43
|
-
"expect": [
|
|
44
|
-
["total", "=", 2],
|
|
45
|
-
["items.0.tagName", "=", "HTML"],
|
|
46
|
-
["items.0.attributeValue", "=", "en"],
|
|
47
|
-
["items.1.tagName", "=", "SPAN"],
|
|
48
|
-
["items.1.attributeValue", "=", "de"],
|
|
49
|
-
["items.1.textStart", "i", "Veloparkieren"]
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
"sources": {
|
|
54
|
-
"script": "",
|
|
55
|
-
"host": {},
|
|
56
|
-
"requester": ""
|
|
57
|
-
},
|
|
58
|
-
"creationTime": "2023-04-19T12:34:00",
|
|
59
|
-
"timeStamp": "00000"
|
|
60
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "autocomplete",
|
|
3
|
-
"what": "validation of autocomplete test",
|
|
4
|
-
"strict": true,
|
|
5
|
-
"timeLimit": 20,
|
|
6
|
-
"acts": [
|
|
7
|
-
{
|
|
8
|
-
"type": "launch",
|
|
9
|
-
"which": "chromium",
|
|
10
|
-
"what": "usual browser"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"type": "url",
|
|
14
|
-
"which": "__targets__/autocomplete/good.html",
|
|
15
|
-
"what": "page with correct autocomplete attributes"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"type": "test",
|
|
19
|
-
"which": "autocomplete",
|
|
20
|
-
"what": "autocomplete attributes for name and email",
|
|
21
|
-
"withItems": true,
|
|
22
|
-
"expect": [
|
|
23
|
-
["total", "=", 0],
|
|
24
|
-
["items.1"]
|
|
25
|
-
]
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"type": "url",
|
|
29
|
-
"which": "__targets__/autocomplete/bad.html",
|
|
30
|
-
"what": "page with incorrect autocomplete attributes"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"type": "test",
|
|
34
|
-
"which": "autocomplete",
|
|
35
|
-
"what": "autocomplete attributes for name and email",
|
|
36
|
-
"withItems": true,
|
|
37
|
-
"expect": [
|
|
38
|
-
["total", "=", 4],
|
|
39
|
-
["items.1.0", "=", "family-name"],
|
|
40
|
-
["items.2.1", "=", "Your email address"]
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
"sources": {
|
|
45
|
-
"script": "",
|
|
46
|
-
"host": {},
|
|
47
|
-
"requester": ""
|
|
48
|
-
},
|
|
49
|
-
"creationTime": "2023-04-16T21:06:00",
|
|
50
|
-
"timeStamp": "00000"
|
|
51
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "bulk",
|
|
3
|
-
"what": "validation of bulk test",
|
|
4
|
-
"strict": true,
|
|
5
|
-
"timeLimit": 20,
|
|
6
|
-
"acts": [
|
|
7
|
-
{
|
|
8
|
-
"type": "launch",
|
|
9
|
-
"which": "chromium",
|
|
10
|
-
"what": "usual browser"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"type": "url",
|
|
14
|
-
"which": "__targets__/bulk/good.html",
|
|
15
|
-
"what": "small page"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"type": "test",
|
|
19
|
-
"which": "bulk",
|
|
20
|
-
"what": "visible element count",
|
|
21
|
-
"expect": [
|
|
22
|
-
["visibleElements", ">", 1],
|
|
23
|
-
["visibleElements", "<", 5]
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"type": "url",
|
|
28
|
-
"which": "__targets__/bulk/bad.html",
|
|
29
|
-
"what": "large page"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"type": "test",
|
|
33
|
-
"which": "bulk",
|
|
34
|
-
"what": "visible element count",
|
|
35
|
-
"expect": [
|
|
36
|
-
["visibleElements", ">", 30],
|
|
37
|
-
["visibleElements", "<", 40]
|
|
38
|
-
]
|
|
39
|
-
}
|
|
40
|
-
],
|
|
41
|
-
"sources": {
|
|
42
|
-
"script": "",
|
|
43
|
-
"host": {},
|
|
44
|
-
"requester": ""
|
|
45
|
-
},
|
|
46
|
-
"creationTime": "2002-11-12T09:31:00",
|
|
47
|
-
"timeStamp": "00000"
|
|
48
|
-
}
|