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

Side by Side Diff: Tools/GardeningServer/scripts/ui/failures.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
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 27 matching lines...) Expand all
38 if (configuration) { 38 if (configuration) {
39 if (configuration.version) 39 if (configuration.version)
40 this._addSpan('version', configuration.version); 40 this._addSpan('version', configuration.version);
41 if (configuration.is64bit) 41 if (configuration.is64bit)
42 this._addSpan('architecture', '64-bit'); 42 this._addSpan('architecture', '64-bit');
43 this._configuration = configuration; 43 this._configuration = configuration;
44 } else 44 } else
45 this._addSpan('version', builderName); 45 this._addSpan('version', builderName);
46 46
47 this.className = 'failing-builder'; 47 this.className = 'failing-builder';
48 this.target = '_blank';
49 this.href = ui.displayURLForBuilder(builderName); 48 this.href = ui.displayURLForBuilder(builderName);
50 if (failures) 49 if (failures)
51 this._addSpan('failures', ' ' + failures.join(', ')); 50 this._addSpan('failures', ' ' + failures.join(', '));
52 }, 51 },
53 _addSpan: function(className, text) 52 _addSpan: function(className, text)
54 { 53 {
55 var span = this.appendChild(document.createElement('span')); 54 var span = this.appendChild(document.createElement('span'));
56 span.className = className; 55 span.className = className;
57 span.textContent = text; 56 span.textContent = text;
58 }, 57 },
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 147
149 ui.failures.List = base.extends('ul', { 148 ui.failures.List = base.extends('ul', {
150 init: function() 149 init: function()
151 { 150 {
152 this.className = 'failures'; 151 this.className = 'failures';
153 this.textContent = 'Loading...'; 152 this.textContent = 'Loading...';
154 } 153 }
155 }); 154 });
156 155
157 })(); 156 })();
OLDNEW
« no previous file with comments | « Tools/GardeningServer/scripts/controllers_unittests.js ('k') | Tools/GardeningServer/scripts/ui/failures_unittests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698