OLD | NEW |
1 <!-- | 1 <!-- |
2 The common.js file must be included before this file. | 2 The common.js file must be included before this file. |
3 | 3 |
4 This in an HTML Import-able file that contains the definition | 4 This in an HTML Import-able file that contains the definition |
5 of the following elements: | 5 of the following elements: |
6 | 6 |
7 <fuzzer-summary-sk> | 7 <fuzzer-summary-sk> |
8 | 8 |
9 This element will request once from /json/fuzz-summary for the fuzz contents t
o display, which will be an array of FileDetails. | 9 This element will request once from /json/fuzz-summary for the fuzz contents t
o display, which will be an array of FileDetails. |
10 See fuzzer-collapse-file-sk.html for more information. | 10 See fuzzer-collapse-file-sk.html for more information. |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 </style> | 60 </style> |
61 <iron-ajax auto url="/json/fuzz-summary" handle-as="json" last-response="{{f
uzz_types}}"></iron-ajax> | 61 <iron-ajax auto url="/json/fuzz-summary" handle-as="json" last-response="{{f
uzz_types}}"></iron-ajax> |
62 <div id = "summaryBox"> | 62 <div id = "summaryBox"> |
63 <template is="dom-repeat" items="{{fuzz_types}}" as="fuzz"> | 63 <template is="dom-repeat" items="{{fuzz_types}}" as="fuzz"> |
64 <span class="countBox"> | 64 <span class="countBox"> |
65 <div class="header"> | 65 <div class="header"> |
66 <a href$="{{getLink(fuzz)}}">{{fuzz.categoryDisplay}}</a> | 66 <a href$="{{getLink(fuzz)}}">{{fuzz.categoryDisplay}}</a> |
67 </div> | 67 </div> |
68 <div class="countRow"> | 68 <div class="countRow"> |
69 <span class="cell">New Bad Fuzzes: {{fuzz.thisBadCount}}</span> | 69 <span class="cell">New Bad Fuzzes: {{fuzz.thisBadCount}}</span> |
70 <span class="cell">New Grey Fuzzes: {{fuzz.thisGreyCount}}</span> | 70 <span class="cell">Regressed Fuzzes: {{fuzz.thisRegressionCount}}</s
pan> |
71 </div> | 71 </div> |
72 <div class="countRow"> | 72 <div class="countRow"> |
73 <span class="cell">Total Bad Fuzzes: {{fuzz.totalBadCount}}</span> | 73 <span class="cell">Total Bad Fuzzes: {{fuzz.totalBadCount}}</span> |
74 <span class="cell">Total Grey Fuzzes: {{fuzz.totalGreyCount}}</span> | 74 <span class="cell">Total Grey Fuzzes: {{fuzz.totalGreyCount}}</span> |
75 </div> | 75 </div> |
76 </span> | 76 </span> |
77 </template> | 77 </template> |
78 </div> | 78 </div> |
79 </template> | 79 </template> |
80 <script> | 80 <script> |
81 Polymer({ | 81 Polymer({ |
82 is: 'fuzzer-summary-sk', | 82 is: 'fuzzer-summary-sk', |
83 | 83 |
84 properties: { | 84 properties: { |
85 fuzz_types: { | 85 fuzz_types: { |
86 type: Array, | 86 type: Array, |
87 value: function() { | 87 value: function() { |
88 return []; | 88 return []; |
89 } | 89 } |
90 }, | 90 }, |
91 }, | 91 }, |
92 | 92 |
93 getLink: function(fuzz){ | 93 getLink: function(fuzz){ |
94 // by default, hide these fuzzes | 94 // by default, hide these fuzzes |
95 return "/category/"+fuzz.category+ "?exclude=SKAbortHit"; | 95 return "/category/"+fuzz.category+ "?exclude=SKAbortHit"; |
96 }, | 96 }, |
97 }); | 97 }); |
98 </script> | 98 </script> |
99 </dom-module> | 99 </dom-module> |
OLD | NEW |