OLD | NEW |
1 /* | 1 /* |
2 * Constants used by our imagediff-viewing Javascript code. | 2 * Constants used by our imagediff-viewing Javascript code. |
3 */ | 3 */ |
4 var module = angular.module( | 4 var module = angular.module( |
5 'ConstantsModule', | 5 'ConstantsModule', |
6 [] | 6 [] |
7 ); | 7 ); |
8 | 8 |
9 module.constant('constants', (function() { | 9 module.constant('constants', (function() { |
10 return { | 10 return { |
11 // NOTE: Keep these in sync with ../column.py | 11 // NOTE: Keep these in sync with ../column.py |
12 KEY__HEADER_TEXT: 'headerText', | 12 KEY__EXTRACOLUMNHEADERS: 'extraColumnHeaders', |
13 KEY__HEADER_URL: 'headerUrl', | 13 KEY__EXTRACOLUMNHEADERS__HEADER_TEXT: 'headerText', |
14 KEY__IS_FILTERABLE: 'isFilterable', | 14 KEY__EXTRACOLUMNHEADERS__HEADER_URL: 'headerUrl', |
15 KEY__IS_SORTABLE: 'isSortable', | 15 KEY__EXTRACOLUMNHEADERS__IS_FILTERABLE: 'isFilterable', |
16 KEY__VALUES_AND_COUNTS: 'valuesAndCounts', | 16 KEY__EXTRACOLUMNHEADERS__IS_SORTABLE: 'isSortable', |
| 17 KEY__EXTRACOLUMNHEADERS__VALUES_AND_COUNTS: 'valuesAndCounts', |
17 | 18 |
18 // NOTE: Keep these in sync with ../imagediffdb.py | 19 // NOTE: Keep these in sync with ../imagediffdb.py |
19 KEY__DIFFERENCE_DATA__MAX_DIFF_PER_CHANNEL: 'maxDiffPerChannel', | 20 KEY__DIFFERENCE_DATA__MAX_DIFF_PER_CHANNEL: 'maxDiffPerChannel', |
20 KEY__DIFFERENCE_DATA__NUM_DIFF_PIXELS: 'numDifferingPixels', | 21 KEY__DIFFERENCE_DATA__NUM_DIFF_PIXELS: 'numDifferingPixels', |
21 KEY__DIFFERENCE_DATA__PERCENT_DIFF_PIXELS: 'percentDifferingPixels', | 22 KEY__DIFFERENCE_DATA__PERCENT_DIFF_PIXELS: 'percentDifferingPixels', |
22 KEY__DIFFERENCE_DATA__PERCEPTUAL_DIFF: 'perceptualDifference', | 23 KEY__DIFFERENCE_DATA__PERCEPTUAL_DIFF: 'perceptualDifference', |
23 KEY__DIFFERENCE_DATA__WEIGHTED_DIFF: 'weightedDiffMeasure', | 24 KEY__DIFFERENCE_DATA__WEIGHTED_DIFF: 'weightedDiffMeasure', |
24 | 25 |
25 // NOTE: Keep these in sync with ../imagepair.py | 26 // NOTE: Keep these in sync with ../imagepair.py |
26 KEY__DIFFERENCE_DATA: 'differenceData', | 27 KEY__DIFFERENCE_DATA: 'differenceData', |
27 KEY__EXPECTATIONS_DATA: 'expectations', | 28 KEY__EXPECTATIONS_DATA: 'expectations', |
28 KEY__EXTRA_COLUMN_VALUES: 'extraColumns', | 29 KEY__EXTRA_COLUMN_VALUES: 'extraColumns', |
29 KEY__IMAGE_A_URL: 'imageAUrl', | 30 KEY__IMAGE_A_URL: 'imageAUrl', |
30 KEY__IMAGE_B_URL: 'imageBUrl', | 31 KEY__IMAGE_B_URL: 'imageBUrl', |
31 KEY__IS_DIFFERENT: 'isDifferent', | 32 KEY__IS_DIFFERENT: 'isDifferent', |
32 | 33 |
33 // NOTE: Keep these in sync with ../imagepairset.py | 34 // NOTE: Keep these in sync with ../imagepairset.py |
34 KEY__EXTRACOLUMNHEADERS: 'extraColumnHeaders', | |
35 KEY__IMAGEPAIRS: 'imagePairs', | 35 KEY__IMAGEPAIRS: 'imagePairs', |
36 KEY__IMAGESETS: 'imageSets', | 36 KEY__IMAGESETS: 'imageSets', |
37 KEY__IMAGESETS__FIELD__BASE_URL: 'baseUrl', | 37 KEY__IMAGESETS__FIELD__BASE_URL: 'baseUrl', |
38 KEY__IMAGESETS__FIELD__DESCRIPTION: 'description', | 38 KEY__IMAGESETS__FIELD__DESCRIPTION: 'description', |
39 KEY__IMAGESETS__SET__DIFFS: 'diffs', | 39 KEY__IMAGESETS__SET__DIFFS: 'diffs', |
40 KEY__IMAGESETS__SET__IMAGE_A: 'imageA', | 40 KEY__IMAGESETS__SET__IMAGE_A: 'imageA', |
41 KEY__IMAGESETS__SET__IMAGE_B: 'imageB', | 41 KEY__IMAGESETS__SET__IMAGE_B: 'imageB', |
42 KEY__IMAGESETS__SET__WHITEDIFFS: 'whiteDiffs', | 42 KEY__IMAGESETS__SET__WHITEDIFFS: 'whiteDiffs', |
43 | 43 |
44 // NOTE: Keep these in sync with ../results.py | 44 // NOTE: Keep these in sync with ../results.py |
45 REBASELINE_SERVER_SCHEMA_VERSION_NUMBER: 2, | 45 REBASELINE_SERVER_SCHEMA_VERSION_NUMBER: 3, |
46 KEY__EXPECTATIONS__BUGS: 'bugs', | 46 KEY__EXPECTATIONS__BUGS: 'bugs', |
47 KEY__EXPECTATIONS__IGNOREFAILURE: 'ignore-failure', | 47 KEY__EXPECTATIONS__IGNOREFAILURE: 'ignore-failure', |
48 KEY__EXPECTATIONS__REVIEWED: 'reviewed-by-human', | 48 KEY__EXPECTATIONS__REVIEWED: 'reviewed-by-human', |
49 KEY__EXTRACOLUMN__BUILDER: 'builder', | 49 KEY__EXTRACOLUMN__BUILDER: 'builder', |
50 KEY__EXTRACOLUMN__CONFIG: 'config', | 50 KEY__EXTRACOLUMN__CONFIG: 'config', |
51 KEY__EXTRACOLUMN__RESULT_TYPE: 'resultType', | 51 KEY__EXTRACOLUMN__RESULT_TYPE: 'resultType', |
52 KEY__EXTRACOLUMN__TEST: 'test', | 52 KEY__EXTRACOLUMN__TEST: 'test', |
53 KEY__HEADER: 'header', | 53 KEY__HEADER: 'header', |
54 KEY__HEADER__DATAHASH: 'dataHash', | 54 KEY__HEADER__DATAHASH: 'dataHash', |
55 KEY__HEADER__IS_EDITABLE: 'isEditable', | 55 KEY__HEADER__IS_EDITABLE: 'isEditable', |
(...skipping 10 matching lines...) Expand all Loading... |
66 KEY__RESULT_TYPE__FAILUREIGNORED: 'failure-ignored', | 66 KEY__RESULT_TYPE__FAILUREIGNORED: 'failure-ignored', |
67 KEY__RESULT_TYPE__NOCOMPARISON: 'no-comparison', | 67 KEY__RESULT_TYPE__NOCOMPARISON: 'no-comparison', |
68 KEY__RESULT_TYPE__SUCCEEDED: 'succeeded', | 68 KEY__RESULT_TYPE__SUCCEEDED: 'succeeded', |
69 | 69 |
70 // NOTE: Keep these in sync with ../server.py | 70 // NOTE: Keep these in sync with ../server.py |
71 KEY__EDITS__MODIFICATIONS: 'modifications', | 71 KEY__EDITS__MODIFICATIONS: 'modifications', |
72 KEY__EDITS__OLD_RESULTS_HASH: 'oldResultsHash', | 72 KEY__EDITS__OLD_RESULTS_HASH: 'oldResultsHash', |
73 KEY__EDITS__OLD_RESULTS_TYPE: 'oldResultsType', | 73 KEY__EDITS__OLD_RESULTS_TYPE: 'oldResultsType', |
74 } | 74 } |
75 })()) | 75 })()) |
OLD | NEW |