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

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: Moar flex 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: flex;
15 margin: 5px;
16 padding: 5px;
17 border-top: 1px solid lightgrey;
18 }
19
20 paper-button {
21 background: papayawhip;
22 }
23 </style>
24 <div style="flex: 1">
esprehn 2014/07/01 19:47:45 I wouldn't use inline styles, if you want to go al
25 <ct-test-list tests="{{failures|testNames}}"></ct-test-list>
26 <ct-commit-list first="{{failures[0].newestPassingRevision + 1}}"
esprehn 2014/07/01 19:47:45 This is weird, why do you only care about the firs
27 last="{{failures[0].oldestFailingRevision}}"></ct-commit-l ist>
28 </div>
29 <div>
30 <paper-button id="examine" on-tap="{{examine}}">Examine</paper-button>
31 </div>
32 </template>
33 <script>
34 Polymer({
35 failures: [],
36
37 testNames: function(failures) {
38 return failures.map(function(failureAnalysis) { return failureAnalysis.t estName });
39 },
40
41 examine: function() {
42 this.fire('ct-examine-failures', this.failures);
43 },
44 });
45 </script>
46 </polymer-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698