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