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-builder-list.html"> |
| 8 |
7 <script> | 9 <script> |
8 function CTBuilderFailureGroupData(failure, bot, url) { | 10 function CTBuilderFailureGroupData(failure, bot, url) { |
9 this.bot = bot; | 11 this.bot = bot; |
10 this.failure = failure; | 12 this.failure = failure; |
| 13 this.url = url; |
| 14 this.builderList = new CTBuilderList(failure); |
11 this.category = 'builder'; | 15 this.category = 'builder'; |
12 this.url = url; | |
13 }; | 16 }; |
14 | 17 |
15 CTBuilderFailureGroupData.prototype.getAnnotations = function() { | 18 CTBuilderFailureGroupData.prototype.getAnnotations = function() { |
16 return [this.failure.annotations()]; | 19 return [this.failure.annotations()]; |
17 }; | 20 }; |
18 | 21 |
19 // FIXME: This function should be replaced and callers should just pass the orig
inal object. | 22 // FIXME: This function should be replaced and callers should just pass the orig
inal object. |
20 CTBuilderFailureGroupData.prototype.dataToExamine = function() { | 23 CTBuilderFailureGroupData.prototype.dataToExamine = function() { |
21 return {url: this.url}; | 24 return {url: this.url}; |
22 }; | 25 }; |
23 | 26 |
24 CTBuilderFailureGroupData.prototype.failureKeys = function() { | 27 CTBuilderFailureGroupData.prototype.failureKeys = function() { |
25 return [this.failure.keys()]; | 28 return [this.failure.keys()]; |
26 }; | 29 }; |
27 </script> | 30 </script> |
OLD | NEW |