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
4 found in the LICENSE file.
7 <link rel="import" href="../bower_components/core-menu/core-menu.html">
8 <link rel="import" href="ct-results-by-builder.html">
9 <link rel="import" href="ct-embedded-flakiness-dashboard.html">
10 <link rel="import" href="ct-popout-iframe.html">
11 <link rel="import" href="ct-commit-list.html">
13 <polymer-element name="ct-results-panel" attributes="group failureGroupKey tree">
18 flex-direction: column;
25 core-menu > div.core-selected {
39 box-shadow: 0 3px 3px #ccc;
41 /* Override /deep/ selector in core-menu.css. */
45 /* So the box-shadow goes on top of the results. */
52 /* Stay below the box shadow of the core-menu. */
57 <template if="{{ !group.data.url && !group.data.failures.length }}">
58 <div class="message">{{ loading ? 'Loading...' : 'No results to display.' }}</div>
61 <template if="{{ group.data.url }}">
62 <ct-popout-iframe src="{{ group.data.url }}"></ct-popout-iframe>
65 <template if="{{ group.data.failures }}">
66 <template if="{{ group.data.failures.length }}">
67 <core-menu selected="{{ selected }}">
68 <template repeat="{{ failure in group.data.failures }}">
69 <template if="{{ failure.testName }}">
70 <div>{{ failure.testName }}</div>
76 <template if="{{ group.data.failures[selected].testName }}">
77 <ct-embedded-flakiness-dashboard test="{{ group.data.failures[selected] }}"></ct-embedded-flakiness-dashboard>
79 <ct-results-by-builder failure="{{ group.data.failures[selected] }}"></ct-results-by-builder>
80 <ct-commit-list commitList="{{ group.data.commitList }}" detailed="true"></ct-commit-list>
91 groupChanged: function() {