| 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/core-menu/core-menu.html"> | 7 <link rel="import" href="../bower_components/core-menu/core-menu.html"> |
| 8 <link rel="import" href="../bower_components/paper-item/paper-item.html"> | 8 <link rel="import" href="../bower_components/paper-item/paper-item.html"> |
| 9 <link rel="import" href="ct-results-by-builder.html"> | 9 <link rel="import" href="ct-results-by-builder.html"> |
| 10 <link rel="import" href="ct-embedded-flakiness-dashboard.html"> | 10 <link rel="import" href="ct-embedded-flakiness-dashboard.html"> |
| 11 | 11 |
| 12 <polymer-element name="ct-results-panel" attributes="failures"> | 12 <polymer-element name="ct-results-panel" attributes="failures tree"> |
| 13 <template> | 13 <template> |
| 14 <style> | 14 <style> |
| 15 :host { | 15 :host { |
| 16 display: flex; | 16 display: flex; |
| 17 flex-direction: column; | 17 flex-direction: column; |
| 18 } | 18 } |
| 19 | 19 |
| 20 paper-item.core-selected { | 20 paper-item.core-selected { |
| 21 font-weight: bold; | 21 font-weight: bold; |
| 22 } | 22 } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 49 </template> | 49 </template> |
| 50 <template if="{{ failures.length }}"> | 50 <template if="{{ failures.length }}"> |
| 51 <core-menu selected="{{ selected }}"> | 51 <core-menu selected="{{ selected }}"> |
| 52 <template repeat="{{ failure in failures }}"> | 52 <template repeat="{{ failure in failures }}"> |
| 53 <paper-item label="{{ failure.testName }}"></paper-item> | 53 <paper-item label="{{ failure.testName }}"></paper-item> |
| 54 </template> | 54 </template> |
| 55 </core-menu> | 55 </core-menu> |
| 56 <div class="results"> | 56 <div class="results"> |
| 57 <!-- FIXME: Do this in a better way than comparing to the test name. --> | 57 <!-- FIXME: Do this in a better way than comparing to the test name. --> |
| 58 <template if="{{ failures[selected].testName != 'whole step failed' }}"> | 58 <template if="{{ failures[selected].testName != 'whole step failed' }}"> |
| 59 <ct-embedded-flakiness-dashboard test="{{ failures[selected] }}"></ct-
embedded-flakiness-dashboard> | 59 <ct-embedded-flakiness-dashboard test="{{ failures[selected] }}" tree=
"{{ tree }}"></ct-embedded-flakiness-dashboard> |
| 60 </template> | 60 </template> |
| 61 <ct-results-by-builder failure="{{ failures[selected] }}"></ct-results-b
y-builder> | 61 <ct-results-by-builder failure="{{ failures[selected] }}"></ct-results-b
y-builder> |
| 62 </div> | 62 </div> |
| 63 </template> | 63 </template> |
| 64 </template> | 64 </template> |
| 65 <script> | 65 <script> |
| 66 Polymer({ | 66 Polymer({ |
| 67 failures: [], | 67 failures: [], |
| 68 selected: 0, | 68 selected: 0, |
| 69 tree: '', |
| 69 | 70 |
| 70 failuresChanged: function() { | 71 failuresChanged: function() { |
| 71 this.selected = 0; | 72 this.selected = 0; |
| 72 }, | 73 }, |
| 73 }); | 74 }); |
| 74 </script> | 75 </script> |
| 75 </polymer-element> | 76 </polymer-element> |
| OLD | NEW |