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-grid.html"> | 7 <link rel="import" href="ct-builder-grid.html"> |
8 <link rel="import" href="ct-commit-list.html"> | 8 <link rel="import" href="ct-commit-list.html"> |
9 <link rel="import" href="ct-test-list.html"> | 9 <link rel="import" href="ct-test-list.html"> |
10 | 10 |
11 <polymer-element name="ct-failure-card" attributes="failures"> | 11 <polymer-element name="ct-failure-card" attributes="failures builderLatestRevisi
ons commits"> |
12 <template> | 12 <template> |
13 <style> | 13 <style> |
14 :host { | 14 :host { |
15 display: flex; | 15 display: flex; |
16 } | 16 } |
17 | 17 |
18 paper-button { | 18 paper-button { |
19 background: papayawhip; | 19 background: papayawhip; |
20 } | 20 } |
21 | 21 |
22 ct-builder-grid { | 22 ct-builder-grid { |
23 margin-right: 10px; | 23 margin-right: 10px; |
24 } | 24 } |
25 </style> | 25 </style> |
26 <ct-builder-grid failures="{{failures}}"></ct-builder-grid> | 26 <ct-builder-grid failures="{{failures}}" builderLatestRevisions="{{builderLa
testRevisions}}"></ct-builder-grid> |
27 <div style="flex: 1"> | 27 <div style="flex: 1"> |
28 <ct-test-list tests="{{failures|testNames}}"></ct-test-list> | 28 <ct-test-list tests="{{failures|testNames}}"></ct-test-list> |
29 <ct-commit-list first="{{failures[0].newestPassingRevision + 1}}" | 29 <ct-commit-list first="{{failures[0].newestPassingRevision + 1}}" |
30 last="{{failures[0].oldestFailingRevision}}"></ct-commit-l
ist> | 30 last="{{failures[0].oldestFailingRevision}}" |
| 31 commits="{{commits}}"></ct-commit-list> |
31 </div> | 32 </div> |
32 <div> | 33 <div> |
33 <paper-button id="examine" on-tap="{{examine}}">Examine</paper-button> | 34 <paper-button id="examine" on-tap="{{examine}}">Examine</paper-button> |
34 </div> | 35 </div> |
35 </template> | 36 </template> |
36 <script> | 37 <script> |
37 Polymer({ | 38 Polymer({ |
38 failures: [], | 39 failures: [], |
| 40 builderLatestRevisions: {}, |
| 41 commits: {}, |
39 | 42 |
40 testNames: function(failures) { | 43 testNames: function(failures) { |
41 return failures.map(function(failureAnalysis) { return failureAnalysis.t
estName }); | 44 return failures.map(function(failureAnalysis) { return failureAnalysis.t
estName }); |
42 }, | 45 }, |
43 | 46 |
44 examine: function() { | 47 examine: function() { |
45 this.fire('ct-examine-failures', this.failures); | 48 this.fire('ct-examine-failures', this.failures); |
46 }, | 49 }, |
47 }); | 50 }); |
48 </script> | 51 </script> |
49 </polymer-element> | 52 </polymer-element> |
OLD | NEW |