@@ -38,7 +38,8 @@ function parseDateString (date) {
3838function toolTip ( date , wpt_sha , servo_version , score , engine ) {
3939 return `
4040 <b>${ formatDate ( date ) } </b></br>
41- Score: <b>${ score / 10 } </b></br>
41+ Score: <b>${ score . per_mille / 10 } </b></br>
42+ Subtests: <b>${ score . per_mille_subtests / 10 } %</b></br>
4243 WPT: ${ wpt_sha } </br>
4344 Servo (${ engine } ): ${ servo_version }
4445 `
@@ -129,7 +130,8 @@ function setupChart () {
129130 table . addColumn ( 'date' , 'runOn' )
130131
131132 options . series . push ( { color : dark_mode ? '#CC9933' : '#3366CC' } )
132- table . addColumn ( 'number' , 'Servo' )
133+ table . addColumn ( 'number' , 'Score' )
134+ table . addColumn ( 'number' , 'Subtests' )
133135 table . addColumn ( { type : 'string' , role : 'tooltip' , p : { html : true } } )
134136
135137 for ( const scores_for_run of all_scores . scores ) {
@@ -141,7 +143,8 @@ function setupChart () {
141143 }
142144 const row = [
143145 date ,
144- area_score / 1000 ,
146+ area_score . per_mille / 1000 ,
147+ area_score . per_mille_subtests / 1000 ,
145148 toolTip ( date , wpt_sha , browser_version , area_score , 'Servo' )
146149 ]
147150 table . addRow ( row )
@@ -166,7 +169,8 @@ function setupChart () {
166169 'beforeend' ,
167170 `<tr class="${ idx % 2 ? 'odd' : 'even' } ">
168171 <td>${ scores . focus_areas [ area ] } </td>
169- <td class="score">${ String ( recent_score [ idx + AREA_SCORE_OFFSET ] / 10 ) . padEnd ( 4 , '.0' ) } %</td>
172+ <td class="score">${ String ( recent_score [ idx + AREA_SCORE_OFFSET ] . per_mille / 10 ) . padEnd ( 4 , '.0' ) } </td>
173+ <td class="score">(${ String ( recent_score [ idx + AREA_SCORE_OFFSET ] . total_subtests_passed ) } /${ String ( recent_score [ idx + AREA_SCORE_OFFSET ] . total_subtests ) } ) ${ String ( recent_score [ idx + AREA_SCORE_OFFSET ] . per_mille_subtests / 10 ) . padEnd ( 4 , '.0' ) } % </td>
170174 </tr>`
171175 )
172176 }
0 commit comments