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

Unified Diff: build/android/render_tests/render_webpage.html.jinja2

Issue 2406593002: Add script to process results from Android render tests. (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
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..183f9cc67dd56d8804d6382a65155e49bc9f4eb0
--- /dev/null
+++ b/build/android/render_tests/render_webpage.html.jinja2
@@ -0,0 +1,36 @@
+<html>
+ <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
+ <link rel="stylesheet" href="https://code.getmdl.io/1.2.1/material.indigo-pink.min.css">
+ <script defer src="https://code.getmdl.io/1.2.1/material.min.js"></script>
+
+ {% for test_class, device_results in full_results.iteritems() %}
+ <div class="mdl-color--white mdl-shadow--1dp mdl-color-text--grey-800 mdl-cell">
+ <h3>{{ test_class }}</h3>
+ </div>
+
+ {% for device_model, test_results in device_results.iteritems() %}
+ <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>
+ <td><img src="{{ result['failure_image'] }}" width="100%"></td>
+ <td><img src="{{ result['diff_image'] }}" width="100%"></td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ {% endfor %}
+ {% endfor %}
+</html>

Powered by Google App Engine
This is Rietveld 408576698