Chromium Code Reviews| 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="../bower_components/paper-toast/paper-toast.html"> | 8 <link rel="import" href="../bower_components/paper-toast/paper-toast.html"> |
| 9 <link rel="import" href="../model/ct-commit-log.html"> | |
| 9 <link rel="import" href="ct-failing-builders.html"> | 10 <link rel="import" href="ct-failing-builders.html"> |
| 10 <link rel="import" href="ct-failure-analyzer.html"> | 11 <link rel="import" href="ct-failure-analyzer.html"> |
| 11 <link rel="import" href="ct-failure-grouper.html"> | 12 <link rel="import" href="ct-failure-grouper.html"> |
| 12 <link rel="import" href="ct-failure-stream.html"> | 13 <link rel="import" href="ct-failure-stream.html"> |
| 13 <link rel="import" href="ct-tree-status.html"> | 14 <link rel="import" href="ct-tree-status.html"> |
| 14 | 15 |
| 15 <polymer-element name="ct-unexpected-failures"> | 16 <polymer-element name="ct-unexpected-failures"> |
| 16 <template> | 17 <template> |
| 17 <style> | 18 <style> |
| 18 paper-toast { | 19 paper-toast { |
| 19 bottom: 40px; | 20 bottom: 40px; |
| 20 left: 10px; | 21 left: 10px; |
| 21 } | 22 } |
| 22 | 23 |
| 23 ct-tree-status, ct-failing-builders { | 24 ct-tree-status, ct-failing-builders { |
| 24 margin: 5px; | 25 margin: 5px; |
| 25 } | 26 } |
| 26 </style> | 27 </style> |
| 27 <ct-failure-analyzer id="analyzer" status="{{ analyzerStatus }}" failures="{ { failures }}"></ct-failure-analyzer> | 28 <ct-failure-analyzer id="analyzer" status="{{ analyzerStatus }}" failures="{ { failures }}" builderLatestRevisions="{{ builderLatestRevisions }}"></ct-failur e-analyzer> |
| 28 <ct-failure-grouper failures="{{ failures.unexpected }}" groups="{{ failureG roups }}"></ct-failure-grouper> | 29 <ct-failure-grouper failures="{{ failures.unexpected }}" groups="{{ failureG roups }}"></ct-failure-grouper> |
| 29 <ct-tree-status project="chromium"></ct-tree-status> | 30 <ct-tree-status project="chromium"></ct-tree-status> |
| 30 <ct-tree-status project="blink"></ct-tree-status> | 31 <ct-tree-status project="blink"></ct-tree-status> |
| 31 <ct-failing-builders builders="{{ failures.builders }}"></ct-failing-builder s> | 32 <ct-failing-builders builders="{{ failures.builders }}"></ct-failing-builder s> |
| 32 <ct-failure-stream groups="{{ failureGroups }}"></ct-failure-stream> | 33 <ct-failure-stream groups="{{ failureGroups }}" builderLatestRevisions="{{ b uilderLatestRevisions }}" commits="{{revisionLog.commits}}"></ct-failure-stream> |
|
michaelpg
2014/07/21 07:28:48
{{ revisionLog.commits }}
ojan
2014/07/21 19:58:04
Done.
| |
| 33 <paper-toast id="toast" text="{{ analyzerStatus }}"></paper-toast> | 34 <paper-toast id="toast" text="{{ analyzerStatus }}"></paper-toast> |
| 34 </template> | 35 </template> |
| 35 <script> | 36 <script> |
| 36 Polymer({ | 37 Polymer({ |
| 38 revisionLog: new CTCommitLog(), | |
| 39 | |
| 37 attached: function() { | 40 attached: function() { |
| 38 this.update(); | 41 this.update(); |
| 39 setInterval(this.update.bind(this), config.kTreeStatusUpdateFrequency); | 42 setInterval(this.update.bind(this), config.kTreeStatusUpdateFrequency); |
| 40 }, | 43 }, |
| 41 | 44 |
| 42 update: function() { | 45 update: function() { |
| 46 // FIXME: These shouldn't update if there's already an update in progres s. | |
| 47 this.revisionLog.update(); | |
| 43 this.$.analyzer.update(); | 48 this.$.analyzer.update(); |
| 44 var treeStatuses = this.shadowRoot.querySelectorAll("ct-tree-status"); | 49 var treeStatuses = this.shadowRoot.querySelectorAll("ct-tree-status"); |
| 45 for (var i = 0; i < treeStatuses.length; i++) | 50 for (var i = 0; i < treeStatuses.length; i++) |
| 46 treeStatuses[i].update(); | 51 treeStatuses[i].update(); |
| 47 }, | 52 }, |
| 48 | 53 |
| 49 analyzerStatusChanged: function() { | 54 analyzerStatusChanged: function() { |
| 50 this.$.toast.show(); | 55 this.$.toast.show(); |
| 51 }, | 56 }, |
| 52 }); | 57 }); |
| 53 </script> | 58 </script> |
| 54 </polymer-element> | 59 </polymer-element> |
| OLD | NEW |