From 0b33ba7e5322e838edddca2cad31aae0b51192f8 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 10 Jan 2011 15:17:38 +0000 Subject: [PATCH] * Clean up the presentation of the log file a bit. svn path=/nixos/trunk/; revision=25493 --- lib/test-driver/log2html.xsl | 17 +++++++++++++++-- lib/test-driver/logfile.css | 19 +++++++++++++++++++ lib/test-driver/treebits.js | 4 ++-- 3 files changed, 36 insertions(+), 4 deletions(-) diff --git a/lib/test-driver/log2html.xsl b/lib/test-driver/log2html.xsl index cf7f8f8c0577..d41584f6b90e 100644 --- a/lib/test-driver/log2html.xsl +++ b/lib/test-driver/log2html.xsl @@ -16,8 +16,11 @@ Log File - [Expand all] - [Collapse all] +

VM build log

+

+ Expand all | + Collapse all +

+ + +

Screenshots

+ +
+ diff --git a/lib/test-driver/logfile.css b/lib/test-driver/logfile.css index a7f83b4c9256..a54d8504a867 100644 --- a/lib/test-driver/logfile.css +++ b/lib/test-driver/logfile.css @@ -3,6 +3,16 @@ body { background: white; } +h1 +{ + color: #005aa0; + font-size: 180%; +} + +a { + text-decoration: none; +} + ul.nesting, ul.toplevel { padding: 0; @@ -108,3 +118,12 @@ code { color: #002399; font-style: italic; } + +ul.vmScreenshots { + padding-left: 1em; +} + +ul.vmScreenshots li { + font-family: monospace; + list-style: square; +} diff --git a/lib/test-driver/treebits.js b/lib/test-driver/treebits.js index d88ac075fd9e..271ec9e40314 100644 --- a/lib/test-driver/treebits.js +++ b/lib/test-driver/treebits.js @@ -23,7 +23,7 @@ $(document).ready(function() { /* Implementation of the expand all link. */ $(".logTreeExpandAll").click(function() { - $(".logTreeToggle", $(this).siblings(".toplevel")).map(function() { + $(".logTreeToggle", $(this).parent().siblings(".toplevel")).map(function() { $(this).siblings("ul").show(); $(this).text("-"); }); @@ -31,7 +31,7 @@ $(document).ready(function() { /* Implementation of the collapse all link. */ $(".logTreeCollapseAll").click(function() { - $(".logTreeToggle", $(this).siblings(".toplevel")).map(function() { + $(".logTreeToggle", $(this).parent().siblings(".toplevel")).map(function() { $(this).siblings("ul").hide(); $(this).text("+"); });