Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1126)

Side by Side Diff: build/android/pylib/instrumentation/render_test.html.jinja

Issue 2875263002: 📷 Add toggling zoom and test title to RenderTest results. (Closed)
Patch Set: Fixed stupid error. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | build/android/pylib/local/device/local_device_instrumentation_test_run.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head>
3 <title>{{ test_name }}</title>
4 <script>
5 function toggleZoom() {
6 for (const img of document.getElementsByTagName("img")) {
7 if (img.hasAttribute('style')) {
8 img.removeAttribute('style');
9 } else {
10 img.style.width = '100%';
11 }
12 }
13 }
14 </script>
15 </head>
16 <body>
2 <table> 17 <table>
3 <tr> 18 <tr>
4 <th>Failure</th> 19 <th>Failure</th>
5 <th>Golden</th> 20 <th>Golden</th>
6 <th>Diff</th> 21 <th>Diff</th>
7 </tr> 22 </tr>
8 <tr> 23 <tr onclick="toggleZoom()">
9 <td><img src="{{ failure_link }}" width="100%"/></td> 24 <td><img src="{{ failure_link }}" style="width: 100%" /></td>
10 <td><img src="{{ golden_link }}" width="100%"/></td> 25 <td><img src="{{ golden_link }}" style="width: 100%" /></td>
11 <td><img src="{{ diff_link }}" width="100%"/></td> 26 <td><img src="{{ diff_link }}" style="width: 100%" /></td>
12 </tr> 27 </tr>
13 </table> 28 </table>
29 </body>
14 </html> 30 </html>
OLDNEW
« no previous file with comments | « no previous file | build/android/pylib/local/device/local_device_instrumentation_test_run.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698