| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright 2014 The Chromium Authors. All rights reserved. | 2 Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 Use of this source code is governed by a BSD-style license that can be | 3 Use of this source code is governed by a BSD-style license that can be |
| 4 found in the LICENSE file. | 4 found in the LICENSE file. |
| 5 --> | 5 --> |
| 6 | 6 |
| 7 <link rel="import" href="ct-builder.html"> | 7 <link rel="import" href="ct-builder.html"> |
| 8 | 8 |
| 9 <!-- Table of failure types, listing the failing builders for each type. --> | 9 <!-- Table of failure types, listing the failing builders for each type. --> |
| 10 <polymer-element name="ct-builder-grid" attributes="failures builderLatestRevisi
ons"> | 10 <polymer-element name="ct-builder-grid" attributes="failures builderLatestRevisi
ons"> |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 }, | 118 }, |
| 119 | 119 |
| 120 failuresChanged: function() { | 120 failuresChanged: function() { |
| 121 // Create a set of builders for each result type (e.g., text, crash). | 121 // Create a set of builders for each result type (e.g., text, crash). |
| 122 this.resultTypes = {}; | 122 this.resultTypes = {}; |
| 123 var passingRevisions = []; | 123 var passingRevisions = []; |
| 124 this.failures.forEach(function(failure) { | 124 this.failures.forEach(function(failure) { |
| 125 passingRevisions.push(failure.newestPassingRevision); | 125 passingRevisions.push(failure.newestPassingRevision); |
| 126 var results = failure.resultNodesByBuilder; | 126 var results = failure.resultNodesByBuilder; |
| 127 Object.keys(results, (function(builder) { | 127 Object.keys(results, (function(builder) { |
| 128 var result = results[builder]; | 128 var result = results[builder].actual; |
| 129 if (!result.is_unexpected) | 129 if (!Object.has(this.resultTypes, result)) |
| 130 return; | 130 this.resultTypes[result] = {}; |
| 131 | 131 this.resultTypes[result][builder] = |
| 132 if (!Object.has(this.resultTypes, result.actual)) | |
| 133 this.resultTypes[result.actual] = {}; | |
| 134 this.resultTypes[result.actual][builder] = | |
| 135 config.builders[builder]; | 132 config.builders[builder]; |
| 136 }).bind(this)); | 133 }).bind(this)); |
| 137 }, this); | 134 }, this); |
| 138 | 135 |
| 139 var buildingType = this._getBuilding(passingRevisions); | 136 var buildingType = this._getBuilding(passingRevisions); |
| 140 if (!Object.isEmpty(buildingType)) | 137 if (!Object.isEmpty(buildingType)) |
| 141 this.resultTypes['BUILDING'] = buildingType; | 138 this.resultTypes['BUILDING'] = buildingType; |
| 142 }, | 139 }, |
| 143 | 140 |
| 144 _buildersInFlightForRevision: function(revision) { | 141 _buildersInFlightForRevision: function(revision) { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 160 if (!config.builders[builder]) | 157 if (!config.builders[builder]) |
| 161 return; | 158 return; |
| 162 building[builder] = {'debug': config.builders[builder].debug}; | 159 building[builder] = {'debug': config.builders[builder].debug}; |
| 163 }); | 160 }); |
| 164 | 161 |
| 165 return building; | 162 return building; |
| 166 }, | 163 }, |
| 167 }); | 164 }); |
| 168 </script> | 165 </script> |
| 169 </polymer-element> | 166 </polymer-element> |
| OLD | NEW |