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 <link href="../model/ct-builder-revisions.html" rel="import"> | 6 <link href="../model/ct-builder-revisions.html" rel="import"> |
7 | 7 |
| 8 <link rel="import" href="../lib/net.html"> |
8 <link rel="import" href="../model/ct-failure.html"> | 9 <link rel="import" href="../model/ct-failure.html"> |
9 <link rel="import" href="../model/ct-failure-group.html"> | 10 <link rel="import" href="../model/ct-failure-group.html"> |
10 | 11 |
11 <polymer-element name="ct-failure-analyzer" attributes="failures builderLatestRe
visions lastUpdateDate"> | 12 <polymer-element name="ct-failure-analyzer" attributes="failures builderLatestRe
visions lastUpdateDate"> |
12 <script> | 13 <script> |
13 // FIXME: Don't use a polymer component for this. Instead use a Failures mod
el | 14 // FIXME: Don't use a polymer component for this. Instead use a Failures mod
el |
14 // object that knows how to do the XHR and process the data appropriately. | 15 // object that knows how to do the XHR and process the data appropriately. |
15 Polymer({ | 16 Polymer({ |
16 builderLatestRevisions: null, | 17 builderLatestRevisions: null, |
17 failures: null, | 18 failures: null, |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 if (!this.failures[tree]) | 158 if (!this.failures[tree]) |
158 this.failures[tree] = []; | 159 this.failures[tree] = []; |
159 // FIXME: Need a better identifier for a failure group; | 160 // FIXME: Need a better identifier for a failure group; |
160 var key = group.sort_key; | 161 var key = group.sort_key; |
161 this.failures[tree].push(new CTFailureGroup(key, failures, annotations
[key])); | 162 this.failures[tree].push(new CTFailureGroup(key, failures, annotations
[key])); |
162 }.bind(this)); | 163 }.bind(this)); |
163 }, | 164 }, |
164 }); | 165 }); |
165 </script> | 166 </script> |
166 </polymer-element> | 167 </polymer-element> |
OLD | NEW |