testaro 26.3.2 → 26.3.3
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
package/tests/testaro.js
CHANGED
|
@@ -34,6 +34,7 @@ const evalRules = {
|
|
|
34
34
|
hover: 'hover-caused content changes',
|
|
35
35
|
hovInd: 'hover indication nonstandard',
|
|
36
36
|
hr: 'hr element instead of styles used for vertical segmentation',
|
|
37
|
+
imageLink: 'links with image files as their destinations',
|
|
37
38
|
labClash: 'labeling inconsistencies',
|
|
38
39
|
legendLoc: 'legend elements that are not first children of fieldset elements',
|
|
39
40
|
lineHeight: 'text with a line height less than 1.5 times its font size',
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "imageLink",
|
|
3
|
+
"what": "validation of imageLink test",
|
|
4
|
+
"strict": true,
|
|
5
|
+
"timeLimit": 20,
|
|
6
|
+
"acts": [
|
|
7
|
+
{
|
|
8
|
+
"type": "launch",
|
|
9
|
+
"which": "chromium",
|
|
10
|
+
"url": "file://validation/tests/targets/imageLink/index.html",
|
|
11
|
+
"what": "page with links to web pages and to image files"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"type": "test",
|
|
15
|
+
"which": "testaro",
|
|
16
|
+
"withItems": true,
|
|
17
|
+
"stopOnFail": true,
|
|
18
|
+
"expect": [
|
|
19
|
+
[
|
|
20
|
+
"standardResult.totals.0",
|
|
21
|
+
"=",
|
|
22
|
+
4
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"standardResult.totals.2",
|
|
26
|
+
"=",
|
|
27
|
+
0
|
|
28
|
+
],
|
|
29
|
+
[
|
|
30
|
+
"standardResult.instances.length",
|
|
31
|
+
"=",
|
|
32
|
+
4
|
|
33
|
+
],
|
|
34
|
+
[
|
|
35
|
+
"standardResult.instances.0.ruleID",
|
|
36
|
+
"=",
|
|
37
|
+
"imageLink"
|
|
38
|
+
],
|
|
39
|
+
[
|
|
40
|
+
"standardResult.instances.0.what",
|
|
41
|
+
"i",
|
|
42
|
+
"Link destination is an image file"
|
|
43
|
+
],
|
|
44
|
+
[
|
|
45
|
+
"standardResult.instances.0.ordinalSeverity",
|
|
46
|
+
"=",
|
|
47
|
+
0
|
|
48
|
+
],
|
|
49
|
+
[
|
|
50
|
+
"standardResult.instances.0.tagName",
|
|
51
|
+
"=",
|
|
52
|
+
"A"
|
|
53
|
+
],
|
|
54
|
+
[
|
|
55
|
+
"standardResult.instances.0.location.doc",
|
|
56
|
+
"=",
|
|
57
|
+
"dom"
|
|
58
|
+
],
|
|
59
|
+
[
|
|
60
|
+
"standardResult.instances.0.location.type",
|
|
61
|
+
"=",
|
|
62
|
+
"selector"
|
|
63
|
+
],
|
|
64
|
+
[
|
|
65
|
+
"standardResult.instances.0.location.spec",
|
|
66
|
+
"=",
|
|
67
|
+
"#mapGIF"
|
|
68
|
+
],
|
|
69
|
+
[
|
|
70
|
+
"standardResult.instances.0.excerpt",
|
|
71
|
+
"=",
|
|
72
|
+
"an animated map of the USA"
|
|
73
|
+
],
|
|
74
|
+
[
|
|
75
|
+
"standardResult.instances.2.ruleID",
|
|
76
|
+
"=",
|
|
77
|
+
"imageLink"
|
|
78
|
+
],
|
|
79
|
+
[
|
|
80
|
+
"standardResult.instances.3.excerpt",
|
|
81
|
+
"=",
|
|
82
|
+
"a bird"
|
|
83
|
+
]
|
|
84
|
+
],
|
|
85
|
+
"rules": [
|
|
86
|
+
"y",
|
|
87
|
+
"imageLink"
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"type": "test",
|
|
92
|
+
"which": "testaro",
|
|
93
|
+
"withItems": false,
|
|
94
|
+
"stopOnFail": true,
|
|
95
|
+
"expect": [
|
|
96
|
+
[
|
|
97
|
+
"standardResult.totals.0",
|
|
98
|
+
"=",
|
|
99
|
+
4
|
|
100
|
+
],
|
|
101
|
+
[
|
|
102
|
+
"standardResult.totals.1",
|
|
103
|
+
"=",
|
|
104
|
+
0
|
|
105
|
+
],
|
|
106
|
+
[
|
|
107
|
+
"standardResult.instances.length",
|
|
108
|
+
"=",
|
|
109
|
+
1
|
|
110
|
+
],
|
|
111
|
+
[
|
|
112
|
+
"standardResult.instances.0.ruleID",
|
|
113
|
+
"=",
|
|
114
|
+
"imageLink"
|
|
115
|
+
],
|
|
116
|
+
[
|
|
117
|
+
"standardResult.instances.0.count",
|
|
118
|
+
"=",
|
|
119
|
+
4
|
|
120
|
+
],
|
|
121
|
+
[
|
|
122
|
+
"standardResult.instances.0.what",
|
|
123
|
+
"=",
|
|
124
|
+
"Links have image files as their destinations"
|
|
125
|
+
],
|
|
126
|
+
[
|
|
127
|
+
"standardResult.instances.0.tagName",
|
|
128
|
+
"=",
|
|
129
|
+
"A"
|
|
130
|
+
]
|
|
131
|
+
],
|
|
132
|
+
"rules": [
|
|
133
|
+
"y",
|
|
134
|
+
"imageLink"
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
"sources": {
|
|
139
|
+
"script": "",
|
|
140
|
+
"host": {},
|
|
141
|
+
"requester": ""
|
|
142
|
+
},
|
|
143
|
+
"creationTime": "2013-05-28T12:00:00",
|
|
144
|
+
"timeStamp": "00000"
|
|
145
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en-US">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<title>Page with links to web pages and images</title>
|
|
6
|
+
<meta name="description" content="tester">
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<main>
|
|
11
|
+
<h1>Page with links to web pages and images</h1>
|
|
12
|
+
<p>This is a link to <a href="https://urbaninstitute.github.io/r-at-urban/">a page containing an image</a>.</p>
|
|
13
|
+
<p>Defect 1: This is a link directly to a GIF image of <a id="mapGIF" href="https://urbaninstitute.github.io/r-at-urban/mapping/www/images/yay_maps.gif">an animated map of the USA</a>.</p>
|
|
14
|
+
<p>Defect 2: This is a link directly to a PNG image of <a id="mapPNG" href="https://upload.wikimedia.org/wikipedia/commons/f/f7/Blank_map_of_states.png">a map of the USA</a>.</p>
|
|
15
|
+
<p>Defect 3: This is a link directly to a JPG image of <a id="familyJPG" href="https://upload.wikimedia.org/wikipedia/commons/c/c9/-Family_Portrait-_MET_DT8784.jpg">a family</a>.</p>
|
|
16
|
+
<p>Defect 4: This is a link directly to an SVG image of <a id="birdSVG" href="https://upload.wikimedia.org/wikipedia/commons/b/b0/NewTux.svg">a bird</a>.</p>
|
|
17
|
+
</main>
|
|
18
|
+
</body>
|
|
19
|
+
</html>
|