Skip to content

Commit

Permalink
remove rounding on test results page (#4145)
Browse files Browse the repository at this point in the history
Co-authored-by: DanielRyanSmith <[email protected]>
  • Loading branch information
DanielRyanSmith and DanielRyanSmith authored Dec 10, 2024
1 parent fd1b66a commit af99fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/views/wpt-results.js
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,7 @@ class WPTResults extends AmendMetadataMixin(Pluralizer(WPTColors(WPTFlags(PathIn
return `${this.getTestNumbersDisplay(passes, total, isDir)} subtests`;
}

const formatPercent = parseFloat((passes / total * 100).toFixed(1));
const formatPercent = parseFloat((Math.floor(passes / total * 1000)) / 10);
let cellDisplay = '';
// Show flat 0% or 100% only if none or all tests/subtests pass.
if (passes === 0) {
Expand Down

0 comments on commit af99fd3

Please sign in to comment.