Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: Tools/GardeningServer/scripts/model.js

Issue 360553005: Remove the Expected Failures tab (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix teh testsw Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Tools/GardeningServer/scripts/garden-o-matic.js ('k') | Tools/GardeningServer/scripts/ui.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 })();
OLDNEW
« no previous file with comments | « Tools/GardeningServer/scripts/garden-o-matic.js ('k') | Tools/GardeningServer/scripts/ui.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698