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

Side by Side Diff: experimental/skpdiff/viewer.html

Issue 18132007: add diff viewer website (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: test -> actual Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « experimental/skpdiff/diff_viewer.js ('k') | experimental/skpdiff/viewer_style.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <script type="text/javascript"
5 src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.m in.js"></script>
6 <script type="text/javascript" src="skpdiff_output.json"></script>
7 <script type="text/javascript" src="diff_viewer.js"></script>
8 <link rel="stylesheet" type="text/css" href="viewer_style.css">
9 <title>SkPDiff</title>
10 </head>
11 <body>
12 <div ng-app ng-controller="DiffViewController">
13 <div style="margin:8px">
14 Show me the worst by metric:
15 <button ng-repeat="differ in differs" ng-click="setSortIndex($index)">
16 <span class="result-{{ $index }}" style="padding-left:12px;">&nbsp;</s pan>
17 {{ differ.title }}
18 </button>
19 </div>
20 <table>
21 <thead>
22 <tr>
23 <td>Baseline Image</td>
24 <td>Actual Image</td>
25 <td>Results</td>
26 </tr>
27 </thead>
28 <tbody>
29 <tr ng-repeat="record in records | orderBy:sortingDiffer | limitTo:500 ">
30 <td><img src="{{ record.baselinePath }}" class="gm-image baseline-im age" /></td>
31 <td><img src="{{ record.testPath }}" class="gm-image test-image" />< /td>
32 <td>
33 <div ng-repeat="diff in record.diffs"
34 ng-mouseover="highlight(diff.differName)"
35 class="result result-{{$index}}">
36 <span class="result-button">{{ diff.result }}</span>
37 </div>
38 </td>
39 </tr>
40 </tbody>
41 </table>
42 </div>
43 </body>
44 </html>
OLDNEW
« no previous file with comments | « experimental/skpdiff/diff_viewer.js ('k') | experimental/skpdiff/viewer_style.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698