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

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

Issue 135303006: Garden-o-matic: Stop the tab explosion! (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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/ui/notifications_unittests.js ('k') | no next file » | 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 this.appendChild(this._flakinessData); 233 this.appendChild(this._flakinessData);
234 234
235 var testNames = Object.keys(resultsByTest); 235 var testNames = Object.keys(resultsByTest);
236 testNames.sort().forEach(function(testName) { 236 testNames.sort().forEach(function(testName) {
237 var nonLinkTitle = document.createElement('a'); 237 var nonLinkTitle = document.createElement('a');
238 nonLinkTitle.classList.add('non-link-title'); 238 nonLinkTitle.classList.add('non-link-title');
239 nonLinkTitle.textContent = testName; 239 nonLinkTitle.textContent = testName;
240 240
241 var linkTitle = document.createElement('a'); 241 var linkTitle = document.createElement('a');
242 linkTitle.classList.add('link-title'); 242 linkTitle.classList.add('link-title');
243 linkTitle.setAttribute('href', ui.urlForFlakinessDashboard([testName ])) 243 linkTitle.setAttribute('href', ui.urlForFlakinessDashboard([testName ]));
244 linkTitle.target = '_blank';
245 linkTitle.textContent = testName; 244 linkTitle.textContent = testName;
246 245
247 var header = document.createElement('h3'); 246 var header = document.createElement('h3');
248 header.appendChild(nonLinkTitle); 247 header.appendChild(nonLinkTitle);
249 header.appendChild(linkTitle); 248 header.appendChild(linkTitle);
250 header.addEventListener('click', this._showResults.bind(this, header , false)); 249 header.addEventListener('click', this._showResults.bind(this, header , false));
251 topPanel.appendChild(header); 250 topPanel.appendChild(header);
252 }, this); 251 }, this);
253 252
254 // If we have a small amount of content, don't show the resize handler. 253 // If we have a small amount of content, don't show the resize handler.
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 { 457 {
459 this._testSelector.firstResult() 458 this._testSelector.firstResult()
460 }, 459 },
461 currentTestName: function() 460 currentTestName: function()
462 { 461 {
463 return this._testSelector.currentTestName() 462 return this._testSelector.currentTestName()
464 } 463 }
465 }); 464 });
466 465
467 })(); 466 })();
OLDNEW
« no previous file with comments | « Tools/GardeningServer/scripts/ui/notifications_unittests.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698