OLD | NEW |
1 <!-- | 1 <!-- |
2 The res/js/fuzzer.js file must be included before this file. | 2 The res/js/fuzzer.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-info-sk> | 7 <fuzzer-info-sk> |
8 | 8 |
9 This element will query /json/details for all of the detailed fuzz reports of
a given file (passed in by query params) and displayed. | 9 This element will query /json/details for all of the detailed fuzz reports of
a given file (passed in by query params) and displayed. |
10 This may be further scoped by function, line number and fuzz-type (either bina
ry or api) | 10 This may be further scoped by function, line number and fuzz-type (either bina
ry or api) |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 _getURLParams: function(category) { | 102 _getURLParams: function(category) { |
103 return { | 103 return { |
104 "category": category, | 104 "category": category, |
105 "file": fuzzer.paramFromPath("file"), | 105 "file": fuzzer.paramFromPath("file"), |
106 "func": fuzzer.paramFromPath("func"), | 106 "func": fuzzer.paramFromPath("func"), |
107 "line": fuzzer.paramFromPath("line"), | 107 "line": fuzzer.paramFromPath("line"), |
108 "name": fuzzer.paramFromPath("name"), | 108 "name": fuzzer.paramFromPath("name"), |
109 }; | 109 }; |
110 }, | 110 }, |
111 _shouldExpand: function(){ | 111 _shouldExpand: function(){ |
112 return fuzzer.paramFromPath("file").length > 0; | 112 return fuzzer.paramFromPath("file").length > 0 || fuzzer.paramFromPath("
name").length > 0; |
113 }, | 113 }, |
114 _byCount: function(a, b) { | 114 _byCount: function(a, b) { |
115 // Higher counts come first | 115 // Higher counts come first |
116 return b.count - a.count; | 116 return b.count - a.count; |
117 }, | 117 }, |
118 _filter: function(fileDetails, include, exclude){ | 118 _filter: function(fileDetails, include, exclude){ |
119 if (this._empty(fileDetails)) { | 119 if (this._empty(fileDetails)) { |
120 return []; | 120 return []; |
121 } | 121 } |
122 exclude = exclude || []; | 122 exclude = exclude || []; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 | 159 |
160 return retVal; | 160 return retVal; |
161 | 161 |
162 }, | 162 }, |
163 _empty: function(a) { | 163 _empty: function(a) { |
164 return !a || !a.length; | 164 return !a || !a.length; |
165 } | 165 } |
166 }); | 166 }); |
167 </script> | 167 </script> |
168 </dom-module> | 168 </dom-module> |
OLD | NEW |