diff options
Diffstat (limited to 'experimental/skpdiff/diff_viewer.js')
-rw-r--r-- | experimental/skpdiff/diff_viewer.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/experimental/skpdiff/diff_viewer.js b/experimental/skpdiff/diff_viewer.js new file mode 100644 index 0000000000..338dbdfaef --- /dev/null +++ b/experimental/skpdiff/diff_viewer.js @@ -0,0 +1,22 @@ +function DiffViewController($scope) { + $scope.differs = [ + { + "title": "Different Pixels" + }, + { + "title": "Perceptual Difference" + } + ]; + $scope.sortIndex = 1; + $scope.records = SkPDiffRecords.records; + $scope.highlight = function(differName) { + console.debug(differName); + } + $scope.setSortIndex = function(a) { + $scope.sortIndex = a; + } + $scope.sortingDiffer = function(a) { + console.debug($scope.sortIndex); + return a.diffs[$scope.sortIndex].result; + } +}
\ No newline at end of file |