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

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

Powered by Google App Engine
This is Rietveld 408576698