testilo 32.1.0 → 32.2.2

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 (2) hide show
  1. package/package.json +1 -1
  2. package/procs/score/tic40.js +107 -32
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testilo",
3
- "version": "32.1.0",
3
+ "version": "32.2.2",
4
4
  "description": "Prepares and processes Testaro reports",
5
5
  "main": "call.js",
6
6
  "scripts": {
@@ -28,18 +28,6 @@ exports.issues = {
28
28
  wcag: '',
29
29
  weight: 0,
30
30
  tools: {
31
- alfa: {
32
- r66: {
33
- variable: false,
34
- quality: 1,
35
- what: 'Text contrast less than AAA requires [invalid]'
36
- },
37
- r69: {
38
- variable: false,
39
- quality: 1,
40
- what: 'Text outside widget has subminimum contrast [invalid, reported as issue 1582]'
41
- }
42
- },
43
31
  aslint: {
44
32
  color_contrast_aa: {
45
33
  variable: false,
@@ -3793,6 +3781,13 @@ exports.issues = {
3793
3781
  wcag: '1.4.3',
3794
3782
  weight: 4,
3795
3783
  tools: {
3784
+ alfa: {
3785
+ r69: {
3786
+ variable: false,
3787
+ quality: 1,
3788
+ what: 'Text outside widget has subminimum contrast'
3789
+ }
3790
+ },
3796
3791
  aslint: {
3797
3792
  'color_contrast_state_pseudo_classes_abstract3': {
3798
3793
  variable: false,
@@ -3888,6 +3883,13 @@ exports.issues = {
3888
3883
  wcag: '1.4.6',
3889
3884
  weight: 1,
3890
3885
  tools: {
3886
+ alfa: {
3887
+ r66: {
3888
+ variable: false,
3889
+ quality: 1,
3890
+ what: 'Text contrast less than AAA requires'
3891
+ }
3892
+ },
3891
3893
  aslint: {
3892
3894
  'color_contrast_aaa': {
3893
3895
  variable: false,
@@ -3939,6 +3941,13 @@ exports.issues = {
3939
3941
  wcag: '1.4.3',
3940
3942
  weight: 1,
3941
3943
  tools: {
3944
+ alfa: {
3945
+ cantTellContrast: {
3946
+ variable: false,
3947
+ quality: 1,
3948
+ what: 'Test of text contrast could not give a conclusive result'
3949
+ }
3950
+ },
3942
3951
  aslint: {
3943
3952
  color_contrast_state_pseudo_classes_abstractF: {
3944
3953
  variable: false,
@@ -4027,7 +4036,7 @@ exports.issues = {
4027
4036
  weight: 4,
4028
4037
  tools: {
4029
4038
  nuVal: {
4030
- '^Bad value for attribute .+ on element .+: An ID must not be the empty string.+$': {
4039
+ '^Bad value for attribute .+ on element .+: An ID must not be the empty string.*$': {
4031
4040
  variable: true,
4032
4041
  quality: 1,
4033
4042
  what: 'id attribute has an empty value'
@@ -6403,6 +6412,21 @@ exports.issues = {
6403
6412
  }
6404
6413
  }
6405
6414
  },
6415
+ documentConfusion: {
6416
+ summary: 'document elements not distinctly named',
6417
+ why: 'User cannot get help on how some of the document is organized',
6418
+ wcag: '1.3.6',
6419
+ weight: 3,
6420
+ tools: {
6421
+ ibm: {
6422
+ aria_document_label_unique: {
6423
+ variable: false,
6424
+ quality: 1,
6425
+ what: 'Multiple elements with a document role have no unique labels'
6426
+ }
6427
+ }
6428
+ }
6429
+ },
6406
6430
  formConfusion: {
6407
6431
  summary: 'forms not distinctly named',
6408
6432
  why: 'User cannot get help on how some of the document is organized',
@@ -7929,7 +7953,7 @@ exports.issues = {
7929
7953
  quality: 1,
7930
7954
  what: 'border element is obsolete'
7931
7955
  },
7932
- '^The .+ attribute on the .+ element is obsolete.+$': {
7956
+ '^The .+ attribute on the .+ element is obsolete.*$': {
7933
7957
  variable: true,
7934
7958
  quality: 1,
7935
7959
  what: 'Attribute is obsolete on its element'
@@ -7944,7 +7968,7 @@ exports.issues = {
7944
7968
  quality: 1,
7945
7969
  what: 'name attribute is obsolete'
7946
7970
  },
7947
- '^Potentially bad value .+ for attribute .+ on element .+: The language subtag .+ is deprecated.+$': {
7971
+ '^Potentially bad value .+ for attribute .+ on element .+: The language subtag .+ is deprecated.*$': {
7948
7972
  variable: true,
7949
7973
  quality: 1,
7950
7974
  what: 'Attribute value is a deprecated language subtag'
@@ -8148,7 +8172,7 @@ exports.issues = {
8148
8172
  quality: 1,
8149
8173
  what: 'Invalid CSS'
8150
8174
  },
8151
- '^CSS: .+: Too many values or values are not recognized.+$': {
8175
+ '^CSS: .+: Too many values or values are not recognized.*$': {
8152
8176
  variable: true,
8153
8177
  quality: 1,
8154
8178
  what: 'Invalid CSS value or too many values'
@@ -8373,11 +8397,6 @@ exports.issues = {
8373
8397
  weight: 3,
8374
8398
  tools: {
8375
8399
  nuVal: {
8376
- 'Text run is not in Unicode Normalization Form C.': {
8377
- variable: false,
8378
- quality: 1,
8379
- what: 'Text run is not in Unicode Normalization Form C.'
8380
- },
8381
8400
  '^The text content of element .+ was not in the required format: Expected .+ but found .+ instead.*$': {
8382
8401
  variable: true,
8383
8402
  quality: 1,
@@ -8463,16 +8482,6 @@ exports.issues = {
8463
8482
  quality: 1,
8464
8483
  what: 'Invalid element name'
8465
8484
  },
8466
- '^Forbidden code point U+.+$': {
8467
- variable: true,
8468
- quality: 1,
8469
- what: 'Invalid Unicode code point'
8470
- },
8471
- '^Internal encoding declaration .+ disagrees with the actual encoding of the document.*$': {
8472
- variable: true,
8473
- quality: 1,
8474
- what: 'Encoding declaration disagrees with the actual encoding of the page'
8475
- },
8476
8485
  'Quote \" in attribute name. Probable cause: Matching quote missing somewhere earlier.': {
8477
8486
  variable: false,
8478
8487
  quality: 1,
@@ -8512,6 +8521,16 @@ exports.issues = {
8512
8521
  variable: true,
8513
8522
  quality: 1,
8514
8523
  what: 'Idle timeout expired'
8524
+ },
8525
+ 'style element between head and body.': {
8526
+ variable: false,
8527
+ quality: 1,
8528
+ what: 'style element exists between the head and the body elements'
8529
+ },
8530
+ '^HTML start tag .+ in a foreign namespace context.*$': {
8531
+ variable: true,
8532
+ quality: 1,
8533
+ what: 'Element is invalid because its namespace is not HTML'
8515
8534
  }
8516
8535
  },
8517
8536
  qualWeb: {
@@ -8545,6 +8564,47 @@ exports.issues = {
8545
8564
  }
8546
8565
  }
8547
8566
  },
8567
+ encodingMisdeclared: {
8568
+ summary: 'text not Unicode-compliant',
8569
+ why: 'User cannot read all of the text',
8570
+ wcag: '3.1.3',
8571
+ weight: 4,
8572
+ max: 1,
8573
+ tools: {
8574
+ nuVal: {
8575
+ '^Internal encoding declaration .+ disagrees with the actual encoding of the document.*$': {
8576
+ variable: true,
8577
+ quality: 1,
8578
+ what: 'Encoding declaration disagrees with the actual encoding of the page'
8579
+ }
8580
+ }
8581
+ }
8582
+ },
8583
+ encodingBad: {
8584
+ summary: 'text not Unicode-compliant',
8585
+ why: 'User cannot read all of the text',
8586
+ wcag: '3.1.3',
8587
+ weight: 4,
8588
+ tools: {
8589
+ nuVal: {
8590
+ 'Text run is not in Unicode Normalization Form C.': {
8591
+ variable: false,
8592
+ quality: 1,
8593
+ what: 'Text run is not in Unicode Normalization Form C.'
8594
+ },
8595
+ '^The value of attribute .+ on element .+ from namespace .+ is not in Unicode Normalization Form C.*$': {
8596
+ variable: true,
8597
+ quality: 1,
8598
+ what: 'Value of attribute is not in Unicode Normalization Form C.'
8599
+ },
8600
+ '^Forbidden code point U+.*$': {
8601
+ variable: true,
8602
+ quality: 1,
8603
+ what: 'Invalid Unicode code point'
8604
+ }
8605
+ }
8606
+ }
8607
+ },
8548
8608
  encodingPrivate: {
8549
8609
  summary: 'text in Private Use Area',
8550
8610
  why: 'User cannot read all of the text',
@@ -8599,8 +8659,23 @@ exports.issues = {
8599
8659
  }
8600
8660
  },
8601
8661
  notValidatable: {
8662
+ summary: 'item makes testing inconclusive',
8663
+ why: 'Item prevents a conclusive accessibility test',
8664
+ wcag: '4.1',
8665
+ weight: 1,
8666
+ tools: {
8667
+ alfa: {
8668
+ cantTell: {
8669
+ variable: false,
8670
+ quality: 1,
8671
+ what: 'Test could not give a conclusive result'
8672
+ }
8673
+ }
8674
+ }
8675
+ },
8676
+ svgNotValidatable: {
8602
8677
  summary: 'SVG version not 1.1',
8603
- why: 'Item prevents testing for accessibility',
8678
+ why: 'Item prevents testing image for accessibility',
8604
8679
  wcag: '4.1',
8605
8680
  weight: 1,
8606
8681
  tools: {