Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
Removed the "Winning %" column.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Resig committed Dec 4, 2008
1 parent 798feb2 commit 2fa248a
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions dep/web/webrunner.js
Expand Up @@ -519,7 +519,8 @@
output += "<tr><td></td>";
for ( var run in runs )
output += "<th><a href='?id=" + run + "'>" + runs[run].name + "</a></th>";
output += "<th>Winning %</th></tr>";
//output += "<th>Winning %</th></tr>";
output += "</tr>";

for ( var result in results ) {
// Skip results that we're filtering out
Expand All @@ -545,7 +546,7 @@
output += "<td class='" + (tmp[run] || '') + "'>" + mean.toFixed(2) + "<small>" + runStyle + " &#177;" + ((error / mean) * 100).toFixed(2) + "%</small></td>";
}

showWinner(tmp);
//showWinner(tmp);
output += "</tr>";

var _tests = results[result].tests, _data = _tests[run], _num = _data.length;
Expand Down Expand Up @@ -574,10 +575,10 @@
}

for ( var run in runs ) {
output += "<th class='name " + (tmp[run] || '') + "'>" + runs[run].mean.toFixed(2) + "<small>" + (runStyle === "runs/s" ? "" : runStyle) + " &#177;" + ((runs[run].error / runs[run].mean) * 100).toFixed(2) + "%</small></th>";
output += "<th class='name " + (tmp[run] || '') + "' title='" + (tmp[run + "title"] || '') + "'>" + runs[run].mean.toFixed(2) + "<small>" + (runStyle === "runs/s" ? "" : runStyle) + " &#177;" + ((runs[run].error / runs[run].mean) * 100).toFixed(2) + "%</small></th>";
}

showWinner(tmp);
//showWinner(tmp);
output += "</tr>";

overview.className = "";
Expand Down Expand Up @@ -685,8 +686,14 @@
if ( ret.tie ) {
ret[ min ] = 'tie';
ret[ min2 ] = 'tie';
} else
ret[ min + 'title' ] = "Tied with another run.";
ret[ min2 + 'title' ] = "Tied with another run.";
} else {
ret[ min ] = 'winner';
if ( min2Val > -1 ) {
ret[ min + 'title' ] = "Won by " + ret.diff + "%.";
}
}

return ret;
}
Expand Down

0 comments on commit 2fa248a

Please sign in to comment.