| 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-icon-button/paper-icon-button
.html"> | 7 <link rel="import" href="../bower_components/paper-icon-button/paper-icon-button
.html"> |
| 8 | 8 |
| 9 <polymer-element name="ct-test-list" attributes="tests tree"> | 9 <polymer-element name="ct-test-list" attributes="tests tree"> |
| 10 <template> | 10 <template> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 <div> | 40 <div> |
| 41 {{ groups.step }} | 41 {{ groups.step }} |
| 42 <a href="{{ test | flakinessDashboardURL }}">{{ test.testName }}</
a> | 42 <a href="{{ test | flakinessDashboardURL }}">{{ test.testName }}</
a> |
| 43 </div> | 43 </div> |
| 44 </template> | 44 </template> |
| 45 </template> | 45 </template> |
| 46 <!-- Case 3: group of tests failed --> | 46 <!-- Case 3: group of tests failed --> |
| 47 <template if="{{ group.name && group.tests.length > 1 && !group.expanded
}}"> | 47 <template if="{{ group.name && group.tests.length > 1 && !group.expanded
}}"> |
| 48 <div> | 48 <div> |
| 49 {{ groups.step }} {{ group.name }} ({{ group.tests.length }} Tests) | 49 {{ groups.step }} {{ group.name }} ({{ group.tests.length }} Tests) |
| 50 <paper-icon-button id="expand" icon="more-vert" step="{{ groups.step
}}" group="{{ group.name }}" on-click="{{ _expand }}"></paper-icon-button> | 50 <paper-icon-button id="expand" icon="unfold-more" step="{{ groups.st
ep }}" group="{{ group.name }}" on-click="{{ _expand }}"></paper-icon-button> |
| 51 </div> | 51 </div> |
| 52 </template> | 52 </template> |
| 53 </template> | 53 </template> |
| 54 </template> | 54 </template> |
| 55 </template> | 55 </template> |
| 56 <script> | 56 <script> |
| 57 Polymer('ct-test-list', { | 57 Polymer('ct-test-list', { |
| 58 testsChanged: function() { | 58 testsChanged: function() { |
| 59 var groups = {}; | 59 var groups = {}; |
| 60 if (this.tests) { | 60 if (this.tests) { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 } | 94 } |
| 95 }); | 95 }); |
| 96 }, | 96 }, |
| 97 | 97 |
| 98 flakinessDashboardURL: function(test) { | 98 flakinessDashboardURL: function(test) { |
| 99 return test.flakinessDashboardURL(this.tree); | 99 return test.flakinessDashboardURL(this.tree); |
| 100 }, | 100 }, |
| 101 }); | 101 }); |
| 102 </script> | 102 </script> |
| 103 </polymer-element> | 103 </polymer-element> |
| OLD | NEW |