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

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: 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
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__COUNTS: 'counts',
14 KEY__IS_FILTERABLE: 'isFilterable', 14 KEY__EXTRACOLUMNHEADERS__HEADER_TEXT: 'headerText',
15 KEY__IS_SORTABLE: 'isSortable', 15 KEY__EXTRACOLUMNHEADERS__HEADER_URL: 'headerUrl',
16 KEY__VALUES_AND_COUNTS: 'valuesAndCounts', 16 KEY__EXTRACOLUMNHEADERS__IS_FILTERABLE: 'isFilterable',
17 KEY__EXTRACOLUMNHEADERS__IS_SORTABLE: 'isSortable',
18 KEY__EXTRACOLUMNHEADERS__VALUES: 'values',
17 19
18 // NOTE: Keep these in sync with ../imagediffdb.py 20 // NOTE: Keep these in sync with ../imagediffdb.py
19 KEY__DIFFERENCE_DATA__MAX_DIFF_PER_CHANNEL: 'maxDiffPerChannel', 21 KEY__DIFFERENCE_DATA__MAX_DIFF_PER_CHANNEL: 'maxDiffPerChannel',
20 KEY__DIFFERENCE_DATA__NUM_DIFF_PIXELS: 'numDifferingPixels', 22 KEY__DIFFERENCE_DATA__NUM_DIFF_PIXELS: 'numDifferingPixels',
21 KEY__DIFFERENCE_DATA__PERCENT_DIFF_PIXELS: 'percentDifferingPixels', 23 KEY__DIFFERENCE_DATA__PERCENT_DIFF_PIXELS: 'percentDifferingPixels',
22 KEY__DIFFERENCE_DATA__PERCEPTUAL_DIFF: 'perceptualDifference', 24 KEY__DIFFERENCE_DATA__PERCEPTUAL_DIFF: 'perceptualDifference',
23 KEY__DIFFERENCE_DATA__WEIGHTED_DIFF: 'weightedDiffMeasure', 25 KEY__DIFFERENCE_DATA__WEIGHTED_DIFF: 'weightedDiffMeasure',
24 26
25 // NOTE: Keep these in sync with ../imagepair.py 27 // NOTE: Keep these in sync with ../imagepair.py
26 KEY__DIFFERENCE_DATA: 'differenceData', 28 KEY__DIFFERENCE_DATA: 'differenceData',
27 KEY__EXPECTATIONS_DATA: 'expectations', 29 KEY__EXPECTATIONS_DATA: 'expectations',
28 KEY__EXTRA_COLUMN_VALUES: 'extraColumns', 30 KEY__EXTRA_COLUMN_VALUES: 'extraColumns',
29 KEY__IMAGE_A_URL: 'imageAUrl', 31 KEY__IMAGE_A_URL: 'imageAUrl',
30 KEY__IMAGE_B_URL: 'imageBUrl', 32 KEY__IMAGE_B_URL: 'imageBUrl',
31 KEY__IS_DIFFERENT: 'isDifferent', 33 KEY__IS_DIFFERENT: 'isDifferent',
32 34
33 // NOTE: Keep these in sync with ../imagepairset.py 35 // NOTE: Keep these in sync with ../imagepairset.py
34 KEY__EXTRACOLUMNHEADERS: 'extraColumnHeaders',
35 KEY__IMAGEPAIRS: 'imagePairs', 36 KEY__IMAGEPAIRS: 'imagePairs',
36 KEY__IMAGESETS: 'imageSets', 37 KEY__IMAGESETS: 'imageSets',
37 KEY__IMAGESETS__FIELD__BASE_URL: 'baseUrl', 38 KEY__IMAGESETS__FIELD__BASE_URL: 'baseUrl',
38 KEY__IMAGESETS__FIELD__DESCRIPTION: 'description', 39 KEY__IMAGESETS__FIELD__DESCRIPTION: 'description',
39 KEY__IMAGESETS__SET__DIFFS: 'diffs', 40 KEY__IMAGESETS__SET__DIFFS: 'diffs',
40 KEY__IMAGESETS__SET__IMAGE_A: 'imageA', 41 KEY__IMAGESETS__SET__IMAGE_A: 'imageA',
41 KEY__IMAGESETS__SET__IMAGE_B: 'imageB', 42 KEY__IMAGESETS__SET__IMAGE_B: 'imageB',
42 KEY__IMAGESETS__SET__WHITEDIFFS: 'whiteDiffs', 43 KEY__IMAGESETS__SET__WHITEDIFFS: 'whiteDiffs',
43 44
44 // NOTE: Keep these in sync with ../results.py 45 // NOTE: Keep these in sync with ../results.py
borenet 2014/05/08 12:40:18 Yikes.
epoger 2014/05/08 15:04:35 The good news is that the comments pointing both w
45 REBASELINE_SERVER_SCHEMA_VERSION_NUMBER: 2, 46 REBASELINE_SERVER_SCHEMA_VERSION_NUMBER: 3,
46 KEY__EXPECTATIONS__BUGS: 'bugs', 47 KEY__EXPECTATIONS__BUGS: 'bugs',
47 KEY__EXPECTATIONS__IGNOREFAILURE: 'ignore-failure', 48 KEY__EXPECTATIONS__IGNOREFAILURE: 'ignore-failure',
48 KEY__EXPECTATIONS__REVIEWED: 'reviewed-by-human', 49 KEY__EXPECTATIONS__REVIEWED: 'reviewed-by-human',
49 KEY__EXTRACOLUMN__BUILDER: 'builder', 50 KEY__EXTRACOLUMN__BUILDER: 'builder',
50 KEY__EXTRACOLUMN__CONFIG: 'config', 51 KEY__EXTRACOLUMN__CONFIG: 'config',
51 KEY__EXTRACOLUMN__RESULT_TYPE: 'resultType', 52 KEY__EXTRACOLUMN__RESULT_TYPE: 'resultType',
52 KEY__EXTRACOLUMN__TEST: 'test', 53 KEY__EXTRACOLUMN__TEST: 'test',
53 KEY__HEADER: 'header', 54 KEY__HEADER: 'header',
54 KEY__HEADER__DATAHASH: 'dataHash', 55 KEY__HEADER__DATAHASH: 'dataHash',
55 KEY__HEADER__IS_EDITABLE: 'isEditable', 56 KEY__HEADER__IS_EDITABLE: 'isEditable',
(...skipping 10 matching lines...) Expand all
66 KEY__RESULT_TYPE__FAILUREIGNORED: 'failure-ignored', 67 KEY__RESULT_TYPE__FAILUREIGNORED: 'failure-ignored',
67 KEY__RESULT_TYPE__NOCOMPARISON: 'no-comparison', 68 KEY__RESULT_TYPE__NOCOMPARISON: 'no-comparison',
68 KEY__RESULT_TYPE__SUCCEEDED: 'succeeded', 69 KEY__RESULT_TYPE__SUCCEEDED: 'succeeded',
69 70
70 // NOTE: Keep these in sync with ../server.py 71 // NOTE: Keep these in sync with ../server.py
71 KEY__EDITS__MODIFICATIONS: 'modifications', 72 KEY__EDITS__MODIFICATIONS: 'modifications',
72 KEY__EDITS__OLD_RESULTS_HASH: 'oldResultsHash', 73 KEY__EDITS__OLD_RESULTS_HASH: 'oldResultsHash',
73 KEY__EDITS__OLD_RESULTS_TYPE: 'oldResultsType', 74 KEY__EDITS__OLD_RESULTS_TYPE: 'oldResultsType',
74 } 75 }
75 })()) 76 })())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698