Index: Tools/GardeningServer/model/ct-failure-group.html |
diff --git a/Tools/GardeningServer/model/ct-failure-group.html b/Tools/GardeningServer/model/ct-failure-group.html |
index 1b8565ef14d3e24aeb82aba86ca37a627b09eade..7b319b4653bee64f8bdc35a14600773b8ff953a8 100644 |
--- a/Tools/GardeningServer/model/ct-failure-group.html |
+++ b/Tools/GardeningServer/model/ct-failure-group.html |
@@ -7,10 +7,11 @@ found in the LICENSE file. |
<link rel="import" href="ct-commit-list.html"> |
<script> |
-function CTFailureGroup(key, data) { |
+function CTFailureGroup(key, data, category) { |
this.key = key; |
this.data = data; |
this._annotation = CTFailureGroup._mergeAnnotations(data.getAnnotations()); |
+ this._originalCategory = category || 'default'; |
this._computeProperties(); |
} |
@@ -65,7 +66,7 @@ CTFailureGroup.prototype._computeProperties = function() { |
if (this._failedOnce()) { |
this.category = 'failedOnce'; |
} else { |
- this.category = 'default'; |
+ this.category = this._originalCategory; |
} |
// FIXME: crbug.com/400397 Split into: Whole step failure, Tree closer, Test failure, Flaky tests |
} |