| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Loader: | 2 * Loader: |
| 3 * Reads GM result reports written out by results.py, and imports | 3 * Reads GM result reports written out by results.py, and imports |
| 4 * them into $scope.extraColumnHeaders and $scope.imagePairs . | 4 * them into $scope.extraColumnHeaders and $scope.imagePairs . |
| 5 */ | 5 */ |
| 6 var Loader = angular.module( | 6 var Loader = angular.module( |
| 7 'Loader', | 7 'Loader', |
| 8 ['ConstantsModule', 'diff_viewer'] | 8 ['ConstantsModule'] |
| 9 ); | 9 ); |
| 10 | 10 |
| 11 Loader.directive( | 11 Loader.directive( |
| 12 'resultsUpdatedCallbackDirective', | 12 'resultsUpdatedCallbackDirective', |
| 13 ['$timeout', | 13 ['$timeout', |
| 14 function($timeout) { | 14 function($timeout) { |
| 15 return function(scope, element, attrs) { | 15 return function(scope, element, attrs) { |
| 16 if (scope.$last) { | 16 if (scope.$last) { |
| 17 $timeout(function() { | 17 $timeout(function() { |
| 18 scope.resultsUpdatedCallback(); | 18 scope.resultsUpdatedCallback(); |
| (...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 785 */ | 785 */ |
| 786 $scope.getImageDiffRelativeUrl = function(imagePair) { | 786 $scope.getImageDiffRelativeUrl = function(imagePair) { |
| 787 var before = | 787 var before = |
| 788 imagePair[constants.KEY__IMAGE_A_URL] + "-vs-" + | 788 imagePair[constants.KEY__IMAGE_A_URL] + "-vs-" + |
| 789 imagePair[constants.KEY__IMAGE_B_URL]; | 789 imagePair[constants.KEY__IMAGE_B_URL]; |
| 790 return before.replace(/[^\w\-]/g, "_") + ".png"; | 790 return before.replace(/[^\w\-]/g, "_") + ".png"; |
| 791 } | 791 } |
| 792 | 792 |
| 793 } | 793 } |
| 794 ); | 794 ); |
| OLD | NEW |