| 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-icon-button/paper-icon-button
.html"> | 7 <link rel="import" href="../bower_components/paper-icon-button/paper-icon-button
.html"> |
| 8 | 8 |
| 9 <polymer-element name="ct-test-list" attributes="tests tree"> | 9 <polymer-element name="ct-test-list" attributes="tests tree"> |
| 10 <template> | 10 <template> |
| 11 <style> | 11 <style> |
| 12 :host { | 12 :host { |
| 13 display: block; | 13 display: block; |
| 14 } | 14 } |
| 15 | 15 |
| 16 :host > div { |
| 17 /* Be at least the height of a paper-icon-button. |
| 18 So things line up nicely. */ |
| 19 min-height: 24px; |
| 20 } |
| 21 |
| 16 paper-icon-button { | 22 paper-icon-button { |
| 17 vertical-align: middle; | 23 vertical-align: middle; |
| 18 } | 24 } |
| 25 |
| 26 paper-icon-button::shadow #icon { |
| 27 margin: 0; |
| 28 } |
| 19 </style> | 29 </style> |
| 20 <template repeat="{{ groups in testGroups_ }}"> | 30 <template repeat="{{ groups in testGroups_ }}"> |
| 21 <!-- FIXME: Find a less redundant UI than repeating the step on each line.
--> | 31 <!-- FIXME: Find a less redundant UI than repeating the step on each line.
--> |
| 22 <template repeat="{{ group in groups.tests }}"> | 32 <template repeat="{{ group in groups.tests }}"> |
| 23 <!-- Case 1: entire step failed --> | 33 <!-- Case 1: entire step failed --> |
| 24 <template if="{{ !group.name }}"> | 34 <template if="{{ !group.name }}"> |
| 25 <div>{{ groups.step }} <b>whole step failed</b></div> | 35 <div>{{ groups.step }} <b>whole step failed</b></div> |
| 26 </template> | 36 </template> |
| 27 <!-- Case 2: single test failure --> | 37 <!-- Case 2: single test failure --> |
| 28 <template if="{{ group.name && (group.tests.length == 1 || group.expande
d) }}"> | 38 <template if="{{ group.name && (group.tests.length == 1 || group.expande
d) }}"> |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 } | 94 } |
| 85 }); | 95 }); |
| 86 }, | 96 }, |
| 87 | 97 |
| 88 flakinessDashboardURL: function(test) { | 98 flakinessDashboardURL: function(test) { |
| 89 return test.flakinessDashboardURL(this.tree); | 99 return test.flakinessDashboardURL(this.tree); |
| 90 }, | 100 }, |
| 91 }); | 101 }); |
| 92 </script> | 102 </script> |
| 93 </polymer-element> | 103 </polymer-element> |
| OLD | NEW |