testilo 41.5.7 → 41.5.9

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testilo",
3
- "version": "41.5.7",
3
+ "version": "41.5.9",
4
4
  "description": "Prepares Testaro jobs and processes Testaro reports",
5
5
  "main": "call.js",
6
6
  "scripts": {
@@ -905,7 +905,7 @@ exports.issues = {
905
905
  weight: 4,
906
906
  tools: {
907
907
  nuVal: {
908
- '^CSS: padding[-a-z]*: .+ negative values are not allowed\.$': {
908
+ '^CSS: padding[-a-z]*: .+ negative values are not allowed.*$': {
909
909
  variable: true,
910
910
  quality: 1,
911
911
  what: 'One of the CSS padding values is negative'
@@ -920,7 +920,7 @@ exports.issues = {
920
920
  weight: 4,
921
921
  tools: {
922
922
  nuVal: {
923
- '^CSS: gap: .+ negative values are not allowed\.$': {
923
+ '^CSS: gap: .+ negative values are not allowed.*$': {
924
924
  variable: true,
925
925
  quality: 1,
926
926
  what: 'CSS gap value is negative'
@@ -3079,7 +3079,7 @@ exports.issues = {
3079
3079
  weight: 4,
3080
3080
  tools: {
3081
3081
  nuVal: {
3082
- '^Saw a start tag [a-z]+\.$': {
3082
+ '^Saw a start tag [a-z]+.*$': {
3083
3083
  variable: true,
3084
3084
  quality: 1,
3085
3085
  what: 'Element does not exist in HTML'
@@ -3583,7 +3583,7 @@ exports.issues = {
3583
3583
  quality: 1,
3584
3584
  what: 'Attribute not allowed here'
3585
3585
  },
3586
- '^Attribute .+ is not serializable as XML 1\\.0.*$': {
3586
+ '^Attribute .+ is not serializable as XML 1[.]0.*$': {
3587
3587
  variable: true,
3588
3588
  quality: 1,
3589
3589
  what: 'Attribute is invalidly nonserializable'
@@ -5731,7 +5731,7 @@ exports.issues = {
5731
5731
  quality: 1,
5732
5732
  what: 'Table row has a column count larger than that of the first row'
5733
5733
  },
5734
- '^Table column \d+ established by element td has no cells beginning in it\.$': {
5734
+ '^Table column [0-9]+ established by element td has no cells beginning in it.*$': {
5735
5735
  variable: true,
5736
5736
  quality: 1,
5737
5737
  what: 'Element is td but the prior cells in its table column do not exist'
@@ -8824,7 +8824,7 @@ exports.issues = {
8824
8824
  quality: 1,
8825
8825
  what: 'Space is misused as a CSS operator'
8826
8826
  },
8827
- '^CSS: .+: , is an incorrect operator\.$': {
8827
+ '^CSS: .+: , is an incorrect operator.*$': {
8828
8828
  variable: true,
8829
8829
  quality: 1,
8830
8830
  what: 'Comma is misused as a CSS operator'
@@ -8894,7 +8894,7 @@ exports.issues = {
8894
8894
  quality: 1,
8895
8895
  what: 'Invalid closing tag'
8896
8896
  },
8897
- '^End tag [a-z]+\.$': {
8897
+ '^End tag [a-z]+.*$': {
8898
8898
  variable: true,
8899
8899
  quality: 1,
8900
8900
  what: 'Closing tag of an ineligible element'
@@ -8959,7 +8959,7 @@ exports.issues = {
8959
8959
  weight: 3,
8960
8960
  tools: {
8961
8961
  nuVal: {
8962
- '^Bad value [^\ufffd]+ Tab, new line or carriage return found.*$': {
8962
+ '^Bad value [^ ]+ Tab, new line or carriage return found.*$': {
8963
8963
  variable: true,
8964
8964
  quality: 1,
8965
8965
  what: 'Attribute value contains an illegal spacing character'
@@ -9124,12 +9124,12 @@ exports.issues = {
9124
9124
  quality: 1,
9125
9125
  what: 'Comment is missing a valid termination'
9126
9126
  },
9127
- '^Element name .+ cannot be represented as XML 1\\.0.*$': {
9127
+ '^Element name .+ cannot be represented as XML 1[.]0.*$': {
9128
9128
  variable: true,
9129
9129
  quality: 1,
9130
9130
  what: 'Invalid element name'
9131
9131
  },
9132
- '^Quote . in attribute name\. Probable cause: Matching quote missing somewhere earlier\.$': {
9132
+ '^Quote . in attribute name[.] Probable cause: Matching quote missing somewhere earlier.*$': {
9133
9133
  variable: true,
9134
9134
  quality: 1,
9135
9135
  what: 'Attribute name includes an apostrophe or double quotation mark'
@@ -37,6 +37,7 @@ const {issues} = require('./tic49');
37
37
  const scoreProcID = 'tsp49';
38
38
 
39
39
  // WEIGHT CONSTANTS
40
+
40
41
  // How much is added to the page score by each component.
41
42
 
42
43
  // 1. Issue
@@ -117,9 +118,9 @@ exports.scorer = report => {
117
118
  // If there are any acts in the report:
118
119
  const {acts} = report;
119
120
  if (Array.isArray(acts) && acts.length) {
120
- // If any of them are test acts:
121
121
  const testActs = acts.filter(act => act.type === 'test');
122
122
  const testTools = new Set(testActs.map(act => act.which));
123
+ // If any of them are test acts:
123
124
  if (testActs.length) {
124
125
  // Initialize the score data.
125
126
  const score = {
@@ -402,7 +403,7 @@ exports.scorer = report => {
402
403
  + summary.prevention
403
404
  + summary.log
404
405
  + summary.latency;
405
- // Add the score to the report or replace the existing score of the report.
406
+ // Add a, or replace the, score property of the report.
406
407
  report.score = score;
407
408
  }
408
409
  // Otherwise, i.e. if none of them is a test act: