Skip to content

Commit 6cf6535

Browse files
committed
Fix rendering issue of before and after raw data labels
1 parent 29c41d1 commit 6cf6535

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

site/static/compare.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -554,14 +554,18 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
554554
:cases="testCases.filter(c => c.category === 'primary')"
555555
:show-raw-data="showRawData"
556556
:commit-a="data.a.commit"
557-
:commit-b="data.b.commit"></test-cases-table>
557+
:commit-b="data.b.commit"
558+
:before="before"
559+
:after="after"></test-cases-table>
558560
<hr />
559561
<test-cases-table
560562
title="Secondary"
561563
:cases="testCases.filter(c => c.category === 'secondary')"
562564
:show-raw-data="showRawData"
563565
:commit-a="data.a.commit"
564-
:commit-b="data.b.commit"></test-cases-table>
566+
:commit-b="data.b.commit"
567+
:before="before"
568+
:after="after"></test-cases-table>
565569
<br />
566570
<hr />
567571
<div>
@@ -631,7 +635,7 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
631635
}
632636
});
633637
Vue.component('test-cases-table', {
634-
props: ['cases', 'showRawData', 'commitA', 'commitB', 'title'],
638+
props: ['cases', 'showRawData', 'commitA', 'commitB', 'before', 'after', 'title'],
635639
methods: {
636640
detailedQueryLink(commit, testCase) {
637641
return `/detailed-query.html?commit=${commit}&benchmark=${testCase.benchmark + "-" + testCase.profile}&scenario=${testCase.scenario}`;
@@ -664,8 +668,8 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
664668
</span>
665669
</span>
666670
</th>
667-
<th v-if="showRawData">{{before}}</th>
668-
<th v-if="showRawData">{{after}}</th>
671+
<th v-if="showRawData">{{ before }}</th>
672+
<th v-if="showRawData">{{ after }}</th>
669673
</tr>
670674
</thead>
671675
<tbody>

0 commit comments

Comments
 (0)