/usr/lib/python2.7/dist-packages/sagenb/data/sage/html/test_report.html is in python-sagenb 1.0.1+ds1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{{ title }}</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
{{ stylesheet }}
{{ javascript }}
<script type="text/javascript">
$(document).ready(function () {
// Top bar events.
$('.out_trace_hide').bind('click', function () {
$('.out_trace').hide();
});
$('.out_trace_show').bind('click', function () {
$('.out_trace').show();
});
$('.out_trace_toggle').bind('click', function () {
$('.out_trace').toggle();
});
// Header and footer events.
$('.pass_header').bind('click', function (ev) {
$('.test_pass').toggle();
});
$('.fail_header').bind('click', function (ev) {
$('.test_fail').toggle();
});
$('.error_header').bind('click', function (ev) {
$('.test_error').toggle();
});
$('.hide_all').bind('click', function (ev) {
$('tr.test').hide();
});
$('.show_all').bind('click', function (ev) {
$('tr.test').show();
});
$('.toggle_all').bind('click', function (ev) {
$('tr.test').toggle();
});
// Case and test events.
$('.pass').bind('click', function (ev) {
$('.' + $(this).parent().attr('id') + '.test_pass').toggle();
});
$('.fail').bind('click', function (ev) {
$('.' + $(this).parent().attr('id') + '.test_fail').toggle();
});
$('.error').bind('click', function (ev) {
$('.' + $(this).parent().attr('id') + '.test_error').toggle();
});
$('.hide').bind('click', function (ev) {
$('.' + $(this).parent().attr('id')).hide();
});
$('.show').bind('click', function (ev) {
$('.' + $(this).parent().attr('id')).show();
});
$('.toggle').bind('click', function (ev) {
$('.' + $(this).parent().attr('id')).toggle();
});
// Test output and traceback events.
$('.spanner').bind('click', function (ev) {
$(this).parent().find('.out_trace').toggle();
});
});
</script>
</head>
<body>
<div class="heading">
<h2>{{ title }}</h2>
<p class="description">
{{ description }}
</p>
<table id="statistics1" class="statistics">
{%- if sagenb_version %}
<tr>
<td class="label">{{ gettext('Sage Notebook version') }}</td>
<td class="value">{{ sagenb_version }}</td>
</tr>
{% endif %}
{%- if sage_version %}
<tr>
<td class="label">{{ gettext('Sage version') }}</td>
<td class="value">{{ sage_version }}</td>
</tr>
{% endif %}
{%- if environment %}
<tr>
<td class="label">{{ gettext('Environment') }}</td>
<td class="value">{{ environment }}</td>
</tr>
{% endif %}
<tr>
<td class="label">{{ gettext('Start') }}</td>
<td class="value">{{ start_time }}</td>
</tr>
<tr>
<td class="label">{{ gettext('Stop') }}</td>
<td class="value">{{ stop_time }}</td>
</tr>
<tr>
<td class="label">{{ gettext('Elapsed') }}</td>
<td class="value">{{ elapsed_time }}</td>
</tr>
<tr>
<td class="label">{{ gettext('Status') }}</td>
<td class="value">
<span class="txt_pass">{{ gettext('Pass') }} {{ pass_total }}</span>
<span class="txt_fail">{{ gettext('Fail') }} {{ fail_total }}</span>
<span class="txt_error">{{ gettext('Error') }} {{ error_total }}</span>
<span class="txt_total">{{ gettext('Total') }} {{ count_total }}</span>
</td>
</tr>
</table>
</div>
<div id="top_bar1" class="top_bar">
Output / Tracebacks:
<div class="out_trace_hide top_bar_item">{{ gettext('Hide') }}</div>
<div class="out_trace_show top_bar_item">{{ gettext('Show') }}</div>
<div class="out_trace_toggle top_bar_item">{{ gettext('Toggle') }}</div>
</div>
<table id="results1" class="results">
<tr id="headers1" class="headers">
<td class="test_case_header left">{{ gettext('Cases / Tests') }}</td>
<td class="pass_header">{{ gettext('Pass') }}</td>
<td class="fail_header">{{ gettext('Fail') }}</td>
<td class="error_header">{{ gettext('Error') }}</td>
<td class="count_header">{{ gettext('Count') }}</td>
<td class="hide_all">H</td>
<td class="show_all">S</td>
<td class="toggle_all">T</td>
</tr>
{{ test_cases_and_tests }}
<tr id="totals1" class="totals">
<td class="test_case_total left">{{ gettext('Totals') }}</td>
<td class="pass_total">{{ pass_total }}</td>
<td class="fail_total">{{ fail_total }}</td>
<td class="error_total">{{ error_total }}</td>
<td class="count_total">{{ count_total }}</td>
<td class="hide_all">H</td>
<td class="show_all">S</td>
<td class="toggle_all">T</td>
</tr>
</table>
{%- if ending %}
<div id="ending">
{{ ending }}
</div>
{%- endif %}
</body>
</html>
|