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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 })(); |
OLD | NEW |