| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>{{ test_run }} failures</title> | 4 <title>{{ test_run }} failures</title> |
| 5 <style> | 5 <style> |
| 6 .image { | 6 .image { |
| 7 height: 325px; | 7 height: 325px; |
| 8 } | 8 } |
| 9 .cell { | 9 .cell { |
| 10 padding-right: 25px; | 10 padding-right: 25px; |
| 11 padding-left: 25px; | 11 padding-left: 25px; |
| 12 float: left; | 12 float: left; |
| 13 } | 13 } |
| 14 .imagelink { | 14 .imagelink { |
| 15 border-width: 0px; | 15 border-width: 0px; |
| 16 } | 16 } |
| 17 .info { | 17 .info { |
| 18 padding-bottom: 25px; | 18 padding-bottom: 25px; |
| 19 } | 19 } |
| 20 .row { | 20 .row { |
| 21 padding-top: 10px; | 21 padding-top: 10px; |
| 22 padding-bottom: 10px; | 22 padding-bottom: 10px; |
| 23 border-bottom: 2px solid #888; | 23 border-bottom: 2px solid #888; |
| 24 height: 350px; | 24 height: 350px; |
| 25 } | 25 } |
| 26 </style> | 26 </style> |
| 27 | |
| 28 <script language="javascript"> | |
| 29 var confirmSubmit = function() { | |
| 30 return confirm("The screenshots generated with this version of chrome will
be used as the expected images for future comparisions. Are you sure?"); | |
| 31 } | |
| 32 </script> | |
| 33 </head> | 27 </head> |
| 34 <body> | 28 <body> |
| 35 <h3>Test Run: {{ test_run }}</h3> | |
| 36 {% if can_rebaseline and comparisons %} | |
| 37 <form action="/rebaseline" method="post" onsubmit="return confirmSubmit();
"> | |
| 38 <input type="hidden" name="test_run" value="{{ test_run }}"/> | |
| 39 <input type="submit" value="This Chrome version looks good!"/> | |
| 40 </form> | |
| 41 <br> | |
| 42 {% endif %} | |
| 43 {% if not comparisons %} | |
| 44 <h2>No failures.</h2> | |
| 45 {% endif %} | |
| 46 {% for comp in comparisons %} | 29 {% for comp in comparisons %} |
| 47 <div class="row"> | 30 <div class="row"> |
| 48 <div class="cell"> | 31 <div class="cell"> |
| 49 Diff ({{ "%.1f"|format(comp['percent_different']) }}%)<br> | 32 Diff ({{ "%.1f"|format(comp['percent_different']) }}%)<br> |
| 50 <a class="imagelink" href="{{ comp['diff'] }}"> | 33 <a class="imagelink" href="{{ comp['diff'] }}"> |
| 51 <img class="image" src={{ comp['diff'] }}> | 34 <img class="image" src={{ comp['diff'] }}> |
| 52 </a> | 35 </a> |
| 53 </div> | 36 </div> |
| 54 <div class="cell"> | 37 <div class="cell"> |
| 55 Expected<br> | 38 Expected<br> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 67 <br> | 50 <br> |
| 68 <div class="info"> | 51 <div class="info"> |
| 69 {{ comp['expectation'] }}<br> | 52 {{ comp['expectation'] }}<br> |
| 70 <a href='/debug_view?test_run={{ comp['test_run'] }}&expectation={{
comp['expectation'] }}'>Debug View</a> | 53 <a href='/debug_view?test_run={{ comp['test_run'] }}&expectation={{
comp['expectation'] }}'>Debug View</a> |
| 71 </div> | 54 </div> |
| 72 </div> | 55 </div> |
| 73 </div> | 56 </div> |
| 74 {% endfor %} | 57 {% endfor %} |
| 75 </body> | 58 </body> |
| 76 </html> | 59 </html> |
| OLD | NEW |