accessibility-checker 3.1.0 → 3.1.4

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