Index: build/android/pylib/instrumentation/render_test.html.jinja |
diff --git a/build/android/pylib/instrumentation/render_test.html.jinja b/build/android/pylib/instrumentation/render_test.html.jinja |
index ab84eb4f4ddb52f2d086003cd159c03a93ad6990..60cefcab141e0279b530c5570c0bf41439d49006 100644 |
--- a/build/android/pylib/instrumentation/render_test.html.jinja |
+++ b/build/android/pylib/instrumentation/render_test.html.jinja |
@@ -1,14 +1,30 @@ |
<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> |
<table> |
<tr> |
<th>Failure</th> |
<th>Golden</th> |
<th>Diff</th> |
</tr> |
- <tr> |
- <td><img src="{{ failure_link }}" width="100%"/></td> |
- <td><img src="{{ golden_link }}" width="100%"/></td> |
- <td><img src="{{ diff_link }}" width="100%"/></td> |
+ <tr onclick="toggleZoom()"> |
+ <td><img src="{{ failure_link }}" style="width: 100%" /></td> |
+ <td><img src="{{ golden_link }}" style="width: 100%" /></td> |
+ <td><img src="{{ diff_link }}" style="width: 100%" /></td> |
</tr> |
</table> |
+</body> |
</html> |