Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: Tools/GardeningServer/ui/ct-failure-card.html

Issue 349783003: Polymer-based Garden-O-Matic should have a basic results panel (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix closing tag Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!--
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.
5 -->
6
7 <link rel="import" href="ct-commit-list.html">
8 <link rel="import" href="ct-test-list.html">
9
10 <polymer-element name="ct-failure-card" attributes="failures">
11 <template>
12 <style>
13 :host {
14 display: block;
15 margin: 5px;
16 padding: 5px;
17 border-top: 1px solid lightgrey;
18 min-height: 30px;
ojan 2014/06/30 04:48:14 Nit: Why the min-height?
abarth-chromium 2014/06/30 04:55:05 Otherwise the Examine button overhangs the next en
ojan 2014/06/30 04:57:22 Clear is better. More explicit what it's there for
19 }
20
21 :host(:hover) > #examine {
22 display: initial;
23 }
24
25 #examine {
26 display: none;
27 float: right;
28 }
29
30 paper-button {
31 background: #4285f4;
32 color: #fff;
33 }
34 </style>
35 <paper-button id="examine" on-tap="{{examine}}">Examine</paper-button>
36 <ct-test-list tests="{{failures|testNames}}"></ct-test-list>
37 <ct-commit-list first="{{failures[0].newestPassingRevision + 1}}"
38 last="{{failures[0].oldestFailingRevision}}"></ct-commit-lis t>
39 </template>
40 <script>
41 Polymer({
42 failures: [],
43
44 testNames: function(failures) {
45 return failures.map(function(failureAnalysis) { return failureAnalysis.t estName });
46 },
47 examine: function() {
48 this.fire('ct-examine-failures', this.failures);
49 },
50 });
51 </script>
52 </polymer-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698