Skip to content

Commit a97ae95

Browse files
committed
Remove duplicated information on tooltip for wpt.servo.org chart
Signed-off-by: Manuel Rego Casasnovas <[email protected]>
1 parent df62747 commit a97ae95

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

assets/js/load-chart.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ function parseDateString (date) {
3535
return new Date(y, m - 1, d)
3636
}
3737

38-
function toolTip (date, wpt_sha, servo_version, score, engine) {
38+
function toolTip (date, wpt_sha, servo_version, score) {
3939
return `
4040
<b>${formatDate(date)}</b></br>
4141
Score: <b>${Math.floor(1000 * score.total_score / score.total_tests) / 10}%</b></br>
4242
Subtests: <b>${Math.floor(1000 * score.total_subtests_passed / score.total_subtests) / 10}%</b></br>
4343
WPT: ${wpt_sha}</br>
44-
Servo (${engine}): ${servo_version}
44+
Version: ${servo_version}
4545
`
4646
}
4747

@@ -145,9 +145,9 @@ function setupChart () {
145145
const row = [
146146
date,
147147
area_score.total_score / area_score.total_tests,
148-
toolTip(date, wpt_sha, browser_version, area_score, 'Servo'),
148+
toolTip(date, wpt_sha, browser_version, area_score),
149149
area_score.total_subtests_passed / area_score.total_subtests,
150-
toolTip(date, wpt_sha, browser_version, area_score, 'Servo')
150+
toolTip(date, wpt_sha, browser_version, area_score)
151151
]
152152
table.addRow(row)
153153
}

0 commit comments

Comments
 (0)