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 <script> | 7 <script> |
8 function CTFailure(step, reason, resultsByBuilder, firstFailingRevisions, lastPa
ssingRevisions) { | 8 function CTFailure(step, reason, resultsByBuilder, firstFailingRevisions, lastPa
ssingRevisions) { |
9 this.step = step; | 9 this.step = step; |
10 // FIXME: Rename this to reason. | 10 // FIXME: Rename this to reason. |
(...skipping 25 matching lines...) Expand all Loading... |
36 treeToDashboardGroup[tree] + '&' + | 36 treeToDashboardGroup[tree] + '&' + |
37 Object.toQueryString({ | 37 Object.toQueryString({ |
38 tests: this.testName, | 38 tests: this.testName, |
39 testType: testType, | 39 testType: testType, |
40 }); | 40 }); |
41 } | 41 } |
42 | 42 |
43 CTFailure.prototype.embeddedFlakinessDashboardURL = function(tree) { | 43 CTFailure.prototype.embeddedFlakinessDashboardURL = function(tree) { |
44 return this.flakinessDashboardURL(tree) + '&showChrome=false'; | 44 return this.flakinessDashboardURL(tree) + '&showChrome=false'; |
45 } | 45 } |
| 46 |
| 47 CTFailure.prototype.reasonGroupName = function() { |
| 48 if (!this.testName) |
| 49 return undefined; |
| 50 if (this.step == 'webkit_tests') |
| 51 return this.testName.substr(0, this.testName.lastIndexOf('/')); |
| 52 return this.testName.substr(0, this.testName.lastIndexOf('.')); |
| 53 }; |
46 </script> | 54 </script> |
OLD | NEW |