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

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

Issue 183923025: Garden-o-matic: Introduce an option to open links in a new window (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 232
233 var testNames = Object.keys(resultsByTest); 233 var testNames = Object.keys(resultsByTest);
234 testNames.sort().forEach(function(testName) { 234 testNames.sort().forEach(function(testName) {
235 var nonLinkTitle = document.createElement('a'); 235 var nonLinkTitle = document.createElement('a');
236 nonLinkTitle.classList.add('non-link-title'); 236 nonLinkTitle.classList.add('non-link-title');
237 nonLinkTitle.textContent = testName; 237 nonLinkTitle.textContent = testName;
238 238
239 var linkTitle = document.createElement('a'); 239 var linkTitle = document.createElement('a');
240 linkTitle.classList.add('link-title'); 240 linkTitle.classList.add('link-title');
241 linkTitle.setAttribute('href', ui.urlForFlakinessDashboard([testName ])); 241 linkTitle.setAttribute('href', ui.urlForFlakinessDashboard([testName ]));
242 ui.setTargetForLink(linkTitle);
242 linkTitle.textContent = testName; 243 linkTitle.textContent = testName;
243 244
244 var header = document.createElement('h3'); 245 var header = document.createElement('h3');
245 header.appendChild(nonLinkTitle); 246 header.appendChild(nonLinkTitle);
246 header.appendChild(linkTitle); 247 header.appendChild(linkTitle);
247 header.addEventListener('click', this._showResults.bind(this, header , false)); 248 header.addEventListener('click', this._showResults.bind(this, header , false));
248 topPanel.appendChild(header); 249 topPanel.appendChild(header);
249 }, this); 250 }, this);
250 251
251 // If we have a small amount of content, don't show the resize handler. 252 // 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
455 { 456 {
456 this._testSelector.firstResult() 457 this._testSelector.firstResult()
457 }, 458 },
458 currentTestName: function() 459 currentTestName: function()
459 { 460 {
460 return this._testSelector.currentTestName() 461 return this._testSelector.currentTestName()
461 } 462 }
462 }); 463 });
463 464
464 })(); 465 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698