accessibility-checker 3.1.49 → 3.1.51
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 +75 -67
- package/bin/achecker.js +14 -17
- package/bin/achecker.js.map +1 -1
- package/index.d.ts +6 -4
- package/index.js +9 -8
- package/index.js.map +1 -1
- package/lib/ACBrowserManager.d.ts +2 -2
- package/lib/ACBrowserManager.js +2 -3
- package/lib/ACBrowserManager.js.map +1 -1
- package/lib/ACEngineManager.d.ts +1 -12
- package/lib/ACEngineManager.js +72 -40
- package/lib/ACEngineManager.js.map +1 -1
- package/lib/ACHelper.js +126 -137
- package/lib/ACHelper.js.map +1 -1
- package/lib/api/IChecker.d.ts +3 -114
- package/lib/api/IChecker.js +1 -1
- package/lib/api/IChecker.js.map +1 -1
- package/lib/common/api-ext/Fetch.d.ts +16 -0
- package/lib/common/api-ext/Fetch.js +83 -0
- package/lib/common/api-ext/Fetch.js.map +1 -0
- package/lib/common/api-ext/IAbstractAPI.d.ts +34 -0
- package/lib/common/api-ext/IAbstractAPI.js +18 -0
- package/lib/common/api-ext/IAbstractAPI.js.map +1 -0
- package/lib/common/config/ACConfigManager.d.ts +7 -0
- package/lib/{ACConfigManager.js → common/config/ACConfigManager.js} +28 -19
- package/lib/common/config/ACConfigManager.js.map +1 -0
- package/lib/{ACConstants.d.ts → common/config/ACConstants.d.ts} +2 -2
- package/lib/{ACConstants.js → common/config/ACConstants.js} +7 -5
- package/lib/common/config/ACConstants.js.map +1 -0
- package/lib/common/config/IArchive.d.ts +37 -0
- package/lib/{reporters/multiScanReportUtil.d.ts → common/config/IArchive.js} +4 -5
- package/lib/common/config/IArchive.js.map +1 -0
- package/lib/common/config/IConfig.d.ts +146 -0
- package/lib/common/config/IConfig.js +36 -0
- package/lib/common/config/IConfig.js.map +1 -0
- package/lib/common/report/ACReporterCSV.d.ts +27 -0
- package/lib/common/report/ACReporterCSV.js +105 -0
- package/lib/common/report/ACReporterCSV.js.map +1 -0
- package/lib/common/report/ACReporterHTML.d.ts +26 -0
- package/lib/common/report/ACReporterHTML.js +94 -0
- package/lib/common/report/ACReporterHTML.js.map +1 -0
- package/lib/common/report/ACReporterJSON.d.ts +46 -0
- package/lib/common/report/ACReporterJSON.js +140 -0
- package/lib/common/report/ACReporterJSON.js.map +1 -0
- package/lib/{log/ACMetricsLogger.d.ts → common/report/ACReporterMetrics.d.ts} +11 -6
- package/lib/{log/ACMetricsLogger.js → common/report/ACReporterMetrics.js} +85 -70
- package/lib/common/report/ACReporterMetrics.js.map +1 -0
- package/lib/common/report/ACReporterXLSX.d.ts +37 -0
- package/lib/common/report/ACReporterXLSX.js +1004 -0
- package/lib/common/report/ACReporterXLSX.js.map +1 -0
- package/lib/common/report/BaselineManager.d.ts +169 -0
- package/lib/common/report/BaselineManager.js +355 -0
- package/lib/common/report/BaselineManager.js.map +1 -0
- package/lib/common/report/ReporterManager.d.ts +79 -0
- package/lib/common/report/ReporterManager.js +552 -0
- package/lib/common/report/ReporterManager.js.map +1 -0
- package/lib/common/report/genReport.js.map +1 -0
- package/package.json +1 -1
- package/lib/ACConfigManager.d.ts +0 -7
- package/lib/ACConfigManager.js.map +0 -1
- package/lib/ACConstants.js.map +0 -1
- package/lib/ACReportManager.d.ts +0 -590
- package/lib/ACReportManager.js +0 -1201
- package/lib/ACReportManager.js.map +0 -1
- package/lib/api/IEngine.d.ts +0 -129
- package/lib/api/IEngine.js +0 -110
- package/lib/api/IEngine.js.map +0 -1
- package/lib/log/ACMetricsLogger.js.map +0 -1
- package/lib/reporters/ACReporterCSV.d.ts +0 -103
- package/lib/reporters/ACReporterCSV.js +0 -193
- package/lib/reporters/ACReporterCSV.js.map +0 -1
- package/lib/reporters/ACReporterHTML.d.ts +0 -114
- package/lib/reporters/ACReporterHTML.js +0 -360
- package/lib/reporters/ACReporterHTML.js.map +0 -1
- package/lib/reporters/ACReporterJSON.d.ts +0 -114
- package/lib/reporters/ACReporterJSON.js +0 -277
- package/lib/reporters/ACReporterJSON.js.map +0 -1
- package/lib/reporters/ACReporterXLSX.d.ts +0 -109
- package/lib/reporters/ACReporterXLSX.js +0 -405
- package/lib/reporters/ACReporterXLSX.js.map +0 -1
- package/lib/reporters/ReportUtil.d.ts +0 -33
- package/lib/reporters/ReportUtil.js +0 -65
- package/lib/reporters/ReportUtil.js.map +0 -1
- package/lib/reporters/genReport.js.map +0 -1
- package/lib/reporters/multiScanData.d.ts +0 -27
- package/lib/reporters/multiScanData.js +0 -190
- package/lib/reporters/multiScanData.js.map +0 -1
- package/lib/reporters/multiScanReport.d.ts +0 -25
- package/lib/reporters/multiScanReport.js +0 -1729
- package/lib/reporters/multiScanReport.js.map +0 -1
- package/lib/reporters/multiScanReportUtil.js +0 -49
- package/lib/reporters/multiScanReportUtil.js.map +0 -1
- /package/lib/{reporters → common/report}/genReport.d.ts +0 -0
- /package/lib/{reporters → common/report}/genReport.js +0 -0
package/package.json
CHANGED
package/lib/ACConfigManager.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IConfig, IConfigUnsupported } from "./api/IChecker";
|
|
2
|
-
export declare class ACConfigManager {
|
|
3
|
-
static setConfig(inConfig?: IConfig | IConfigUnsupported): Promise<void>;
|
|
4
|
-
static getConfig(): Promise<IConfig>;
|
|
5
|
-
static getConfigUnsupported(): Promise<IConfigUnsupported>;
|
|
6
|
-
static getConfigNow(): IConfigUnsupported;
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ACConfigManager.js","sourceRoot":"","sources":["../../src-ts/lib/ACConfigManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;gFAcgF;AAC/E,uCAAuC;AACxC,8BAAgC;AAChC,uBAAyB;AACzB,8BAAgC;AAChC,6CAA4C;AAC5C,6BAAoC;AAEpC,+BAA0B;AAE1B;;;;;;;;;;;;;;;;;;GAkBG;AACH,SA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4BAAyB;IAEjD,oEAAoE;IACpE,UAAU,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC;IAElC,8GAA8G;IAC9G,6DAA6D;IAC7D,mBAAmB;IACnB,oBAAoB;IACpB,iBAAiB;IACjB,mBAAmB;IACnB,2BAA2B;IAC3B,4BAA4B;IAC5B,yBAAyB;IACzB,2BAA2B;IAC3B,+FAA+F;IAC/F,kDAAkD;IAClD,WAAW,EAAE,CAAC,eAAe,EAAE,gBAAgB,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,gBAAgB,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;IAEzO,iBAAiB,EAAE,KAAK;CAC3B,CAAC"}
|
package/lib/ACReportManager.d.ts
DELETED
|
@@ -1,590 +0,0 @@
|
|
|
1
|
-
import { eAssertResult, ICheckerReport, ICheckerReportCounts, IConfigUnsupported, ILogger, ReportResult } from "./api/IChecker";
|
|
2
|
-
import { IScanSummary } from "./reporters/ReportUtil";
|
|
3
|
-
import { Report, Rule } from "./api/IEngine";
|
|
4
|
-
export declare class ACReportManager {
|
|
5
|
-
static config: IConfigUnsupported;
|
|
6
|
-
static reporters: {
|
|
7
|
-
html: any;
|
|
8
|
-
json: any;
|
|
9
|
-
csv: any;
|
|
10
|
-
xlsx: any;
|
|
11
|
-
};
|
|
12
|
-
static refactorMap: {
|
|
13
|
-
[oldRuleId: string]: Rule;
|
|
14
|
-
};
|
|
15
|
-
static baselineIssueList: string[];
|
|
16
|
-
static metricsLogger: any;
|
|
17
|
-
static scanSummary: IScanSummary;
|
|
18
|
-
static diffResults: any;
|
|
19
|
-
static scanResults: any;
|
|
20
|
-
static initialize(logger: ILogger): Promise<void>;
|
|
21
|
-
/**
|
|
22
|
-
* This function is responsible for checking if the provided label is unique or not.
|
|
23
|
-
*
|
|
24
|
-
* @param {String} label - Provide the label which should be checked if it exists or not
|
|
25
|
-
*
|
|
26
|
-
* @return {boolean} labelExists - return false if the label is not unique, otherwise return true
|
|
27
|
-
*
|
|
28
|
-
* PRIVATE METHOD
|
|
29
|
-
*
|
|
30
|
-
* @memberOf this
|
|
31
|
-
*/
|
|
32
|
-
static isLabelUnique(label: string): boolean;
|
|
33
|
-
/**
|
|
34
|
-
* This function is responsible for sending the scan results to the karma server accessibility-checker reporter. The
|
|
35
|
-
* accessibility-checker reporter is responsible for writing the results to a file. The reporter will also keep track of
|
|
36
|
-
* the summary results, on the server side.
|
|
37
|
-
*
|
|
38
|
-
* @param {Object} results - Provide the full results object which is to be reported/saved to file.
|
|
39
|
-
* refer to return in function "aChecker.buildReport" prolog
|
|
40
|
-
*
|
|
41
|
-
* @return N/A
|
|
42
|
-
*
|
|
43
|
-
* PRIVATE METHOD
|
|
44
|
-
*
|
|
45
|
-
* @memberOf this
|
|
46
|
-
*/
|
|
47
|
-
static sendResultsToReporter(unFilteredResults: any, results: any, profile: any): Promise<void>;
|
|
48
|
-
static sendScreenShotToReporter(screenshotResult: any): void;
|
|
49
|
-
/**
|
|
50
|
-
* This function is responsible for building the results object in a specific format which will be provided back to
|
|
51
|
-
* the user to do any thing they want to do with it. (compare, print it, save to db, etc...)
|
|
52
|
-
*
|
|
53
|
-
* Note: This function converts it to match with the following format outlined at:
|
|
54
|
-
* https://github.com/IBMa/equal-access/tree/master/karma-accessibility-checker
|
|
55
|
-
*
|
|
56
|
-
* @param {Object} results - The results object which we need to build the report based on, following is the format the
|
|
57
|
-
* object needs to follow:
|
|
58
|
-
* {
|
|
59
|
-
* "report": {
|
|
60
|
-
* "numChecked": 227,
|
|
61
|
-
* "numTrigger": 1,
|
|
62
|
-
* "ruleTime": 5,
|
|
63
|
-
* "totalTime": 8,
|
|
64
|
-
* "issues": [
|
|
65
|
-
* {
|
|
66
|
-
* "severityCode": "eISHigh",
|
|
67
|
-
* "messageCode": "rpt.g377.elemUniqueId",
|
|
68
|
-
* "ruleId": "377",
|
|
69
|
-
* "help": "idhi_accessibility_check_g377.html",
|
|
70
|
-
* "msgArgs": [
|
|
71
|
-
* "div",
|
|
72
|
-
* "firstDiv"
|
|
73
|
-
* ],
|
|
74
|
-
* "xpath": "/html[1]/body[1]/div[2]/div[2]",
|
|
75
|
-
* "snippet": "<div id=\"firstDiv\">",
|
|
76
|
-
* "bounds": {
|
|
77
|
-
* "left": 10,
|
|
78
|
-
* "top": 181,
|
|
79
|
-
* "height": 0,
|
|
80
|
-
* "width": 1249
|
|
81
|
-
* },
|
|
82
|
-
* "level": "violation"
|
|
83
|
-
* }
|
|
84
|
-
* ],
|
|
85
|
-
* "docTitle": "Helo World"
|
|
86
|
-
* },
|
|
87
|
-
* "counts": {
|
|
88
|
-
* "violation": 1,
|
|
89
|
-
* "potentialviolation": 0,
|
|
90
|
-
* "recommendation": 0,
|
|
91
|
-
* "potentialrecommendation": 0,
|
|
92
|
-
* "manual": 0
|
|
93
|
-
* },
|
|
94
|
-
* "issueMessages": {
|
|
95
|
-
* "messages": {
|
|
96
|
-
* "rpt.g377.elemUniqueId": "The {0} element has the id \"{1}\" that is either empty or already in use."
|
|
97
|
-
* },
|
|
98
|
-
* "lang": "en-us"
|
|
99
|
-
* }
|
|
100
|
-
* }
|
|
101
|
-
*
|
|
102
|
-
* @param {String} URL - The URL which the report is being built for
|
|
103
|
-
* @param {String} label - A label to identify what this report is going to be for, in the case not using URL or local files.
|
|
104
|
-
* @param {String} startScan - The start time of the scan.
|
|
105
|
-
*
|
|
106
|
-
* @return {Object} results - return the formatted results based in the following format:
|
|
107
|
-
*
|
|
108
|
-
* {
|
|
109
|
-
* "scanID": "ef3aec68-f073-4f9c-b372-421ae00bd55d",
|
|
110
|
-
* "toolID": "karma-ibma-v1.0.0",
|
|
111
|
-
* "summary": {
|
|
112
|
-
* "counts": {
|
|
113
|
-
* "violation": 5,
|
|
114
|
-
* "potentialviolation": 0,
|
|
115
|
-
* "recommendation": 5,
|
|
116
|
-
* "potentialrecommendation": 0,
|
|
117
|
-
* "manual": 1
|
|
118
|
-
* },
|
|
119
|
-
* "scanTime": 80,
|
|
120
|
-
* "policies": [
|
|
121
|
-
* "CI162_5_2_DCP080115"
|
|
122
|
-
* ],
|
|
123
|
-
* "reportLevels": [
|
|
124
|
-
* "violation",
|
|
125
|
-
* "potentialviolation",
|
|
126
|
-
* "recommendation",
|
|
127
|
-
* "potentialrecommendation",
|
|
128
|
-
* "manual"
|
|
129
|
-
* ],
|
|
130
|
-
* "startScan": "2016-06-06T00:52:41.603Z"
|
|
131
|
-
* },
|
|
132
|
-
* "URL": "",
|
|
133
|
-
* "label": "unitTestContent",
|
|
134
|
-
* "screenshot": "<placeholder>",
|
|
135
|
-
* "issueMessages": {
|
|
136
|
-
* "messages": {
|
|
137
|
-
* "rpt.g377.elemUniqueId": "The {0} element has the id \"{1}\" that is either empty or already in use."
|
|
138
|
-
* },
|
|
139
|
-
* "lang": "en-us"
|
|
140
|
-
* },
|
|
141
|
-
* "reports": [
|
|
142
|
-
* {
|
|
143
|
-
* "frameIdx": "0",
|
|
144
|
-
* "frameTitle": "Frame 0",
|
|
145
|
-
* "issues": [
|
|
146
|
-
* {
|
|
147
|
-
* "severity": "Low",
|
|
148
|
-
* "message": "If style sheets are ignored or unsupported, ensure that pages are still readable and usable.",
|
|
149
|
-
* "messageCode": "rpt.g1.styleTrigger",
|
|
150
|
-
* "ruleId": "1",
|
|
151
|
-
* "help": "idhi_accessibility_check_g1.html",
|
|
152
|
-
* "msgArgs": [],
|
|
153
|
-
* "bounds": {
|
|
154
|
-
* "left": 0,
|
|
155
|
-
* "top": 0,
|
|
156
|
-
* "height": 0,
|
|
157
|
-
* "width": 0
|
|
158
|
-
* },
|
|
159
|
-
* "level": "manual",
|
|
160
|
-
* "xpath": "/html[1]/head[1]/style[1]",
|
|
161
|
-
* "snippet": "<style type=\"text/css\">"
|
|
162
|
-
* }
|
|
163
|
-
* ....
|
|
164
|
-
* ]
|
|
165
|
-
* },
|
|
166
|
-
* {
|
|
167
|
-
* "frameIdx": "1",
|
|
168
|
-
* "frameTitle": "Frame 1",
|
|
169
|
-
* "issues": [
|
|
170
|
-
* {
|
|
171
|
-
* "severity": "High",
|
|
172
|
-
* "message": "The table element with WAI-ARIA presentation role has structural element(s) and/or attribute(s) td.",
|
|
173
|
-
* "messageCode": "rpt.g471.tableStructure",
|
|
174
|
-
* "ruleId": "471",
|
|
175
|
-
* "help": "idhi_accessibility_check_g471.html",
|
|
176
|
-
* "msgArgs": [
|
|
177
|
-
* "table",
|
|
178
|
-
* "td"
|
|
179
|
-
* ],
|
|
180
|
-
* "bounds": {
|
|
181
|
-
* "left": 10,
|
|
182
|
-
* "top": 990,
|
|
183
|
-
* "height": 219,
|
|
184
|
-
* "width": 335
|
|
185
|
-
* },
|
|
186
|
-
* "level": "violation",
|
|
187
|
-
* "xpath": "/html[1]/body[1]/div[2]/table[3]",
|
|
188
|
-
* "snippet": "<table id=\"layout_table3\" role=\"presentation\">"
|
|
189
|
-
* }
|
|
190
|
-
* ....
|
|
191
|
-
* ]
|
|
192
|
-
* }
|
|
193
|
-
* ]
|
|
194
|
-
* }
|
|
195
|
-
*
|
|
196
|
-
* PRIVATE METHOD
|
|
197
|
-
*
|
|
198
|
-
* @memberOf this
|
|
199
|
-
*/
|
|
200
|
-
static buildReport(inReport: Report, counts: ICheckerReportCounts, URL: any, label: any, startScan: any): ICheckerReport;
|
|
201
|
-
/**
|
|
202
|
-
* This function is responsible for indexing the results into global spaces based on label.
|
|
203
|
-
*
|
|
204
|
-
* @param {Object} results - Results object which will be provided to the user/wroten to the file.
|
|
205
|
-
* Refer to aChecker.buildReport function's return to figure out what the object
|
|
206
|
-
* will look like.
|
|
207
|
-
*
|
|
208
|
-
* @return - N/A - Global object is updated with the results
|
|
209
|
-
*
|
|
210
|
-
* PRIVATE METHOD
|
|
211
|
-
*
|
|
212
|
-
* @memberOf this
|
|
213
|
-
*/
|
|
214
|
-
static addResultsToGlobal: (results: ICheckerReport) => void;
|
|
215
|
-
/**
|
|
216
|
-
* This function is responsible for filtering the violations so that, only the violations levels that
|
|
217
|
-
* are provided in reportLevels are presented in the report.
|
|
218
|
-
*
|
|
219
|
-
* TODO: Possibly we can add this to the engine, so that the results are not provided by the engine
|
|
220
|
-
* when user has provided the reportLevels object.
|
|
221
|
-
*
|
|
222
|
-
* @param {Object} results - Provide the violation results, which follow the following format:
|
|
223
|
-
* {
|
|
224
|
-
* "report": {
|
|
225
|
-
* "numChecked": 227,
|
|
226
|
-
* "numTrigger": 1,
|
|
227
|
-
* "ruleTime": 5,
|
|
228
|
-
* "totalTime": 8,
|
|
229
|
-
* "issues": [
|
|
230
|
-
* {
|
|
231
|
-
* "severityCode": "eISHigh",
|
|
232
|
-
* "messageCode": "rpt.g377.elemUniqueId",
|
|
233
|
-
* "ruleId": "377",
|
|
234
|
-
* "help": "idhi_accessibility_check_g377.html",
|
|
235
|
-
* "msgArgs": [
|
|
236
|
-
* "div",
|
|
237
|
-
* "firstDiv"
|
|
238
|
-
* ],
|
|
239
|
-
* "xpath": "/html[1]/body[1]/div[2]/div[2]",
|
|
240
|
-
* "snippet": "<div id=\"firstDiv\">",
|
|
241
|
-
* "bounds": {
|
|
242
|
-
* "left": 10,
|
|
243
|
-
* "top": 181,
|
|
244
|
-
* "height": 0,
|
|
245
|
-
* "width": 1249
|
|
246
|
-
* },
|
|
247
|
-
* "level": "violation"
|
|
248
|
-
* }
|
|
249
|
-
* ],
|
|
250
|
-
* "docTitle": "Helo World"
|
|
251
|
-
* },
|
|
252
|
-
* "counts": {
|
|
253
|
-
* "level.violation": 1,
|
|
254
|
-
* "level.potentialviolation": 0,
|
|
255
|
-
* "level.recommendation": 0,
|
|
256
|
-
* "level.potentialrecommendation": 0,
|
|
257
|
-
* "level.manual": 0
|
|
258
|
-
* },
|
|
259
|
-
* "issueMessages": {
|
|
260
|
-
* "messages": {
|
|
261
|
-
* "rpt.g377.elemUniqueId": "The {0} element has the id \"{1}\" that is either empty or already in use."
|
|
262
|
-
* },
|
|
263
|
-
* "lang": "en-us"
|
|
264
|
-
* }
|
|
265
|
-
* }
|
|
266
|
-
*
|
|
267
|
-
* @return {Object} results - return results object which only contains the violation that were requested,
|
|
268
|
-
* follows the following format:
|
|
269
|
-
* {
|
|
270
|
-
* "report": {
|
|
271
|
-
* "numChecked": 227,
|
|
272
|
-
* "numTrigger": 1,
|
|
273
|
-
* "ruleTime": 5,
|
|
274
|
-
* "totalTime": 8,
|
|
275
|
-
* "issues": [
|
|
276
|
-
* {
|
|
277
|
-
* "severityCode": "eISHigh",
|
|
278
|
-
* "messageCode": "rpt.g377.elemUniqueId",
|
|
279
|
-
* "ruleId": "377",
|
|
280
|
-
* "help": "idhi_accessibility_check_g377.html",
|
|
281
|
-
* "msgArgs": [
|
|
282
|
-
* "div",
|
|
283
|
-
* "firstDiv"
|
|
284
|
-
* ],
|
|
285
|
-
* "xpath": "/html[1]/body[1]/div[2]/div[2]",
|
|
286
|
-
* "snippet": "<div id=\"firstDiv\">",
|
|
287
|
-
* "bounds": {
|
|
288
|
-
* "left": 10,
|
|
289
|
-
* "top": 181,
|
|
290
|
-
* "height": 0,
|
|
291
|
-
* "width": 1249
|
|
292
|
-
* },
|
|
293
|
-
* "level": "violation"
|
|
294
|
-
* }
|
|
295
|
-
* ],
|
|
296
|
-
* "docTitle": "Helo World"
|
|
297
|
-
* },
|
|
298
|
-
* "counts": {
|
|
299
|
-
* "level.violation": 1,
|
|
300
|
-
* "level.potentialviolation": 0,
|
|
301
|
-
* "level.recommendation": 0,
|
|
302
|
-
* "level.potentialrecommendation": 0,
|
|
303
|
-
* "level.manual": 0
|
|
304
|
-
* },
|
|
305
|
-
* "issueMessages": {
|
|
306
|
-
* "messages": {
|
|
307
|
-
* "rpt.g377.elemUniqueId": "The {0} element has the id \"{1}\" that is either empty or already in use."
|
|
308
|
-
* },
|
|
309
|
-
* "lang": "en-us"
|
|
310
|
-
* }
|
|
311
|
-
* }
|
|
312
|
-
*
|
|
313
|
-
* The return object is pretty much filtered failures (results.report.fail), wrapped around another object with extra frameIdx value.
|
|
314
|
-
*
|
|
315
|
-
* PRIVATE METHOD
|
|
316
|
-
*
|
|
317
|
-
* @memberOf this
|
|
318
|
-
*/
|
|
319
|
-
static filterViolations(report: Report): Report;
|
|
320
|
-
static setLevels(report: Report): Report;
|
|
321
|
-
/**
|
|
322
|
-
* This function is responsible for iterating over all the issue elements and updating the counts object.
|
|
323
|
-
*
|
|
324
|
-
* @param {Object} pageResults - Provide the page results object, in the following format:
|
|
325
|
-
* {
|
|
326
|
-
* "report": {
|
|
327
|
-
* "numChecked": 227,
|
|
328
|
-
* "numTrigger": 1,
|
|
329
|
-
* "ruleTime": 5,
|
|
330
|
-
* "totalTime": 8,
|
|
331
|
-
* "issues": [
|
|
332
|
-
* {
|
|
333
|
-
* "severityCode": "eISHigh",
|
|
334
|
-
* "messageCode": "rpt.g377.elemUniqueId",
|
|
335
|
-
* "ruleId": "377",
|
|
336
|
-
* "help": "idhi_accessibility_check_g377.html",
|
|
337
|
-
* "msgArgs": [
|
|
338
|
-
* "div",
|
|
339
|
-
* "firstDiv"
|
|
340
|
-
* ],
|
|
341
|
-
* "xpath": "/html[1]/body[1]/div[2]/div[2]",
|
|
342
|
-
* "snippet": "<div id=\"firstDiv\">",
|
|
343
|
-
* "bounds": {
|
|
344
|
-
* "left": 10,
|
|
345
|
-
* "top": 181,
|
|
346
|
-
* "height": 0,
|
|
347
|
-
* "width": 1249
|
|
348
|
-
* },
|
|
349
|
-
* "level": "violation"
|
|
350
|
-
* }
|
|
351
|
-
* ],
|
|
352
|
-
* "docTitle": "Helo World"
|
|
353
|
-
* },
|
|
354
|
-
* "counts": {
|
|
355
|
-
* "level.violation": 1,
|
|
356
|
-
* "level.potentialviolation": 0,
|
|
357
|
-
* "level.recommendation": 0,
|
|
358
|
-
* "level.potentialrecommendation": 0,
|
|
359
|
-
* "level.manual": 0
|
|
360
|
-
* },
|
|
361
|
-
* "issueMessages": {
|
|
362
|
-
* "messages": {
|
|
363
|
-
* "rpt.g377.elemUniqueId": "The {0} element has the id \"{1}\" that is either empty or already in use."
|
|
364
|
-
* },
|
|
365
|
-
* "lang": "en-us"
|
|
366
|
-
* }
|
|
367
|
-
* }
|
|
368
|
-
* ......
|
|
369
|
-
*
|
|
370
|
-
* @return {Object} pageResults - return the results object with the count object updated
|
|
371
|
-
* {
|
|
372
|
-
* "report": {
|
|
373
|
-
* "numChecked": 227,
|
|
374
|
-
* "numTrigger": 1,
|
|
375
|
-
* "ruleTime": 5,
|
|
376
|
-
* "totalTime": 8,
|
|
377
|
-
* "issues": [
|
|
378
|
-
* {
|
|
379
|
-
* "severityCode": "eISHigh",
|
|
380
|
-
* "messageCode": "rpt.g377.elemUniqueId",
|
|
381
|
-
* "ruleId": "377",
|
|
382
|
-
* "help": "idhi_accessibility_check_g377.html",
|
|
383
|
-
* "msgArgs": [
|
|
384
|
-
* "div",
|
|
385
|
-
* "firstDiv"
|
|
386
|
-
* ],
|
|
387
|
-
* "xpath": "/html[1]/body[1]/div[2]/div[2]",
|
|
388
|
-
* "snippet": "<div id=\"firstDiv\">",
|
|
389
|
-
* "bounds": {
|
|
390
|
-
* "left": 10,
|
|
391
|
-
* "top": 181,
|
|
392
|
-
* "height": 0,
|
|
393
|
-
* "width": 1249
|
|
394
|
-
* },
|
|
395
|
-
* "level": "violation"
|
|
396
|
-
* }
|
|
397
|
-
* ],
|
|
398
|
-
* "docTitle": "Helo World"
|
|
399
|
-
* },
|
|
400
|
-
* "counts": {
|
|
401
|
-
* "level.violation": 1,
|
|
402
|
-
* "level.potentialviolation": 0,
|
|
403
|
-
* "level.recommendation": 0,
|
|
404
|
-
* "level.potentialrecommendation": 0,
|
|
405
|
-
* "level.manual": 0
|
|
406
|
-
* },
|
|
407
|
-
* "issueMessages": {
|
|
408
|
-
* "messages": {
|
|
409
|
-
* "rpt.g377.elemUniqueId": "The {0} element has the id \"{1}\" that is either empty or already in use."
|
|
410
|
-
* },
|
|
411
|
-
* "lang": "en-us"
|
|
412
|
-
* }
|
|
413
|
-
* }
|
|
414
|
-
*
|
|
415
|
-
* PRIVATE METHOD
|
|
416
|
-
*
|
|
417
|
-
* @memberOf this
|
|
418
|
-
*/
|
|
419
|
-
static getCounts(report: Report): ICheckerReportCounts;
|
|
420
|
-
/**
|
|
421
|
-
* This function is responsible for updating/creating the global violation summary for the engine karma run
|
|
422
|
-
* for browser that it is running on. Will take the pageCount object which is part of the page object and
|
|
423
|
-
* add extract the values for each of the levels and add them to the global object. This will provide an overall
|
|
424
|
-
* summary of violations for all testcases run and all scans done.
|
|
425
|
-
*
|
|
426
|
-
* @param {Object} pageCount - Provide the page count object, in the following format:
|
|
427
|
-
*
|
|
428
|
-
* @return N/A - Global summary object is updated with the counts
|
|
429
|
-
*
|
|
430
|
-
* PRIVATE METHOD
|
|
431
|
-
*
|
|
432
|
-
* @memberOf this
|
|
433
|
-
*/
|
|
434
|
-
static addToSummaryCount(pageCount: ICheckerReportCounts): void;
|
|
435
|
-
/**
|
|
436
|
-
* This function is responsible for comparing the scan results with baseline or checking that there are
|
|
437
|
-
* no violations which fall into the failsLevels levels. In the case a baseline is found then baseline will
|
|
438
|
-
* be used to perform the check, in the case no baseline is provided then we comply with only failing if
|
|
439
|
-
* there is a sinble violation which falls into failLevels.
|
|
440
|
-
*
|
|
441
|
-
* @param {Object} actual - the actual results object provided by the user, this object should follow the
|
|
442
|
-
* same format as outlined in the return of aChecker.buildReport function.
|
|
443
|
-
*
|
|
444
|
-
* @return {int} - return 0 in the case actual matches baseline or no violations fall into failsLevels,
|
|
445
|
-
* return 1 in the case actual results does not match baseline results,
|
|
446
|
-
* return 2 in the case that there is a failure based on failLevels (this means no baseline found).
|
|
447
|
-
* return -1 in the case that there is an exception that occured in the results object which came from the scan engine.
|
|
448
|
-
*
|
|
449
|
-
* PUBLIC API
|
|
450
|
-
*
|
|
451
|
-
* @memberOf this
|
|
452
|
-
*/
|
|
453
|
-
static assertCompliance(actualResults: ReportResult): eAssertResult;
|
|
454
|
-
/**
|
|
455
|
-
* This function is responsible for checking if any of the issues reported have any level that falls
|
|
456
|
-
* into the failsLevel array.
|
|
457
|
-
*
|
|
458
|
-
* @param {Object} results - Provide the scan results, object which would be in the
|
|
459
|
-
* the same format as outlined in the return of aChecker.buildReport function.
|
|
460
|
-
*
|
|
461
|
-
* @return {int} - return 1 in the case a single issue was found which is in the failsLevel array.
|
|
462
|
-
* return -1 in the case that there is an exception that occured in the results object which came from the scan engine.
|
|
463
|
-
*
|
|
464
|
-
* PRIVATE METHOD
|
|
465
|
-
*
|
|
466
|
-
* @memberOf this
|
|
467
|
-
*/
|
|
468
|
-
static compareBasedOnFailLevels(report: any): 0 | 1 | -1;
|
|
469
|
-
/**
|
|
470
|
-
* This function is responsible for comparing actual with expected and returning all the differences as an array.
|
|
471
|
-
*
|
|
472
|
-
* @param {Object} actual - Provide the actual object to be used for compare
|
|
473
|
-
* @param {Object} expected - Provide the expected object to be used for compare
|
|
474
|
-
* @param {boolean} clean - Provide a boolean if both the actual and expected objects need to be cleaned
|
|
475
|
-
* cleaning refers to converting the objects to match with a basic compliance
|
|
476
|
-
* compare of xpath and ruleId.
|
|
477
|
-
*
|
|
478
|
-
* @return {Object} differences - return an array of diff objects that were found, following is the format of the object:
|
|
479
|
-
* [
|
|
480
|
-
* {
|
|
481
|
-
* "kind": "E",
|
|
482
|
-
* "path": [
|
|
483
|
-
* "reports",
|
|
484
|
-
* 0,
|
|
485
|
-
* "issues",
|
|
486
|
-
* 10,
|
|
487
|
-
* "xpath"
|
|
488
|
-
* ],
|
|
489
|
-
* "lhs": "/html[1]/body[1]/div[2]/table[5]",
|
|
490
|
-
* "rhs": "/html[1]/body[1]/div[2]/table[5]d",
|
|
491
|
-
* },
|
|
492
|
-
* {
|
|
493
|
-
* "kind": "E",
|
|
494
|
-
* "path": [
|
|
495
|
-
* "label"
|
|
496
|
-
* ],
|
|
497
|
-
* "lhs": "Table-layoutMultiple",
|
|
498
|
-
* "rhs": "dependencies/tools-rules-html/v2/a11y/test/g471/Table-layoutMultiple.html",
|
|
499
|
-
* }
|
|
500
|
-
* ]
|
|
501
|
-
*
|
|
502
|
-
* PUBLIC API
|
|
503
|
-
*
|
|
504
|
-
* @memberOf this
|
|
505
|
-
*/
|
|
506
|
-
static diffResultsWithExpected(actual: any, expected: any, clean: any): any;
|
|
507
|
-
/**
|
|
508
|
-
* This function is responsible for cleaning up the compliance baseline or actual results, based on
|
|
509
|
-
* a pre-defined set of criterias, such as the following:
|
|
510
|
-
* 1. No need to compare summary object
|
|
511
|
-
* 2. Only need to compare the ruleId and xpath in for each of the issues
|
|
512
|
-
*
|
|
513
|
-
* @param {Object} objectToClean - Provide either an baseline or actual results object which would be in the
|
|
514
|
-
* the same format as outlined in the return of aChecker.buildReport function.
|
|
515
|
-
*
|
|
516
|
-
* @return {Object} objectToClean - return an object that was cleaned to only contain the information that is
|
|
517
|
-
* needed for compare. Following is a sample of how the cleaned object will look like:
|
|
518
|
-
* {
|
|
519
|
-
* "label": "unitTestContent",
|
|
520
|
-
* "reports": [
|
|
521
|
-
* {
|
|
522
|
-
* "frameIdx": "0",
|
|
523
|
-
* "frameTitle": "Frame 0",
|
|
524
|
-
* "issues": [
|
|
525
|
-
* {
|
|
526
|
-
* "ruleId": "1",
|
|
527
|
-
* "xpath": "/html[1]/head[1]/style[1]"
|
|
528
|
-
* }
|
|
529
|
-
* ....
|
|
530
|
-
* ]
|
|
531
|
-
* },
|
|
532
|
-
* {
|
|
533
|
-
* "frameIdx": "1",
|
|
534
|
-
* "frameTitle": "Frame 1",
|
|
535
|
-
* "issues": [
|
|
536
|
-
* {
|
|
537
|
-
* "ruleId": "471",
|
|
538
|
-
* "xpath": "/html[1]/body[1]/div[2]/table[3]"
|
|
539
|
-
* }
|
|
540
|
-
* ....
|
|
541
|
-
* ]
|
|
542
|
-
* }
|
|
543
|
-
* ]
|
|
544
|
-
* }
|
|
545
|
-
*
|
|
546
|
-
* PRIVATE METHOD
|
|
547
|
-
*
|
|
548
|
-
* @memberOf this
|
|
549
|
-
*/
|
|
550
|
-
static cleanComplianceObjectBeforeCompare(objectToClean: any): any;
|
|
551
|
-
/**
|
|
552
|
-
* This function is responsible for getting the baseline object for a label that was provided.
|
|
553
|
-
*
|
|
554
|
-
* @param {String} label - Provide a lable for which to get the baseline for.
|
|
555
|
-
*
|
|
556
|
-
* @return {Object} - return the baseline object from global space based on label provided, the object will be
|
|
557
|
-
* in the same format as outlined in the return of aChecker.buildReport function.
|
|
558
|
-
*
|
|
559
|
-
* PUBLIC API
|
|
560
|
-
*
|
|
561
|
-
* @memberOf this
|
|
562
|
-
*/
|
|
563
|
-
static getBaseline(label: any): any;
|
|
564
|
-
/**
|
|
565
|
-
* This function is responsible for getting the diff results based on label for a scan that was already performed.
|
|
566
|
-
*
|
|
567
|
-
* @param {String} label - Provide a lable for which to get the diff results for.
|
|
568
|
-
*
|
|
569
|
-
* @return {Object} - return the diff results object from global space based on label provided, the object will be
|
|
570
|
-
* in the same format as outlined in the return of aChecker.diffResultsWithExpected function.
|
|
571
|
-
*
|
|
572
|
-
* PUBLIC API
|
|
573
|
-
*
|
|
574
|
-
* @memberOf this
|
|
575
|
-
*/
|
|
576
|
-
static getDiffResults(label: string): any;
|
|
577
|
-
/**
|
|
578
|
-
* This function is responsible for printing the scan results to console.
|
|
579
|
-
*
|
|
580
|
-
* @param {Object} results - Provide the results from the scan.
|
|
581
|
-
*
|
|
582
|
-
* @return {String} resultsString - String representation of the results/violations.
|
|
583
|
-
*
|
|
584
|
-
* PUBLIC API
|
|
585
|
-
*
|
|
586
|
-
* @memberOf this
|
|
587
|
-
*/
|
|
588
|
-
static stringifyResults(reportP: ReportResult): string;
|
|
589
|
-
static ignoreExtraBaselineViolations(actualReport: any, baselineReport: any): any;
|
|
590
|
-
}
|