| 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> |
| 27 </head> | 33 </head> |
| 28 <body> | 34 <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 %} |
| 29 {% for comp in comparisons %} | 46 {% for comp in comparisons %} |
| 30 <div class="row"> | 47 <div class="row"> |
| 31 <div class="cell"> | 48 <div class="cell"> |
| 32 Diff ({{ "%.1f"|format(comp['percent_different']) }}%)<br> | 49 Diff ({{ "%.1f"|format(comp['percent_different']) }}%)<br> |
| 33 <a class="imagelink" href="{{ comp['diff'] }}"> | 50 <a class="imagelink" href="{{ comp['diff'] }}"> |
| 34 <img class="image" src={{ comp['diff'] }}> | 51 <img class="image" src={{ comp['diff'] }}> |
| 35 </a> | 52 </a> |
| 36 </div> | 53 </div> |
| 37 <div class="cell"> | 54 <div class="cell"> |
| 38 Expected<br> | 55 Expected<br> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 50 <br> | 67 <br> |
| 51 <div class="info"> | 68 <div class="info"> |
| 52 {{ comp['expectation'] }}<br> | 69 {{ comp['expectation'] }}<br> |
| 53 <a href='/debug_view?test_run={{ comp['test_run'] }}&expectation={{
comp['expectation'] }}'>Debug View</a> | 70 <a href='/debug_view?test_run={{ comp['test_run'] }}&expectation={{
comp['expectation'] }}'>Debug View</a> |
| 54 </div> | 71 </div> |
| 55 </div> | 72 </div> |
| 56 </div> | 73 </div> |
| 57 {% endfor %} | 74 {% endfor %} |
| 58 </body> | 75 </body> |
| 59 </html> | 76 </html> |
| OLD | NEW |