Chromium Code Reviews| 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-building-grid { | |
|
ojan
2014/07/10 02:26:43
This is unused?
michaelpg
2014/07/10 02:53:28
yes, not sure how this got here.
| |
| 28 width: 350px; | |
| 29 } | |
| 30 | |
| 31 ct-failing-builders { | |
| 32 margin-left: 365px; | |
|
ojan
2014/07/10 02:26:43
I realize the old code probably did something like
michaelpg
2014/07/10 02:53:28
The goal is to get the failing builders to align w
ojan
2014/07/10 17:58:49
I see. What we really want here is grid layout and
| |
| 33 padding: 5px; | |
| 34 } | |
| 24 </style> | 35 </style> |
| 25 <ct-failure-analyzer id="analyzer" status="{{analyzerStatus}}" failures="{{f ailures}}"></ct-failure-analyzer> | 36 <ct-failure-analyzer id="analyzer" status="{{ analyzerStatus }}" failures="{ { failures }}"></ct-failure-analyzer> |
| 26 <ct-failure-grouper failures="{{failures}}" groups="{{failureGroups}}"></ct- failure-grouper> | 37 <ct-failure-grouper failures="{{ failures.unexpected }}" groups="{{ failureG roups }}"></ct-failure-grouper> |
| 27 <paper-button on-tap="{{update}}">Update</paper-button> | 38 <div> |
| 28 <ct-failure-stream groups="{{failureGroups}}"></ct-failure-stream> | 39 <paper-button on-tap="{{ update }}">Update</paper-button> |
| 29 <paper-toast id="toast" text="{{analyzerStatus}}"></paper-toast> | 40 <ct-failing-builders builders="{{ failures.builders }}"></ct-failing-build ers> |
| 41 </div> | |
| 42 <ct-failure-stream groups="{{ failureGroups }}"></ct-failure-stream> | |
| 43 <paper-toast id="toast" text="{{ analyzerStatus }}"></paper-toast> | |
| 30 </template> | 44 </template> |
| 31 <script> | 45 <script> |
| 32 Polymer({ | 46 Polymer({ |
| 33 attached: function() { | 47 attached: function() { |
| 34 this.update(); | 48 this.update(); |
| 35 }, | 49 }, |
| 36 | 50 |
| 37 update: function() { | 51 update: function() { |
| 38 this.$.analyzer.update(); | 52 this.$.analyzer.update(); |
| 39 }, | 53 }, |
| 40 | 54 |
| 41 analyzerStatusChanged: function() { | 55 analyzerStatusChanged: function() { |
| 42 this.$.toast.show(); | 56 this.$.toast.show(); |
| 43 }, | 57 }, |
| 44 }); | 58 }); |
| 45 </script> | 59 </script> |
| 46 </polymer-element> | 60 </polymer-element> |
| OLD | NEW |