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 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js">< /script> | 7 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js">< /script> |
8 <script src="../scripts/base.js"></script> | 8 <script src="../scripts/base.js"></script> |
9 <script src="../scripts/config.js"></script> | 9 <script src="../scripts/config.js"></script> |
10 <script src="../scripts/net.js"></script> | 10 <script src="../scripts/net.js"></script> |
11 <script src="../scripts/rollbot.js"></script> | 11 <script src="../scripts/rollbot.js"></script> |
12 <script src="../scripts/svn-log.js"></script> | 12 <script src="../scripts/svn-log.js"></script> |
13 <script src="../scripts/treestatus.js"></script> | 13 <script src="../scripts/treestatus.js"></script> |
14 <script src="../scripts/builders.js"></script> | 14 <script src="../scripts/builders.js"></script> |
15 <script src="../scripts/results.js"></script> | 15 <script src="../scripts/results.js"></script> |
16 <script src="../scripts/ui.js"></script> | 16 <script src="../scripts/ui.js"></script> |
17 <script src="../scripts/model.js"></script> | 17 <script src="../scripts/model.js"></script> |
18 | 18 |
19 <link rel="import" href="../bower_components/core-pages/core-pages.html"> | 19 <link rel="import" href="../bower_components/core-pages/core-pages.html"> |
20 <link rel="import" href="../bower_components/paper-tabs/paper-tab.html"> | |
20 <link rel="import" href="../bower_components/paper-tabs/paper-tabs.html"> | 21 <link rel="import" href="../bower_components/paper-tabs/paper-tabs.html"> |
21 <link rel="import" href="../bower_components/paper-tabs/paper-tab.html"> | |
22 <link rel="import" href="ct-unexpected-failures.html"> | 22 <link rel="import" href="ct-unexpected-failures.html"> |
23 <link rel="import" href="ct-results-panel.html"> | |
23 | 24 |
24 <polymer-element name="ct-sheriff-o-matic"> | 25 <polymer-element name="ct-sheriff-o-matic"> |
25 <template> | 26 <template> |
26 <style> | 27 <style> |
27 paper-tabs { | 28 paper-tabs { |
28 background-color: #00bcd4; | 29 background-color: #00bcd4; |
29 color: #fff; | 30 color: #fff; |
30 box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.2); | 31 box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.2); |
31 } | 32 } |
32 </style> | 33 </style> |
33 <paper-tabs selected="{{selected}}"> | 34 <paper-tabs selected="{{selected}}"> |
34 <paper-tab>Unexpected Failures</paper-tab> | 35 <paper-tab>Unexpected Failures</paper-tab> |
35 <paper-tab>Results</paper-tab> | 36 <paper-tab>Results</paper-tab> |
36 </paper-tabs> | 37 </paper-tabs> |
37 <core-pages selected="{{selected}}"> | 38 <core-pages selected="{{selected}}"> |
38 <ct-unexpected-failures></ct-unexpected-failures> | 39 <ct-unexpected-failures on-ct-examine-failures="{{onExamine}}"></ct-unexpe cted-failures> |
40 <ct-results-panel failures="{{currentFailures}}"></ct-results-panel> | |
39 </core-pages> | 41 </core-pages> |
40 </template> | 42 </template> |
41 <script> | 43 <script> |
42 Polymer({ | 44 Polymer({ |
43 selected: 0, | 45 selected: 0, |
46 currentFailures: [], | |
47 | |
48 onExamine: function(event) { | |
49 this.currentFailures = event.detail; | |
esprehn
2014/07/01 19:47:45
It's nicer to pass an object as the detail so you
| |
50 this.selected = 1; | |
51 }, | |
44 }); | 52 }); |
45 </script> | 53 </script> |
46 </polymer-element> | 54 </polymer-element> |
OLD | NEW |