| 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-builder-failure-card" attributes="group builderList" n
oscript> | 11 <polymer-element name="ct-builder-failure-card" attributes="group" noscript> |
| 12 <template> | 12 <template> |
| 13 <style> | 13 <style> |
| 14 :host { |
| 15 display: flex; |
| 16 flex: 1; |
| 17 } |
| 18 |
| 14 ct-builder-grid { | 19 ct-builder-grid { |
| 15 margin-right: 10px; | 20 margin-right: 10px; |
| 16 width: 250px; | 21 width: 250px; |
| 17 } | 22 } |
| 18 | 23 |
| 19 #failure { | 24 #failure { |
| 20 flex: 1; | 25 flex: 1; |
| 21 } | 26 } |
| 22 </style> | 27 </style> |
| 23 <ct-builder-grid builderList="{{ builderList }}"></ct-builder-grid> | 28 <ct-builder-grid builderList="{{ _builderList }}"></ct-builder-grid> |
| 24 <div id="failure"> | 29 <div id="failure"> |
| 25 <template if="{{ group.failure.step == 'building' }}"> | 30 <template if="{{ group.failure.step == 'building' }}"> |
| 26 Running | 31 Running |
| 27 </template> | 32 </template> |
| 28 <template if="{{ group.failure.step == 'offline' }}"> | 33 <template if="{{ group.failure.step == 'offline' }}"> |
| 29 Offline | 34 Offline |
| 30 </template> | 35 </template> |
| 31 for {{ group.failure.testName }} | 36 for {{ group.failure.testName }} |
| 32 </div> | 37 </div> |
| 33 </template> | 38 </template> |
| 39 <script> |
| 40 Polymer({ |
| 41 group: null, |
| 42 _builderList: null, |
| 43 |
| 44 observe: { |
| 45 'group.failure': '_updateBuilderList', |
| 46 }, |
| 47 |
| 48 _updateBuilderList: function() { |
| 49 this._builderList = new CTBuilderList(this.group.failure); |
| 50 }, |
| 51 }); |
| 52 </script> |
| 34 </polymer-element> | 53 </polymer-element> |
| 35 | 54 |
| 36 | 55 |
| OLD | NEW |