OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 |
| 3 <html ng-app="Loader"> |
| 4 |
| 5 <head> |
| 6 <title>Current GM Failures</title> |
| 7 <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.js"
></script> |
| 8 <script src="loader.js"></script> |
| 9 </head> |
| 10 |
| 11 <body> |
| 12 <div ng-controller="Loader.Controller" > |
| 13 |
| 14 Settings: |
| 15 <ul> |
| 16 <li>show results of type |
| 17 <select ng-model="resultType" ng-init="resultType='failed';changeResultTyp
e()" ng-change="changeResultType()"> |
| 18 <option>failed</option> |
| 19 <option>failure-ignored</option> |
| 20 <option>no-comparison</option> |
| 21 </select> |
| 22 </li> |
| 23 <li>image size |
| 24 <input type="text" ng-model="imageSize" ng-init="imageSize=100" maxlength=
"4"/> |
| 25 </li> |
| 26 </ul> |
| 27 |
| 28 <p> |
| 29 <table border="1"> |
| 30 <tr> |
| 31 <th ng:click="sortColumn='builder'">Builder</th> |
| 32 <th ng:click="sortColumn='test'">Test</th> |
| 33 <th ng:click="sortColumn='config'">Config</th> |
| 34 <th ng:click="sortColumn='expectedHashDigest'">Expected Image</th> |
| 35 <th ng:click="sortColumn='actualHashDigest'">Actual Image</th> |
| 36 </tr> |
| 37 <!-- EPOGER: improve the column sorting, as per http://jsfiddle.net/vojtajina/js
64b/14/ --> |
| 38 <tr ng-repeat="result in results | orderBy: sortColumn"> |
| 39 <td>{{result.builder}}</td> |
| 40 <td>{{result.test}}</td> |
| 41 <td>{{result.config}}</td> |
| 42 <td> |
| 43 <a target="_blank" href="http://chromium-skia-gm.commondatastorage.g
oogleapis.com/gm/{{result.expectedHashType}}/{{result.test}}/{{result.expectedHa
shDigest}}.png"> |
| 44 <img width="{{imageSize}}" src="http://chromium-skia-gm.commondata
storage.googleapis.com/gm/{{result.expectedHashType}}/{{result.test}}/{{result.e
xpectedHashDigest}}.png"/> |
| 45 </a> |
| 46 </td> |
| 47 <td> |
| 48 <a target="_blank" href="http://chromium-skia-gm.commondatastorage.g
oogleapis.com/gm/{{result.actualHashType}}/{{result.test}}/{{result.actualHashDi
gest}}.png"> |
| 49 <img width="{{imageSize}}" src="http://chromium-skia-gm.commondata
storage.googleapis.com/gm/{{result.actualHashType}}/{{result.test}}/{{result.act
ualHashDigest}}.png"/> |
| 50 </a> |
| 51 </td> |
| 52 </tr> |
| 53 </table> |
| 54 </div> |
| 55 |
| 56 <!-- TODO(epoger): Can we get the base URLs (commondatastorage and |
| 57 issues list) from |
| 58 http://skia.googlecode.com/svn/buildbot/site_config/global_variables.json
? |
| 59 I tried importing the |
| 60 http://skia.googlecode.com/svn/buildbot/skia_tools.js script and using |
| 61 that to do so, but I got Access-Control-Allow-Origin errors. |
| 62 --> |
| 63 |
| 64 </body> |
| 65 </html> |
OLD | NEW |