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