Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (25 sloc) 1.02 KB
<div class="outer-box <% if (results.passed == results.total) {%>green<%}else{%>red<%}%>">
<div class="outer-box-inset">
<div class="header test-result-toggle">
<a class="toggle-close" href="#"></a>
<div class="title">Just Now</div>
<div class="score"><%= results.passed * 1 %> / <%= results.total * 1 %></div>
</div>
<div class="inner-box" style="display: visible;">
<div class="inner-box-inset">
<ul class="tests">
<% for (var i = 0, test; (test = results.output[i]) != null; i++) { %>
<li class="header"><%= test.name %></li>
<% for (var j = 0, assertion; (assertion = test.tests[j]) != null; j++) { %>
<% if (assertion.result) { %>
<li class="passed"><%= j + 1 %>. <%= assertion.message %></li>
<% } else { %>
<li class="failed"><%= j + 1 %>. <%= assertion.message %></li>
<% } %>
<% } %>
<% } %>
</ul>
</div>
</div>
</div>
</div>