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

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

Issue 19608005: move skpdiff into tools (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: 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/skpdiff_util.cpp ('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 <!-- This whole page uses the module -->
3 <html ng-app="diff_viewer">
4 <head>
5 <script type="text/javascript"
6 src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.m in.js"></script>
7 <script type="text/javascript" src="skpdiff_output.json"></script>
8 <script type="text/javascript" src="diff_viewer.js"></script>
9 <link rel="stylesheet" type="text/css" href="viewer_style.css">
10 <title>SkPDiff</title>
11 </head>
12 <body>
13 <!--
14 All templates are being included with the main page to avoid using AJAX, w hich would force
15 us to use a webserver.
16 -->
17 <script type="text/ng-template" id="/diff_list.html">
18 <!-- Give a choice of how to order the differs -->
19 <div style="margin:8px">
20 Show me the worst by metric:
21 <button ng-repeat="differ in differs" ng-click="setSortIndex($index)">
22 <span class="result-{{ $index }}" style="padding-left:12px;">&nbsp;</s pan>
23 {{ differ.title }}
24 </button>
25 </div>
26 <!-- Begin list of differences -->
27 <table>
28 <thead>
29 <tr>
30 <td>Baseline Image</td>
31 <td>Actual Image</td>
32 <td>Results</td>
33 </tr>
34 </thead>
35 <tbody>
36 <!--
37 Loops through every record and crates a row for it. This sorts based on the whichever
38 metric the user chose, and places a limit on the max number of recor ds to show.
39 -->
40 <tr ng-repeat="record in records | orderBy:sortingDiffer | limitTo:500 ">
41 <td><swap-img left-src="{{ record.baselinePath }}"
42 right-src="{{ record.testPath }}"
43 side="left"
44 class="gm-image left-image" /></td>
45 <td><swap-img left-src="{{ record.baselinePath }}"
46 right-src="{{ record.testPath }}"
47 side="right"
48 class="gm-image right-image" /></td>
49 <td>
50 <div ng-repeat="diff in record.diffs"
51 ng-mouseover="highlight(diff.differName)"
52 class="result result-{{$index}}">
53 <span class="result-button">{{ diff.result }}</span>
54 </div>
55 </td>
56 </tr>
57 </tbody>
58 </table>
59 </script>
60 <!-- Whatever template is used is rendered in the following div -->
61 <div ng-view></div>
62 </body>
63 </html>
OLDNEW
« no previous file with comments | « experimental/skpdiff/skpdiff_util.cpp ('k') | experimental/skpdiff/viewer_style.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698