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="ct-failing-builders.html"> | 9 <link rel="import" href="ct-failing-builders.html"> |
10 <link rel="import" href="ct-failure-analyzer.html"> | 10 <link rel="import" href="ct-failure-analyzer.html"> |
(...skipping 18 matching lines...) Expand all Loading... |
29 <ct-tree-status project="chromium"></ct-tree-status> | 29 <ct-tree-status project="chromium"></ct-tree-status> |
30 <ct-tree-status project="blink"></ct-tree-status> | 30 <ct-tree-status project="blink"></ct-tree-status> |
31 <ct-failing-builders builders="{{ failures.builders }}"></ct-failing-builder
s> | 31 <ct-failing-builders builders="{{ failures.builders }}"></ct-failing-builder
s> |
32 <ct-failure-stream groups="{{ failureGroups }}"></ct-failure-stream> | 32 <ct-failure-stream groups="{{ failureGroups }}"></ct-failure-stream> |
33 <paper-toast id="toast" text="{{ analyzerStatus }}"></paper-toast> | 33 <paper-toast id="toast" text="{{ analyzerStatus }}"></paper-toast> |
34 </template> | 34 </template> |
35 <script> | 35 <script> |
36 Polymer({ | 36 Polymer({ |
37 attached: function() { | 37 attached: function() { |
38 this.update(); | 38 this.update(); |
39 setInterval(this.update.bind(this), config.kTreeStatusUpdateFrequency); | 39 setInterval(this.update.bind(this), config.kUpdateFrequency); |
40 }, | 40 }, |
41 | 41 |
42 update: function() { | 42 update: function() { |
43 this.$.analyzer.update(); | 43 this.$.analyzer.update(); |
44 var treeStatuses = this.shadowRoot.querySelectorAll("ct-tree-status"); | 44 var treeStatuses = this.shadowRoot.querySelectorAll("ct-tree-status"); |
45 for (var i = 0; i < treeStatuses.length; i++) | 45 for (var i = 0; i < treeStatuses.length; i++) |
46 treeStatuses[i].update(); | 46 treeStatuses[i].update(); |
47 }, | 47 }, |
48 | 48 |
49 analyzerStatusChanged: function() { | 49 analyzerStatusChanged: function() { |
50 this.$.toast.show(); | 50 this.$.toast.show(); |
51 }, | 51 }, |
52 }); | 52 }); |
53 </script> | 53 </script> |
54 </polymer-element> | 54 </polymer-element> |
OLD | NEW |