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

Side by Side Diff: Tools/GardeningServer/scripts/ui/notifications.js

Issue 358173003: Remove rebaseline logic from GOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 this._effects.className = 'effects'; 146 this._effects.className = 'effects';
147 this._causes = this._what.appendChild(document.createElement('ul')); 147 this._causes = this._what.appendChild(document.createElement('ul'));
148 this._causes.className = 'causes'; 148 this._causes.className = 'causes';
149 }, 149 },
150 }); 150 });
151 151
152 ui.notifications.FailingTests = base.extends(ui.notifications.Failure, { 152 ui.notifications.FailingTests = base.extends(ui.notifications.Failure, {
153 init: function() { 153 init: function() {
154 // FIXME: Convert actions to a link from test! 154 // FIXME: Convert actions to a link from test!
155 this._problem.appendChild(new ui.actions.List([ 155 this._problem.appendChild(new ui.actions.List([
156 new ui.actions.Examine().makeDefault(), 156 new ui.actions.Examine().makeDefault()
157 new ui.actions.Rebaseline(),
158 ])); 157 ]));
159 this._testNameList = []; 158 this._testNameList = [];
160 }, 159 },
161 testNameList: function() 160 testNameList: function()
162 { 161 {
163 return this._testNameList; 162 return this._testNameList;
164 }, 163 },
165 containsFailureAnalysis: function(failureAnalysis) 164 containsFailureAnalysis: function(failureAnalysis)
166 { 165 {
167 return this._testNameList.indexOf(failureAnalysis.testName) != -1; 166 return this._testNameList.indexOf(failureAnalysis.testName) != -1;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 $(this._effects).empty().append(Object.keys(failuresList).map(function(b uilderName) { 226 $(this._effects).empty().append(Object.keys(failuresList).map(function(b uilderName) {
228 var effect = document.createElement('li'); 227 var effect = document.createElement('li');
229 effect.className = 'builder'; 228 effect.className = 'builder';
230 effect.appendChild(new ui.failures.Builder(builderName, failuresList [builderName])); 229 effect.appendChild(new ui.failures.Builder(builderName, failuresList [builderName]));
231 return effect; 230 return effect;
232 })); 231 }));
233 } 232 }
234 }); 233 });
235 234
236 })(); 235 })();
OLDNEW
« no previous file with comments | « Tools/GardeningServer/scripts/ui/actions_unittests.js ('k') | Tools/GardeningServer/scripts/ui/notifications_unittests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698