| 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/paper-button/paper-button.html"> | 7 <link rel="import" href="../bower_components/paper-button/paper-button.html"> |
| 8 <link rel="import" href="../model/tree-status.html"> | 8 <link rel="import" href="../model/tree-status.html"> |
| 9 <link rel="import" href="ct-failure-stream.html"> | 9 <link rel="import" href="ct-failure-stream.html"> |
| 10 <link rel="import" href="ct-last-updated.html"> | 10 <link rel="import" href="ct-last-updated.html"> |
| 11 <link rel="import" href="ct-party-time.html"> | 11 <link rel="import" href="ct-party-time.html"> |
| 12 <link rel="import" href="ct-revision-details.html"> | |
| 13 <link rel="import" href="ct-tree-status.html"> | 12 <link rel="import" href="ct-tree-status.html"> |
| 14 | 13 |
| 15 <polymer-element name="ct-unexpected-failures" attributes="tree commitLog failur
es"> | 14 <polymer-element name="ct-unexpected-failures" attributes="tree commitLog failur
es"> |
| 16 <template> | 15 <template> |
| 17 <style> | 16 <style> |
| 18 ct-tree-status { | 17 ct-tree-status { |
| 19 white-space: nowrap; | 18 white-space: nowrap; |
| 20 overflow: hidden; | 19 overflow: hidden; |
| 21 text-overflow: ellipsis; | 20 text-overflow: ellipsis; |
| 22 margin: 5px; | 21 margin: 5px; |
| 23 padding: 3px; | 22 padding: 3px; |
| 24 } | 23 } |
| 25 | 24 |
| 26 ct-tree-status[state=open] { | 25 ct-tree-status[state=open] { |
| 27 margin: 0; | 26 margin: 0; |
| 28 padding: 0; | 27 padding: 0; |
| 29 } | 28 } |
| 30 | 29 |
| 31 .toolbar { | 30 .toolbar { |
| 32 display: flex; | 31 display: flex; |
| 33 justify-content: space-between; | 32 justify-content: space-between; |
| 34 align-items: baseline; | 33 align-items: baseline; |
| 35 padding: 0 5px; | 34 padding: 0 5px; |
| 36 } | 35 } |
| 37 | |
| 38 .failure-group-header { | |
| 39 padding: 0 5px; | |
| 40 } | |
| 41 </style> | 36 </style> |
| 42 <div class="toolbar"> | 37 <div class="toolbar"> |
| 43 <ct-revision-details id="revisionDetails" builderLatestRevisions="{{ failu
res.builderLatestRevisions }}" commitLog="{{ commitLog }}" tree="{{ tree }}"></c
t-revision-details> | |
| 44 <a href="https://code.google.com/p/chromium/wiki/UsefulURLs">Useful URLs</
a> | 38 <a href="https://code.google.com/p/chromium/wiki/UsefulURLs">Useful URLs</
a> |
| 45 </div> | 39 </div> |
| 46 <ct-tree-status status="{{ treeStatuses['chromium'] }}" state="{{ treeStatus
es['chromium'].status }}"></ct-tree-status> | 40 <ct-tree-status status="{{ treeStatuses['chromium'] }}" state="{{ treeStatus
es['chromium'].status }}"></ct-tree-status> |
| 47 <ct-tree-status status="{{ treeStatuses['blink'] }}" state="{{ treeStatuses[
'blink'].status }}"></ct-tree-status> | 41 <ct-tree-status status="{{ treeStatuses['blink'] }}" state="{{ treeStatuses[
'blink'].status }}"></ct-tree-status> |
| 48 <template if="{{ failures && failures.failures && (!failures.failures[tree]
|| !failures.failures[tree].length) }}"> | 42 <template if="{{ failures && failures.failures && (!failures.failures[tree]
|| !failures.failures[tree].length) }}"> |
| 49 <ct-party-time></ct-party-time> | 43 <ct-party-time></ct-party-time> |
| 50 </template> | 44 </template> |
| 45 <ct-failure-stream title="Probably-hung bots" category="builders" groups="{{
failures.failures[tree] }}" commitLog="{{ commitLog }}" tree="{{ tree }}"></ct-
failure-stream> |
| 51 <ct-failure-stream title="Reliable failures" category="default" groups="{{ f
ailures && failures.failures[tree] }}" commitLog="{{ commitLog }}" tree="{{ tree
}}"></ct-failure-stream> | 46 <ct-failure-stream title="Reliable failures" category="default" groups="{{ f
ailures && failures.failures[tree] }}" commitLog="{{ commitLog }}" tree="{{ tree
}}"></ct-failure-stream> |
| 52 <ct-failure-stream title="Failures that have only happened once (on one bot)
" category="failedOnce" groups="{{ failures && failures.failures[tree] }}" commi
tLog="{{ commitLog }}" tree="{{ tree }}"></ct-failure-stream> | 47 <ct-failure-stream title="Failures that have only happened once (on one bot)
" category="failedOnce" groups="{{ failures && failures.failures[tree] }}" commi
tLog="{{ commitLog }}" tree="{{ tree }}"></ct-failure-stream> |
| 53 <ct-failure-stream title="Snoozed failures" category="snoozed" groups="{{ fa
ilures && failures.failures[tree] }}" commitLog="{{ commitLog }}" tree="{{ tree
}}"></ct-failure-stream> | 48 <ct-failure-stream title="Snoozed failures" category="snoozed" groups="{{ fa
ilures && failures.failures[tree] }}" commitLog="{{ commitLog }}" tree="{{ tree
}}"></ct-failure-stream> |
| 54 </template> | 49 </template> |
| 55 <script> | 50 <script> |
| 56 (function() { | 51 (function() { |
| 57 Polymer({ | 52 Polymer({ |
| 58 tree: '', | 53 tree: '', |
| 59 | 54 |
| 60 created: function() { | 55 created: function() { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 72 update: function() { | 67 update: function() { |
| 73 // FIXME: These shouldn't update if there's already an update in progres
s. | 68 // FIXME: These shouldn't update if there's already an update in progres
s. |
| 74 Object.keys(this.treeStatuses, function(tree, status) { | 69 Object.keys(this.treeStatuses, function(tree, status) { |
| 75 status.update(); | 70 status.update(); |
| 76 }); | 71 }); |
| 77 }, | 72 }, |
| 78 }); | 73 }); |
| 79 })(); | 74 })(); |
| 80 </script> | 75 </script> |
| 81 </polymer-element> | 76 </polymer-element> |
| OLD | NEW |