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

Side by Side Diff: gm/rebaseline_server/static/constants.js

Issue 270413002: rebaseline_server JSON: pass category values as values, not keys (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 7 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
« no previous file with comments | « gm/rebaseline_server/results.py ('k') | gm/rebaseline_server/static/loader.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 })())
OLDNEW
« no previous file with comments | « gm/rebaseline_server/results.py ('k') | gm/rebaseline_server/static/loader.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698