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="ct-commit-list.html"> | 7 <link rel="import" href="ct-commit-list.html"> |
8 | 8 |
9 <script> | 9 <script> |
10 function CTSheriffFailureGroupData(failures, commitList) { | 10 function CTSheriffFailureGroupData(failures, commitList) { |
11 this.failures = failures; | 11 this.failures = failures; |
12 this.commitList = commitList; | 12 this.commitList = commitList; |
13 this.type = 'sheriff'; | 13 this.category = 'sheriff'; |
14 }; | 14 }; |
15 | 15 |
16 CTSheriffFailureGroupData.prototype.getAnnotations = function() { | 16 CTSheriffFailureGroupData.prototype.getAnnotations = function() { |
17 return this.failures.map(function(failure) { | 17 return this.failures.map(function(failure) { |
18 return failure.annotations(); | 18 return failure.annotations(); |
19 }).flatten(); | 19 }).flatten(); |
20 }; | 20 }; |
21 | 21 |
22 CTSheriffFailureGroupData.prototype.dataToExamine = function() { | 22 CTSheriffFailureGroupData.prototype.dataToExamine = function() { |
23 return this.failures; | 23 return this.failures; |
24 }; | 24 }; |
25 | 25 |
26 CTSheriffFailureGroupData.prototype.failureKeys = function() { | 26 CTSheriffFailureGroupData.prototype.failureKeys = function() { |
27 return this.failures.map(function(failure) { | 27 return this.failures.map(function(failure) { |
28 return failure.keys(); | 28 return failure.keys(); |
29 }).flatten(); | 29 }).flatten(); |
30 }; | 30 }; |
31 </script> | 31 </script> |
OLD | NEW |