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"> |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 /* Stay below the box shadow of the core-menu. */ | 43 /* Stay below the box shadow of the core-menu. */ |
44 padding-top: 6px; | 44 padding-top: 6px; |
45 } | 45 } |
46 </style> | 46 </style> |
47 <template if="{{ !failures.length }}"> | 47 <template if="{{ !failures.length }}"> |
48 <div class="message">No results to display.</div> | 48 <div class="message">No results to display.</div> |
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 <template if="{{ failure.testName }}"> |
| 54 <paper-item label="{{ failure.testName }}"></paper-item> |
| 55 </template> |
54 </template> | 56 </template> |
55 </core-menu> | 57 </core-menu> |
56 <div class="results"> | 58 <div class="results"> |
57 <ct-embedded-flakiness-dashboard test="{{ failures[selected].testName }}
"></ct-embedded-flakiness-dashboard> | 59 <template if="{{ failures[selected].testName }}"> |
| 60 <ct-embedded-flakiness-dashboard test="{{ failures[selected] }}"></ct-
embedded-flakiness-dashboard> |
| 61 </template> |
58 <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> |
59 </div> | 63 </div> |
60 </template> | 64 </template> |
61 </template> | 65 </template> |
62 <script> | 66 <script> |
63 Polymer({ | 67 Polymer({ |
64 failures: [], | 68 failures: [], |
65 selected: 0, | 69 selected: 0, |
66 | 70 |
67 failuresChanged: function() { | 71 failuresChanged: function() { |
68 this.selected = 0; | 72 this.selected = 0; |
69 }, | 73 }, |
70 }); | 74 }); |
71 </script> | 75 </script> |
72 </polymer-element> | 76 </polymer-element> |
OLD | NEW |