Chromium Code Reviews| Index: build/android/render_tests/render_webpage.html.jinja2 |
| diff --git a/build/android/render_tests/render_webpage.html.jinja2 b/build/android/render_tests/render_webpage.html.jinja2 |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..62d3ef3202604cb609d0c262298bf8fd72bdaace |
| --- /dev/null |
| +++ b/build/android/render_tests/render_webpage.html.jinja2 |
| @@ -0,0 +1,43 @@ |
| +<html> |
| + <head> |
| + <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> |
| + <link rel="stylesheet" href="https://code.getmdl.io/1.2.1/material.cyan-teal.min.css"> |
| + <script defer src="https://code.getmdl.io/1.2.1/material.min.js"></script> |
| + </head> |
| + |
| + <body> |
| + {% for test_class, device_results in full_results.iteritems() %} |
| + <div class="mdl-color--primary" width="100%"> |
| + <h3>{{ test_class }}</h3> |
| + </div> |
| + |
| + {% for device_model, test_results in device_results.iteritems() %} |
| + <div class="mdl-color--accent" width="100%"> |
| + <h4>{{ device_model }}</h4> |
| + </div> |
| + <table class="mdl-data-table mdl-js-data-table" width="100%" align="center"> |
| + <thead> |
| + <tr> |
| + <th class="mdl-data-table__cell--non-numeric">Device Model</th> |
| + <th class="mdl-data-table__cell--non-numeric">Description</th> |
| + <th class="mdl-data-table__cell--non-numeric">Golden</th> |
| + <th class="mdl-data-table__cell--non-numeric">Failure</th> |
| + <th class="mdl-data-table__cell--non-numeric">Diff</th> |
| + </tr> |
| + </thead> |
| + <tbody> |
| + {% for result in test_results %} |
| + <tr> |
| + <td class="mdl-data-table__cell--non-numeric">{{ device_model }}</td> |
| + <td class="mdl-data-table__cell--non-numeric">{{ result['description'] }}</td> |
| + <td><img src="{{ result['golden_image'] }}" width="100%"></td> |
|
PEConn
2016/10/11 12:20:07
The images could be quite large, maybe it would be
mikecase (-- gone --)
2016/10/18 16:00:13
Made clicking them open them in a new tab. The ima
|
| + <td><img src="{{ result['failure_image'] }}" width="100%"></td> |
| + <td><img src="{{ result['diff_image'] }}" width="100%"></td> |
| + </tr> |
| + {% endfor %} |
| + </tbody> |
| + </table> |
| + {% endfor %} |
| + {% endfor %} |
| + </body> |
| +</html> |