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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 { | 126 { |
127 this._pendingReset = false; | 127 this._pendingReset = false; |
128 this._resultRows = {}; | 128 this._resultRows = {}; |
129 $(this._body).empty(); | 129 $(this._body).empty(); |
130 // Add the BUILDING row eagerly so that it appears last. | 130 // Add the BUILDING row eagerly so that it appears last. |
131 this._rowByResult(kBuildingResult); | 131 this._rowByResult(kBuildingResult); |
132 $(this._resultRows[kBuildingResult]).hide(); | 132 $(this._resultRows[kBuildingResult]).hide(); |
133 } | 133 } |
134 }); | 134 }); |
135 | 135 |
136 ui.failures.ListItem = base.extends('li', { | |
137 init: function(groupName, failingTestsList) | |
138 { | |
139 this._failingTestsList = failingTestsList; | |
140 this.appendChild(new ui.actions.List([ | |
141 new ui.actions.Examine().makeDefault(), | |
142 ])); | |
143 var label = this.appendChild(document.createElement('label')) | |
144 label.textContent = failingTestsList.length == 1 ? failingTestsList[0] :
groupName; | |
145 }, | |
146 }); | |
147 | |
148 ui.failures.List = base.extends('ul', { | |
149 init: function() | |
150 { | |
151 this.className = 'failures'; | |
152 this.textContent = 'Loading...'; | |
153 } | |
154 }); | |
155 | |
156 })(); | 136 })(); |
OLD | NEW |