Chromium Code Reviews| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 <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 <ct-embedded-flakiness-dashboard test="{{ failures[selected].testName }} "></ct-embedded-flakiness-dashboard> | 57 <!-- FIXME: Do this in a better way than comparing to the test name. --> |
| 58 <template if="{{ failures[selected].testName != 'whole step failed' }}"> | |
|
abarth-chromium
2014/07/29 16:38:17
It's sad that 'whole step failed' is used as a mag
ojan
2014/07/30 04:14:17
Done.
| |
| 59 <ct-embedded-flakiness-dashboard test="{{ failures[selected] }}"></ct- embedded-flakiness-dashboard> | |
| 60 </template> | |
| 58 <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> |
| 59 </div> | 62 </div> |
| 60 </template> | 63 </template> |
| 61 </template> | 64 </template> |
| 62 <script> | 65 <script> |
| 63 Polymer({ | 66 Polymer({ |
| 64 failures: [], | 67 failures: [], |
| 65 selected: 0, | 68 selected: 0, |
| 66 | 69 |
| 67 failuresChanged: function() { | 70 failuresChanged: function() { |
| 68 this.selected = 0; | 71 this.selected = 0; |
| 69 }, | 72 }, |
| 70 }); | 73 }); |
| 71 </script> | 74 </script> |
| 72 </polymer-element> | 75 </polymer-element> |
| OLD | NEW |