continue;
var row = new ResultsTableRow(`${startConfig} to ${endConfig}`, null);
- row.setLabelForWholeRow(result.fullLabel);
+ var element = ComponentBase.createElement;
+ row.setLabelForWholeRow(element('span', {class: 'results-label ' + result.status}, result.fullLabel));
comparisonRows.push(row);
}
}
return groups;
}
+
+ static cssTemplate()
+ {
+ return super.cssTemplate() + `
+ .results-label {
+ padding: 0.1rem;
+ width: 100%;
+ height: 100%;
+ }
+
+ .results-label .failed {
+ color: rgb(128, 51, 128);
+ }
+ .results-label .unchanged {
+ color: rgb(128, 128, 128);
+ }
+ .results-label.worse {
+ color: rgb(255, 102, 102);
+ font-weight: bold;
+ }
+ .results-label.better {
+ color: rgb(102, 102, 255);
+ font-weight: bold;
+ }
+ `;
+ }
}
ComponentBase.defineElement('test-group-results-table', TestGroupResultsTable);