| 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 27 matching lines...) Expand all Loading... |
| 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 <template if="{{ failure.testName }}"> | 53 <template if="{{ failure.testName }}"> |
| 54 <paper-item label="{{ failure.testName }}"></paper-item> | 54 <paper-item label="{{ failure.testName }}"></paper-item> |
| 55 </template> | 55 </template> |
| 56 </template> | 56 </template> |
| 57 </core-menu> | 57 </core-menu> |
| 58 <div class="results"> | 58 <div class="results"> |
| 59 <template if="{{ failures[selected].testName }}"> | 59 <template if="{{ failures[selected].testName }}"> |
| 60 <ct-embedded-flakiness-dashboard test="{{ failures[selected] }}"></ct-
embedded-flakiness-dashboard> | 60 <ct-embedded-flakiness-dashboard test="{{ failures[selected] }}" tree=
"{{ tree }}"></ct-embedded-flakiness-dashboard> |
| 61 </template> | 61 </template> |
| 62 <ct-results-by-builder failure="{{ failures[selected] }}"></ct-results-b
y-builder> | 62 <ct-results-by-builder failure="{{ failures[selected] }}"></ct-results-b
y-builder> |
| 63 </div> | 63 </div> |
| 64 </template> | 64 </template> |
| 65 </template> | 65 </template> |
| 66 <script> | 66 <script> |
| 67 Polymer({ | 67 Polymer({ |
| 68 failures: [], | 68 failures: [], |
| 69 selected: 0, | 69 selected: 0, |
| 70 tree: '', |
| 70 | 71 |
| 71 failuresChanged: function() { | 72 failuresChanged: function() { |
| 72 this.selected = 0; | 73 this.selected = 0; |
| 73 }, | 74 }, |
| 74 }); | 75 }); |
| 75 </script> | 76 </script> |
| 76 </polymer-element> | 77 </polymer-element> |
| OLD | NEW |