testilo 41.5.7 → 41.5.8
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 +1 -1
- package/procs/score/tic49.js +7 -7
- package/procs/score/tsp49.js +3 -2
package/package.json
CHANGED
package/procs/score/tic49.js
CHANGED
|
@@ -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'
|
|
@@ -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 \d+ 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'
|
|
@@ -9129,7 +9129,7 @@ exports.issues = {
|
|
|
9129
9129
|
quality: 1,
|
|
9130
9130
|
what: 'Invalid element name'
|
|
9131
9131
|
},
|
|
9132
|
-
'^Quote . in attribute name
|
|
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'
|
package/procs/score/tsp49.js
CHANGED
|
@@ -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
|
|
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:
|