mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 14:26:09 +03:00
41 lines
1.1 KiB
Django/Jinja
41 lines
1.1 KiB
Django/Jinja
<html>
|
|
<head>
|
|
<title>{{ test_name }}</title>
|
|
<script>
|
|
function toggleZoom() {
|
|
for (const img of document.getElementsByTagName("img")) {
|
|
if (img.hasAttribute('style')) {
|
|
img.removeAttribute('style');
|
|
} else {
|
|
img.style.width = '100%';
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<a href="https://cs.chromium.org/search/?q={{ test_name }}&m=100&type=cs">Link to Golden (in repo)</a><br />
|
|
<a download="{{ test_name }}" href="{{ failure_link }}">Download Failure Image (right click and 'Save link as')</a>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Failure</th>
|
|
<th>Golden</th>
|
|
<th>Diff</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody style="vertical-align: top">
|
|
<tr onclick="toggleZoom()">
|
|
<td><img src="{{ failure_link }}" style="width: 100%" /></td>
|
|
{% if golden_link %}
|
|
<td><img src="{{ golden_link }}" style="width: 100%" /></td>
|
|
<td><img src="{{ diff_link }}" style="width: 100%" /></td>
|
|
{% else %}
|
|
<td>No Golden Image.</td>
|
|
{% endif %}
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</body>
|
|
</html>
|