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="../bower_components/paper-button/paper-button.html"> | 7 <link rel="import" href="../bower_components/paper-button/paper-button.html"> |
8 <link rel="import" href="../bower_components/paper-toast/paper-toast.html"> | 8 <link rel="import" href="../bower_components/paper-toast/paper-toast.html"> |
| 9 <link rel="import" href="ct-failing-builders.html"> |
9 <link rel="import" href="ct-failure-analyzer.html"> | 10 <link rel="import" href="ct-failure-analyzer.html"> |
10 <link rel="import" href="ct-failure-grouper.html"> | 11 <link rel="import" href="ct-failure-grouper.html"> |
11 <link rel="import" href="ct-failure-stream.html"> | 12 <link rel="import" href="ct-failure-stream.html"> |
12 | 13 |
13 <polymer-element name="ct-unexpected-failures"> | 14 <polymer-element name="ct-unexpected-failures"> |
14 <template> | 15 <template> |
15 <style> | 16 <style> |
16 paper-toast { | 17 paper-toast { |
17 bottom: 40px; | 18 bottom: 40px; |
18 left: 10px; | 19 left: 10px; |
19 } | 20 } |
| 21 |
20 paper-button { | 22 paper-button { |
21 background: #4285f4; | 23 background: #4285f4; |
22 color: #fff; | 24 color: #fff; |
23 } | 25 } |
| 26 |
| 27 ct-failing-builders { |
| 28 margin-left: 365px; |
| 29 padding: 5px; |
| 30 } |
24 </style> | 31 </style> |
25 <ct-failure-analyzer id="analyzer" status="{{analyzerStatus}}" failures="{{f
ailures}}"></ct-failure-analyzer> | 32 <ct-failure-analyzer id="analyzer" status="{{ analyzerStatus }}" failures="{
{ failures }}"></ct-failure-analyzer> |
26 <ct-failure-grouper failures="{{failures}}" groups="{{failureGroups}}"></ct-
failure-grouper> | 33 <ct-failure-grouper failures="{{ failures.unexpected }}" groups="{{ failureG
roups }}"></ct-failure-grouper> |
27 <paper-button on-tap="{{update}}">Update</paper-button> | 34 <div> |
28 <ct-failure-stream groups="{{failureGroups}}"></ct-failure-stream> | 35 <paper-button on-tap="{{ update }}">Update</paper-button> |
29 <paper-toast id="toast" text="{{analyzerStatus}}"></paper-toast> | 36 <ct-failing-builders builders="{{ failures.builders }}"></ct-failing-build
ers> |
| 37 </div> |
| 38 <ct-failure-stream groups="{{ failureGroups }}"></ct-failure-stream> |
| 39 <paper-toast id="toast" text="{{ analyzerStatus }}"></paper-toast> |
30 </template> | 40 </template> |
31 <script> | 41 <script> |
32 Polymer({ | 42 Polymer({ |
33 attached: function() { | 43 attached: function() { |
34 this.update(); | 44 this.update(); |
35 }, | 45 }, |
36 | 46 |
37 update: function() { | 47 update: function() { |
38 this.$.analyzer.update(); | 48 this.$.analyzer.update(); |
39 }, | 49 }, |
40 | 50 |
41 analyzerStatusChanged: function() { | 51 analyzerStatusChanged: function() { |
42 this.$.toast.show(); | 52 this.$.toast.show(); |
43 }, | 53 }, |
44 }); | 54 }); |
45 </script> | 55 </script> |
46 </polymer-element> | 56 </polymer-element> |
OLD | NEW |