Chromium Code Reviews| OLD | NEW |
|---|---|
| (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; | |
| 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-commits> | |
|
michaelpg
2014/06/29 23:16:05
</ct-commit-list>
michaelpg
2014/06/29 23:58:32
first and last are reversed (or, they need to be r
abarth-chromium
2014/06/30 00:43:28
Why are they reversed? The first (earliest) commi
michaelpg
2014/06/30 02:32:38
Sorry, you're totally right. What I was actually s
| |
| 39 </template> | |
| 40 <script> | |
| 41 Polymer({ | |
| 42 testNames: function(failures) { | |
| 43 return failures.map(function(failureAnalysis) { return failureAnalysis.t estName }); | |
| 44 }, | |
| 45 examine: function() { | |
| 46 this.fire('ct-examine-failures', this.failures); | |
| 47 }, | |
| 48 }); | |
| 49 </script> | |
| 50 </polymer-element> | |
| OLD | NEW |