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 <polymer-element name="ct-test-list" attributes="tests"> | 7 <polymer-element name="ct-test-list" attributes="tests tree"> |
8 <template> | 8 <template> |
9 <style> | 9 <style> |
10 :host { | 10 :host { |
11 display: block; | 11 display: block; |
12 } | 12 } |
13 </style> | 13 </style> |
14 <template repeat="{{ test in tests }}"> | 14 <template repeat="{{ test in tests }}"> |
15 <!-- FIXME: Find a less redundant UI than repeating the step on each line.
--> | 15 <!-- FIXME: Find a less redundant UI than repeating the step on each line.
--> |
16 <div>{{ test.step }} <a href="{{ test | flakinessDashboardURL }}">{{ test.
testName }}</a></div> | 16 <div>{{ test.step }} <a href="{{ test | flakinessDashboardURL }}">{{ test.
testName }}</a></div> |
17 </template> | 17 </template> |
18 </template> | 18 </template> |
19 <script> | 19 <script> |
20 Polymer({ | 20 Polymer({ |
21 flakinessDashboardURL: function(test) { | 21 flakinessDashboardURL: function(test) { |
22 return ui.urlForFlakinessDashboard(test.testName, test.step); | 22 return ui.urlForFlakinessDashboard(test.testName, test.step, this.tree); |
23 }, | 23 }, |
24 }); | 24 }); |
25 </script> | 25 </script> |
26 </polymer-element> | 26 </polymer-element> |
OLD | NEW |