Permalink
Browse files

GH-38: Fancy mutual highlighting if tests and console output regions.

  • Loading branch information...
1 parent b0c0216 commit d65b08d2cffa0a8782e5a3de593c16de28108d46 @stanislawosinski stanislawosinski committed Feb 17, 2012
Showing with 22 additions and 5 deletions.
  1. +15 −3 scratch/report/css/style.css
  2. +1 −1 scratch/report/index.html
  3. +6 −1 scratch/report/js/script.js
@@ -637,14 +637,15 @@ td > em {
position: relative;
right: 300px;
width: 280px;
- text-align: right;
margin-bottom: 2px;
+ text-align: right;
}
.side > div > span {
padding: 1px 4px;
font-family: sans-serif;
font-size: 12px;
+ display: inline-block;
}
.side .suitefailure {
@@ -686,8 +687,19 @@ td > em {
color: red;
}
-.highlight {
- background-color: rgba(255, 245, 159, 0.57);
+.highlight.out,
+.highlight.err {
+ background-color: rgb(255, 247, 199);
+}
+
+.suitebox.highlight .label {
+ opacity: 0.35;
+ -webkit-transition: all 0.3s ease-out;
+}
+.suitebox .label,
+.suitebox.highlight .label.highlight {
+ opacity: 1.0;
+ -webkit-transition: all 0.3s ease-out;
}
@@ -32,7 +32,7 @@
<script>window.jQuery || document.write('<script src="js/jquery-1.7.1.min.js"><\/script>')</script>
<script src="js/script.js"></script>
<script src="js/jquery.pathchange.js"></script>
- <script src="report-solr.jsonp"></script>
+ <script src="report-examples.jsonp"></script>
<!--
<script src="report-examples.jsonp"></script>
<script src="report-lucene.jsonp"></script>
@@ -486,7 +486,12 @@
// Console output, invisible by default
$console = $("<div id='console' />").hide().appendTo($results);
$console.delegate('span[class ~= "label"]', "mouseenter mouseleave", function() {
- $(this).parent().closest("span.test").toggleClass("highlight");
+ $(this).parent().parent().next().add(this).toggleClass("highlight");
+ $(this).closest(".suitebox").toggleClass("highlight");
+ });
+ $console.delegate('span[class ~= "out"], span[class ~= "err"]', "mouseenter mouseleave", function() {
+ $(this).prev().children().eq(0).children().eq(0).add(this).toggleClass("highlight");
+ $(this).closest(".suitebox").toggleClass("highlight");
});
// Bind listeners

0 comments on commit d65b08d

Please sign in to comment.