Revision: d461384d0ccd
Author: Pekka Klärck
Date: Wed Jan 4 15:46:43 2012
Log: Fixed statistics graph in log/report when combined tag matches no
tag.
Now the graph is again gray, and not red, in this special case.
Update issue 920
Status: Done
Fixed the graph.
http://code.google.com/p/robotframework/source/detail?r=d461384d0ccd
Modified:
/src/robot/webcontent/view.js
=======================================
--- /src/robot/webcontent/view.js Tue Dec 20 04:56:22 2011
+++ /src/robot/webcontent/view.js Wed Jan 4 15:46:43 2012
@@ -1,5 +1,5 @@
function removeJavaScriptDisabledWarning() {
- // Not using jQuery here for speed and to support angient browsers.
+ // Not using jQuery here for speed and to support ancient browsers.
document.getElementById('javascript_disabled').style.display = 'none';
}
@@ -107,10 +107,14 @@
'<td class="col_stat">${pass}</td>' +
'<td class="col_stat">${fail}</td>' +
'<td class="col_graph">' +
+ '{{if total}}' +
'<div class="graph">' +
'<div class="pass_bar" style="width: ${passWidth}%;"
title="${passPercent}%"></div>' +
'<div class="fail_bar" style="width: ${failWidth}%;"
title="${failPercent}%"></div>' +
'</div>' +
+ '{{else}}' +
+ '<div class="empty_graph"></div>' +
+ '{{/if}}' +
'</td>'
);