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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 { | 287 { |
288 failure.pinToCommitData(commitData); | 288 failure.pinToCommitData(commitData); |
289 $('.action', failure).each(function() { | 289 $('.action', failure).each(function() { |
290 // FIXME: This isn't the right way of finding and disabling this act
ion. | 290 // FIXME: This isn't the right way of finding and disabling this act
ion. |
291 if (this.textContent == 'Blame') | 291 if (this.textContent == 'Blame') |
292 this.disabled = true; | 292 this.disabled = true; |
293 }); | 293 }); |
294 }, | 294 }, |
295 onRollout: function(revision, testNameList) | 295 onRollout: function(revision, testNameList) |
296 { | 296 { |
297 checkout.rollout(revision, ui.rolloutReasonForTestNameList(testNameList)
, $.noop, function() { | 297 checkout.rollout(revision, ui.rolloutReasonForTestNameList(testNameList)
).then($.noop, function() { |
298 // FIXME: We should have a better error UI. | 298 // FIXME: We should have a better error UI. |
299 alert(kCheckoutUnavailableMessage); | 299 alert(kCheckoutUnavailableMessage); |
300 }); | 300 }); |
301 } | 301 } |
302 }); | 302 }); |
303 | 303 |
304 controllers.Failures = base.extends(FailureStreamController, { | 304 controllers.Failures = base.extends(FailureStreamController, { |
305 _resultsFilter: results.expectedFailuresByTest, | 305 _resultsFilter: results.expectedFailuresByTest, |
306 | 306 |
307 _keyFor: function(failureAnalysis) | 307 _keyFor: function(failureAnalysis) |
(...skipping 30 matching lines...) Expand all Loading... |
338 this._notification = new ui.notifications.BuildersFailing(this._mess
age); | 338 this._notification = new ui.notifications.BuildersFailing(this._mess
age); |
339 this._view.add(this._notification); | 339 this._view.add(this._notification); |
340 } | 340 } |
341 // FIXME: We should provide regression ranges for the failing builders. | 341 // FIXME: We should provide regression ranges for the failing builders. |
342 // This doesn't seem to happen often enough to worry too much about that
, however. | 342 // This doesn't seem to happen often enough to worry too much about that
, however. |
343 this._notification.setFailingBuilders(failuresList); | 343 this._notification.setFailingBuilders(failuresList); |
344 } | 344 } |
345 }); | 345 }); |
346 | 346 |
347 })(); | 347 })(); |
OLD | NEW |