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="ct-results-by-builder.html"> | 8 <link rel="import" href="ct-results-by-builder.html"> |
9 <link rel="import" href="ct-embedded-flakiness-dashboard.html"> | 9 <link rel="import" href="ct-embedded-flakiness-dashboard.html"> |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 core-menu > div.core-selected { | 23 core-menu > div.core-selected { |
24 font-weight: bold; | 24 font-weight: bold; |
25 } | 25 } |
26 | 26 |
27 .message { | 27 .message { |
28 margin: 20px; | 28 margin: 20px; |
29 text-align: center; | 29 text-align: center; |
30 } | 30 } |
31 | 31 |
| 32 iframe { |
| 33 height: 100%; |
| 34 } |
| 35 |
32 core-menu { | 36 core-menu { |
33 box-shadow: 0 3px 3px #ccc; | 37 box-shadow: 0 3px 3px #ccc; |
34 flex: none; | 38 flex: none; |
35 /* Override /deep/ selector in core-menu.css. */ | 39 /* Override /deep/ selector in core-menu.css. */ |
36 margin: 0 !important; | 40 margin: 0 !important; |
37 max-height: 20%; | 41 max-height: 20%; |
38 overflow: auto; | 42 overflow: auto; |
39 /* So the box-shadow goes on top of the results. */ | 43 /* So the box-shadow goes on top of the results. */ |
40 z-index: 1; | 44 z-index: 1; |
41 } | 45 } |
42 | 46 |
43 .results { | 47 .results { |
44 flex: 1; | 48 flex: 1; |
45 overflow: auto; | 49 overflow: auto; |
46 /* Stay below the box shadow of the core-menu. */ | 50 /* Stay below the box shadow of the core-menu. */ |
47 padding-top: 6px; | 51 padding-top: 6px; |
48 } | 52 } |
49 </style> | 53 </style> |
50 <template if="{{ !failures.length }}"> | 54 <template if="{{ !failures.length && !failures.url }}"> |
51 <div class="message">No results to display.</div> | 55 <div class="message">No results to display.</div> |
52 </template> | 56 </template> |
| 57 <template if="{{ failures.url }}"> |
| 58 <iframe src='{{ failures.url }}'></iframe> |
| 59 </template> |
53 <template if="{{ failures.length }}"> | 60 <template if="{{ failures.length }}"> |
54 <core-menu selected="{{ selected }}"> | 61 <core-menu selected="{{ selected }}"> |
55 <template repeat="{{ failure in failures }}"> | 62 <template repeat="{{ failure in failures }}"> |
56 <template if="{{ failure.testName }}"> | 63 <template if="{{ failure.testName }}"> |
57 <div>{{ failure.testName }}</div> | 64 <div>{{ failure.testName }}</div> |
58 </template> | 65 </template> |
59 </template> | 66 </template> |
60 </core-menu> | 67 </core-menu> |
61 <div class="results"> | 68 <div class="results"> |
62 <template if="{{ failures[selected].testName }}"> | 69 <template if="{{ failures[selected].testName }}"> |
63 <ct-embedded-flakiness-dashboard test="{{ failures[selected] }}" tree=
"{{ tree }}"></ct-embedded-flakiness-dashboard> | 70 <ct-embedded-flakiness-dashboard test="{{ failures[selected] }}" tree=
"{{ tree }}"></ct-embedded-flakiness-dashboard> |
64 </template> | 71 </template> |
65 <ct-results-by-builder failure="{{ failures[selected] }}"></ct-results-b
y-builder> | 72 <ct-results-by-builder failure="{{ failures[selected] }}"></ct-results-b
y-builder> |
66 </div> | 73 </div> |
67 </template> | 74 </template> |
68 </template> | 75 </template> |
69 <script> | 76 <script> |
70 Polymer({ | 77 Polymer({ |
71 failures: [], | 78 failures: [], |
72 selected: 0, | 79 selected: 0, |
73 tree: '', | 80 tree: '', |
74 | 81 |
75 failuresChanged: function() { | 82 failuresChanged: function() { |
76 this.selected = 0; | 83 this.selected = 0; |
77 }, | 84 }, |
78 }); | 85 }); |
79 </script> | 86 </script> |
80 </polymer-element> | 87 </polymer-element> |
OLD | NEW |