Changeset 90594 in webkit
- Timestamp:
- Jul 7, 2011 3:20:21 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/ViewController.js
r90153 r90594 37 37 ViewController.prototype = { 38 38 loaded: function() { 39 this._header = document.createElement('h1'); 40 document.body.appendChild(this._header); 39 41 this._mainContentElement = document.createElement('div'); 40 42 document.body.appendChild(this._mainContentElement); … … 55 57 56 58 _displayBuilder: function(builder) { 59 this._setTitle(builder.name); 60 this._mainContentElement.removeAllChildren(); 61 57 62 var navigationID = this._navigationID; 63 58 64 var self = this; 59 65 (new LayoutTestHistoryAnalyzer(builder)).start(function(data, stillFetchingData) { … … 100 106 }); 101 107 102 var header = document.createElement('h1'); 103 header.appendChild(document.createTextNode(builder.name)); 104 self._mainContentElement.innerHTML = ''; 105 document.title = builder.name; 106 self._mainContentElement.appendChild(header); 108 self._mainContentElement.removeAllChildren(); 107 109 self._mainContentElement.appendChild(list); 108 110 self._mainContentElement.appendChild(self._domForPossiblyFlakyTests(builder, data.possiblyFlaky)); … … 116 118 117 119 _displayTesters: function() { 120 this._setTitle('Testers'); 121 this._mainContentElement.removeAllChildren(); 122 123 var list = document.createElement('ul'); 124 this._mainContentElement.appendChild(list); 125 126 var latestBuildInfos = []; 118 127 var navigationID = this._navigationID; 119 120 var list = document.createElement('ul');121 var latestBuildInfos = [];122 128 123 129 function updateList() { 124 130 latestBuildInfos.sort(function(a, b) { return a.tester.name.localeCompare(b.tester.name) }); 125 while (list.firstChild) 126 list.removeChild(list.firstChild); 131 list.removeAllChildren(); 127 132 latestBuildInfos.forEach(function(buildInfo) { 128 133 var link = document.createElement('a'); … … 162 167 }); 163 168 }); 164 165 self._mainContentElement.innerHTML = '';166 document.title = 'Testers';167 self._mainContentElement.appendChild(list);168 169 }); 169 170 }, … … 521 522 return result; 522 523 }, 524 525 _setTitle: function(title) { 526 document.title = title; 527 this._header.textContent = title; 528 }, 523 529 }; -
trunk/Tools/ChangeLog
r90584 r90594 1 2011-07-07 Adam Roben <aroben@apple.com> 2 3 Update TestFailures's title and header immediately upon navigation 4 5 Fixes <http://webkit.org/b/64125> TestFailures page seems slow to react on link clicks 6 7 Reviewed by Daniel Bates. 8 9 * BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/ViewController.js: 10 (ViewController.prototype.loaded): Create and store an h1 element for displaying the page's 11 title. 12 (ViewController.prototype._displayBuilder): Set the page's title and clear out any old 13 content immediately instead of waiting for the first set of results for the history 14 analyzer. As we receive new results from the analyzer we'll just clear out the main content 15 area and replace it with the new info. 16 (ViewController.prototype._displayTesters): Set the page's title and clear out any old 17 content immediately instead of waiting for the list of testers from the buildbot. Sprinkled 18 in a little use of our removeAllChildren helper, too. 19 (ViewController.prototype._setTitle): Added. Set's the page's title and the header text. 20 1 21 2011-07-07 Adam Roben <aroben@apple.com> 2 22
Note: See TracChangeset
for help on using the changeset viewer.