OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 188 |
189 model.unexpectedFailureInfoForTestName = function(testName) | 189 model.unexpectedFailureInfoForTestName = function(testName) |
190 { | 190 { |
191 var resultsByTest = results.unexpectedFailuresByTest(model.state.resultsByBu
ilder); | 191 var resultsByTest = results.unexpectedFailuresByTest(model.state.resultsByBu
ilder); |
192 | 192 |
193 return Object.keys(resultsByTest[testName]).map(function(builderName) { | 193 return Object.keys(resultsByTest[testName]).map(function(builderName) { |
194 return results.failureInfoForTestAndBuilder(resultsByTest, testName, bui
lderName); | 194 return results.failureInfoForTestAndBuilder(resultsByTest, testName, bui
lderName); |
195 }); | 195 }); |
196 }; | 196 }; |
197 | 197 |
198 // failureCallback is called multiple times: once for each failure | |
199 model.analyzeexpectedFailures = function(failureCallback) | |
200 { | |
201 var expectedFailures = results.expectedFailuresByTest(model.state.resultsByB
uilder); | |
202 $.each(expectedFailures, function(testName, resultNodesByBuilder) { | |
203 var failureAnalysis = { | |
204 'testName': testName, | |
205 'resultNodesByBuilder': resultNodesByBuilder, | |
206 }; | |
207 | |
208 // FIXME: Consider looking at the history to see how long this test | |
209 // has been failing. | |
210 | |
211 failureCallback(failureAnalysis); | |
212 }); | |
213 }; | |
214 | |
215 })(); | 198 })(); |
OLD | NEW |