testaro 13.0.2 → 14.1.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.
Files changed (100) hide show
  1. package/README.md +190 -94
  2. package/actSpecs.js +17 -158
  3. package/package.json +1 -1
  4. package/run.js +31 -31
  5. package/standardize.js +338 -0
  6. package/{tests → testaro}/allHidden.js +36 -1
  7. package/{tests → testaro}/attVal.js +36 -2
  8. package/{tests → testaro}/autocomplete.js +34 -1
  9. package/{tests → testaro}/bulk.js +15 -1
  10. package/{tests → testaro}/docType.js +15 -1
  11. package/{tests → testaro}/dupAtt.js +34 -1
  12. package/{tests → testaro}/elements.js +9 -3
  13. package/testaro/embAc.js +78 -0
  14. package/{tests → testaro}/filter.js +35 -1
  15. package/{tests → testaro}/focAll.js +20 -3
  16. package/{tests → testaro}/focInd.js +45 -3
  17. package/{tests → testaro}/focOp.js +61 -2
  18. package/{tests → testaro}/focVis.js +35 -1
  19. package/{tests → testaro}/hover.js +67 -5
  20. package/{tests → testaro}/labClash.js +54 -4
  21. package/{tests → testaro}/linkTo.js +33 -1
  22. package/{tests → testaro}/linkUl.js +43 -5
  23. package/{tests → testaro}/menuNav.js +42 -1
  24. package/{tests → testaro}/miniText.js +32 -1
  25. package/{tests → testaro}/motion.js +27 -4
  26. package/{tests → testaro}/nonTable.js +32 -1
  27. package/{tests → testaro}/radioSet.js +33 -2
  28. package/{tests → testaro}/role.js +38 -1
  29. package/{tests → testaro}/styleDiff.js +43 -2
  30. package/{tests → testaro}/tabNav.js +42 -1
  31. package/{tests → testaro}/textNodes.js +6 -2
  32. package/{tests → testaro}/title.js +8 -4
  33. package/{tests → testaro}/titledEl.js +32 -1
  34. package/{tests → testaro}/zIndex.js +40 -2
  35. package/tests/alfa.js +72 -75
  36. package/tests/continuum.js +6 -2
  37. package/tests/ibm.js +14 -42
  38. package/tests/testaro.js +73 -0
  39. package/validation/tests/jobs/allHidden.json +877 -174
  40. package/validation/tests/jobs/attVal.json +57 -19
  41. package/validation/tests/jobs/autocomplete.json +34 -8
  42. package/validation/tests/jobs/bulk.json +33 -7
  43. package/validation/tests/jobs/docType.json +23 -5
  44. package/validation/tests/jobs/dupAtt.json +47 -8
  45. package/validation/tests/jobs/elements.json +231 -70
  46. package/validation/tests/jobs/embAc.json +70 -15
  47. package/validation/tests/jobs/filter.json +56 -12
  48. package/validation/tests/jobs/focAll.json +64 -16
  49. package/validation/tests/jobs/focInd.json +107 -23
  50. package/validation/tests/jobs/focOp.json +93 -21
  51. package/validation/tests/jobs/focVis.json +16 -4
  52. package/validation/tests/jobs/hover.json +246 -56
  53. package/validation/tests/jobs/labClash.json +43 -11
  54. package/validation/tests/jobs/linkTo.json +16 -4
  55. package/validation/tests/jobs/linkUl.json +79 -19
  56. package/validation/tests/jobs/menuNav.json +313 -65
  57. package/validation/tests/jobs/miniText.json +21 -5
  58. package/validation/tests/jobs/motion.json +81 -23
  59. package/validation/tests/jobs/nonTable.json +26 -6
  60. package/validation/tests/jobs/radioSet.json +43 -11
  61. package/validation/tests/jobs/role.json +93 -19
  62. package/validation/tests/jobs/styleDiff.json +124 -28
  63. package/validation/tests/jobs/tabNav.json +313 -65
  64. package/validation/tests/jobs/textNodes.json +190 -49
  65. package/validation/tests/jobs/title.json +23 -5
  66. package/validation/tests/jobs/titledEl.json +26 -6
  67. package/validation/tests/jobs/zIndex.json +28 -8
  68. package/validation/tests/old/allHidden.json +314 -0
  69. package/validation/tests/old/attVal.json +60 -0
  70. package/validation/tests/old/autocomplete.json +51 -0
  71. package/validation/tests/old/bulk.json +48 -0
  72. package/validation/tests/old/docType.json +46 -0
  73. package/validation/tests/old/dupAtt.json +51 -0
  74. package/validation/tests/old/elements.json +140 -0
  75. package/validation/tests/old/embAc.json +54 -0
  76. package/validation/tests/old/filter.json +55 -0
  77. package/validation/tests/old/focAll.json +68 -0
  78. package/validation/tests/old/focInd.json +69 -0
  79. package/validation/tests/old/focOp.json +62 -0
  80. package/validation/tests/old/focVis.json +35 -0
  81. package/validation/tests/old/hover.json +118 -0
  82. package/validation/tests/old/labClash.json +52 -0
  83. package/validation/tests/old/linkTo.json +35 -0
  84. package/validation/tests/old/linkUl.json +71 -0
  85. package/validation/tests/old/menuNav.json +106 -0
  86. package/validation/tests/old/miniText.json +36 -0
  87. package/validation/tests/old/motion.json +62 -0
  88. package/validation/tests/old/nonTable.json +37 -0
  89. package/validation/tests/old/radioSet.json +52 -0
  90. package/validation/tests/old/role.json +60 -0
  91. package/validation/tests/old/styleDiff.json +71 -0
  92. package/validation/tests/old/tabNav.json +106 -0
  93. package/validation/tests/old/temp.js +28 -0
  94. package/validation/tests/old/textNodes.json +98 -0
  95. package/validation/tests/old/title.json +46 -0
  96. package/validation/tests/old/titledEl.json +37 -0
  97. package/validation/tests/old/zIndex.json +49 -0
  98. package/validation/tests/targets/attVal/good.html +1 -1
  99. package/validation/tests/targets/elements/index.html +1 -0
  100. package/tests/embAc.js +0 -36
@@ -16,16 +16,26 @@
16
16
  },
17
17
  {
18
18
  "type": "test",
19
- "which": "attVal",
20
- "attributeName": "lang",
21
- "areLicit": true,
22
- "values": ["en-US", "de-CH"],
19
+ "which": "testaro",
23
20
  "what": "attribute values",
24
21
  "withItems": true,
25
22
  "expect": [
26
- ["total", "=", 0],
27
- ["items.1"]
28
- ]
23
+ [
24
+ "result.rules.attVal.data.total",
25
+ "=",
26
+ 0
27
+ ],
28
+ [
29
+ "result.rules.attVal.data.items.1"
30
+ ]
31
+ ],
32
+ "rules": [
33
+ "y",
34
+ "attVal"
35
+ ],
36
+ "args": {
37
+ "attVal": ["lang", true, ["en-US", "de-CH"]]
38
+ }
29
39
  },
30
40
  {
31
41
  "type": "url",
@@ -34,20 +44,48 @@
34
44
  },
35
45
  {
36
46
  "type": "test",
37
- "which": "attVal",
38
- "attributeName": "lang",
39
- "areLicit": false,
40
- "values": ["en", "de"],
47
+ "which": "testaro",
41
48
  "what": "attribute values",
42
49
  "withItems": true,
43
50
  "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
+ "result.rules.attVal.data.total",
53
+ "=",
54
+ 2
55
+ ],
56
+ [
57
+ "result.rules.attVal.data.items.0.tagName",
58
+ "=",
59
+ "HTML"
60
+ ],
61
+ [
62
+ "result.rules.attVal.data.items.0.attributeValue",
63
+ "=",
64
+ "en"
65
+ ],
66
+ [
67
+ "result.rules.attVal.data.items.1.tagName",
68
+ "=",
69
+ "SPAN"
70
+ ],
71
+ [
72
+ "result.rules.attVal.data.items.1.attributeValue",
73
+ "=",
74
+ "de"
75
+ ],
76
+ [
77
+ "result.rules.attVal.data.items.1.textStart",
78
+ "i",
79
+ "Veloparkieren"
80
+ ]
81
+ ],
82
+ "rules": [
83
+ "y",
84
+ "attVal"
85
+ ],
86
+ "args": {
87
+ "attVal": ["lang", true, ["en-US", "de-CH"]]
88
+ }
51
89
  }
52
90
  ],
53
91
  "sources": {
@@ -55,6 +93,6 @@
55
93
  "host": {},
56
94
  "requester": ""
57
95
  },
58
- "creationTime": "2023-04-19T12:34:00",
96
+ "creationTime": "2013-05-28T12:00:00",
59
97
  "timeStamp": "00000"
60
98
  }
@@ -16,12 +16,22 @@
16
16
  },
17
17
  {
18
18
  "type": "test",
19
- "which": "autocomplete",
19
+ "which": "testaro",
20
20
  "what": "autocomplete attributes for name and email",
21
21
  "withItems": true,
22
22
  "expect": [
23
- ["total", "=", 0],
24
- ["items.1"]
23
+ [
24
+ "result.rules.autocomplete.data.total",
25
+ "=",
26
+ 0
27
+ ],
28
+ [
29
+ "result.rules.autocomplete.data.items.1"
30
+ ]
31
+ ],
32
+ "rules": [
33
+ "y",
34
+ "autocomplete"
25
35
  ]
26
36
  },
27
37
  {
@@ -31,13 +41,29 @@
31
41
  },
32
42
  {
33
43
  "type": "test",
34
- "which": "autocomplete",
44
+ "which": "testaro",
35
45
  "what": "autocomplete attributes for name and email",
36
46
  "withItems": true,
37
47
  "expect": [
38
- ["total", "=", 4],
39
- ["items.1.0", "=", "family-name"],
40
- ["items.2.1", "=", "Your email address"]
48
+ [
49
+ "result.rules.autocomplete.data.total",
50
+ "=",
51
+ 4
52
+ ],
53
+ [
54
+ "result.rules.autocomplete.data.items.1.0",
55
+ "=",
56
+ "family-name"
57
+ ],
58
+ [
59
+ "result.rules.autocomplete.data.items.2.1",
60
+ "=",
61
+ "Your email address"
62
+ ]
63
+ ],
64
+ "rules": [
65
+ "y",
66
+ "autocomplete"
41
67
  ]
42
68
  }
43
69
  ],
@@ -46,6 +72,6 @@
46
72
  "host": {},
47
73
  "requester": ""
48
74
  },
49
- "creationTime": "2023-04-16T21:06:00",
75
+ "creationTime": "2013-05-28T12:00:00",
50
76
  "timeStamp": "00000"
51
77
  }
@@ -16,11 +16,24 @@
16
16
  },
17
17
  {
18
18
  "type": "test",
19
- "which": "bulk",
19
+ "which": "testaro",
20
20
  "what": "visible element count",
21
21
  "expect": [
22
- ["visibleElements", ">", 1],
23
- ["visibleElements", "<", 5]
22
+ [
23
+ "result.rules.bulk.data.visibleElements",
24
+ ">",
25
+ 1
26
+ ],
27
+ [
28
+ "result.rules.bulk.data.visibleElements",
29
+ "<",
30
+ 5
31
+ ]
32
+ ],
33
+ "withItems": true,
34
+ "rules": [
35
+ "y",
36
+ "bulk"
24
37
  ]
25
38
  },
26
39
  {
@@ -30,11 +43,24 @@
30
43
  },
31
44
  {
32
45
  "type": "test",
33
- "which": "bulk",
46
+ "which": "testaro",
34
47
  "what": "visible element count",
35
48
  "expect": [
36
- ["visibleElements", ">", 30],
37
- ["visibleElements", "<", 40]
49
+ [
50
+ "result.rules.bulk.data.visibleElements",
51
+ ">",
52
+ 30
53
+ ],
54
+ [
55
+ "result.rules.bulk.data.visibleElements",
56
+ "<",
57
+ 40
58
+ ]
59
+ ],
60
+ "withItems": true,
61
+ "rules": [
62
+ "y",
63
+ "bulk"
38
64
  ]
39
65
  }
40
66
  ],
@@ -43,6 +69,6 @@
43
69
  "host": {},
44
70
  "requester": ""
45
71
  },
46
- "creationTime": "2002-11-12T09:31:00",
72
+ "creationTime": "2013-05-28T12:00:00",
47
73
  "timeStamp": "00000"
48
74
  }
@@ -16,10 +16,19 @@
16
16
  },
17
17
  {
18
18
  "type": "test",
19
- "which": "docType",
19
+ "which": "testaro",
20
20
  "what": "doctype",
21
21
  "expect": [
22
- ["docHasType", "=", true]
22
+ [
23
+ "result.rules.docType.data.docHasType",
24
+ "=",
25
+ true
26
+ ]
27
+ ],
28
+ "withItems": true,
29
+ "rules": [
30
+ "y",
31
+ "docType"
23
32
  ]
24
33
  },
25
34
  {
@@ -29,10 +38,19 @@
29
38
  },
30
39
  {
31
40
  "type": "test",
32
- "which": "docType",
41
+ "which": "testaro",
33
42
  "what": "doctype",
34
43
  "expect": [
35
- ["docHasType", "=", false]
44
+ [
45
+ "result.rules.docType.data.docHasType",
46
+ "=",
47
+ false
48
+ ]
49
+ ],
50
+ "withItems": true,
51
+ "rules": [
52
+ "y",
53
+ "docType"
36
54
  ]
37
55
  }
38
56
  ],
@@ -41,6 +59,6 @@
41
59
  "host": {},
42
60
  "requester": ""
43
61
  },
44
- "creationTime": "2002-11-12T09:31:00",
62
+ "creationTime": "2013-05-28T12:00:00",
45
63
  "timeStamp": "00000"
46
64
  }
@@ -16,12 +16,22 @@
16
16
  },
17
17
  {
18
18
  "type": "test",
19
- "which": "dupAtt",
19
+ "which": "testaro",
20
20
  "what": "elements with duplicate attributes",
21
21
  "withItems": true,
22
22
  "expect": [
23
- ["total", "=", 0],
24
- ["items.1"]
23
+ [
24
+ "result.rules.dupAtt.data.total",
25
+ "=",
26
+ 0
27
+ ],
28
+ [
29
+ "result.rules.dupAtt.data.items.1"
30
+ ]
31
+ ],
32
+ "rules": [
33
+ "y",
34
+ "dupAtt"
25
35
  ]
26
36
  },
27
37
  {
@@ -31,13 +41,42 @@
31
41
  },
32
42
  {
33
43
  "type": "test",
34
- "which": "dupAtt",
44
+ "which": "testaro",
35
45
  "what": "elements with duplicate attributes",
36
46
  "withItems": true,
37
47
  "expect": [
38
- ["total", "=", 2],
39
- ["items.0", "=", "p class=\"narrow\" id=\"daParagraph\" class=\"wide\""],
40
- ["items.1", "i", "large"]
48
+ [
49
+ "result.rules.dupAtt.data.total",
50
+ "=",
51
+ 2
52
+ ],
53
+ [
54
+ "result.rules.dupAtt.data.items.0",
55
+ "e",
56
+ {
57
+ "tagName": "P",
58
+ "attributes": [
59
+ "class",
60
+ "id",
61
+ "class"
62
+ ]
63
+ }
64
+ ],
65
+ [
66
+ "result.rules.dupAtt.data.items.1",
67
+ "e",
68
+ {
69
+ "tagName": "BUTTON",
70
+ "attributes": [
71
+ "aria-label",
72
+ "aria-label"
73
+ ]
74
+ }
75
+ ]
76
+ ],
77
+ "rules": [
78
+ "y",
79
+ "dupAtt"
41
80
  ]
42
81
  }
43
82
  ],
@@ -46,6 +85,6 @@
46
85
  "host": {},
47
86
  "requester": ""
48
87
  },
49
- "creationTime": "2023-04-18T11:02:00",
88
+ "creationTime": "2013-05-28T12:00:00",
50
89
  "timeStamp": "00000"
51
90
  }