2 new revisions:

Revision: 616819f0331e
Author:   Pekka Klärck
Date:     Tue Aug 28 02:26:48 2012
Log:      log/report: same th background in stats as elsewhere
http://code.google.com/p/robotframework/source/detail?r=616819f0331e

Revision: 2afb92f51b03
Author:   Pekka Klärck
Date:     Tue Aug 28 03:07:00 2012
Log: Fixed problems showing total, tag, or suite name when printing tests i...
http://code.google.com/p/robotframework/source/detail?r=2afb92f51b03

==============================================================================
Revision: 616819f0331e
Author:   Pekka Klärck
Date:     Tue Aug 28 02:26:48 2012
Log:      log/report: same th background in stats as elsewhere
http://code.google.com/p/robotframework/source/detail?r=616819f0331e

Modified:
 /src/robot/htmldata/rebot/common.css

=======================================
--- /src/robot/htmldata/rebot/common.css        Tue Aug 28 00:37:48 2012
+++ /src/robot/htmldata/rebot/common.css        Tue Aug 28 02:26:48 2012
@@ -103,7 +103,7 @@
     padding: 0.1em 0.3em;
 }
 .statistics th {
-    background-color: #DCDCDC;
+    background-color: #DCDCF0;
 }
 .stats_col_stat {
     width: 3em;

==============================================================================
Revision: 2afb92f51b03
Author:   Pekka Klärck
Date:     Tue Aug 28 03:07:00 2012
Log: Fixed problems showing total, tag, or suite name when printing tests in report

Update issue 1211
Status: Done
http://code.google.com/p/robotframework/source/detail?r=2afb92f51b03

Modified:
 /src/robot/htmldata/rebot/report.html

=======================================
--- /src/robot/htmldata/rebot/report.html       Tue Aug 28 00:37:48 2012
+++ /src/robot/htmldata/rebot/report.html       Tue Aug 28 03:07:00 2012
@@ -122,7 +122,7 @@
     if (!name) return;
     renderTotalSelector(name);
     renderTotalDetails(name);
-    $('#print_selector').text(name);
+ updatePrintSelector(name == 'critical' ? 'Critical Tests' : 'All Tests');
     scrollToSelector('total_'+name);
 }

@@ -139,6 +139,12 @@
     $.tmpl('tagOrTotalDetailsTemplate', stat).appendTo('#details_header');
     drawTestDetailsTable(tests, true);
 }
+
+function updatePrintSelector(name, info) {
+    if (info)
+        name += ' (' + info + ')';
+    $('#print_selector').html(name);
+}

 function tagDetailSelected(name) {
     if (!name) return;
@@ -147,7 +153,7 @@
         return tag.label == name;
     })[0];
     renderTagDetails(tag);
-    $('#print_selector').text(name);
+    updatePrintSelector(name, tag.info);
     scrollToSelector('tag_'+name);
 }

@@ -185,7 +191,7 @@
         var opts = {logURL: window.settings.logURL};
$.tmpl('suiteDetailsTemplate', suite, opts).appendTo('#details_header');
         drawTestDetailsTable(suite.allTests(), false);
-        $('#print_selector').text(suite.name);
+        updatePrintSelector(suite.fullName);
     });
 }

Reply via email to