Skip to content

Commit

Permalink
simplify exception box
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenmcohn committed Sep 25, 2019
1 parent 82e6ac8 commit 1117b79
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 21 deletions.
2 changes: 1 addition & 1 deletion TrxReporter/TrxReporter.css
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ h1 {
}

body {
font: 16px/20px "Trebuchet MS",Verdana,Arial,Helvetica,sans-serif;
font: 14px/18px "Trebuchet MS",Verdana,Arial,Helvetica,sans-serif;
margin-top: -10px;
min-width: 890px;
}
Expand Down
28 changes: 10 additions & 18 deletions TrxReporter/TrxReporter.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
<tr class="summaryLayout">
<td colspan="2" class="summaryLayout" style="vertical-align:top">
<div class="storage">
<xsl:value-of select="/t:TestRun/t:TestDefinitions/t:UnitTest/@storage" />
<xsl:value-of select="$storage" />
</div>
</td>
</tr>
Expand Down Expand Up @@ -228,7 +228,7 @@
</tr>
<tr id="{generate-id(@className)}TestsContainer">
<td colspan="2">
<div id="exceptionArrow"></div>
<div id="exceptionArrow">&#8627;</div>
<table>
<thead>
<tr class="odd">
Expand Down Expand Up @@ -289,7 +289,7 @@
<xsl:call-template name="BuildStatusColumn">
<xsl:with-param name="outcome" select="/t:TestRun/t:Results/t:UnitTestResult[@testId=$testId]/@outcome" />
</xsl:call-template>

<td class="Function slowest">
<xsl:value-of select="pens:RemoveAssemblyName(/t:TestRun/t:TestDefinitions/t:UnitTest[@id=$testId]/t:TestMethod/@className)"/>
.<xsl:value-of select="@testName"/>
Expand Down Expand Up @@ -490,21 +490,13 @@
<xsl:if test="$StdErr or $MessageErrorInfo">
<xsl:variable name="trace" select="/t:TestRun/t:Results/t:UnitTestResult[@testId=$testId]/t:Output/t:ErrorInfo/t:StackTrace" />
<div class="stacktrace visibleRow" id="{generate-id($testId)}Stacktrace">
<div id="exceptionArrow">↳</div>
<table>
<tbody>
<tr class="visibleRow">
<td class="ex">
<div class="exScroller">
<pre class="exMessage">
<!-- trim off the first space char -->
<xsl:value-of select="substring($trace,2)" />
</pre>
</div>
</td>
</tr>
</tbody>
</table>
<div id="exceptionArrow">&#8627;</div>
<div class="exScroller">
<pre class="exMessage">
<!-- trim off the first space char -->
<xsl:value-of select="substring($trace,2)" />
</pre>
</div>
</div>
</xsl:if>

Expand Down
6 changes: 4 additions & 2 deletions TrxReporter/TrxReporterTable.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ tr.sep .ex,
td.ex {
width: calc(100% - 100px);
text-align: left;
max-width: 1000px;
max-width: 800px;
}
div.exMessage {
color: #c71010;
Expand All @@ -83,8 +83,10 @@ pre.exMessage {
color: #800000;
}
div.exScroller {
width: 100%;
width: calc(100% - 50px);
overflow-x: scroll;
margin: 1em auto;
border: 1px solid #a2caf2;
}

div.times {
Expand Down

0 comments on commit 1117b79

Please sign in to comment.