Changeset 1651
- Timestamp:
- 11/16/07 17:06:30 (6 years ago)
- Location:
- lang/javascript/javascript-xpath/trunk/test/functional
- Files:
-
- 3 modified
-
analyze-test.html (modified) (3 diffs)
-
analyzer.css (modified) (2 diffs)
-
logger.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/javascript-xpath/trunk/test/functional/analyze-test.html
r1615 r1651 134 134 var testLog = document.getElementById('testLog'); 135 135 136 var gStartTime; 137 var gContinueStatus; 136 138 137 139 { … … 568 570 ]); 569 571 570 logger.logFullSpan(analyzer.dump()); 572 var closure = (function(actx){ 573 return function(){return analyzer.dump(actx);} 574 })(analyzer.ctx); 575 576 logger.lazyLogFullSpan("show log...", closure); 577 // logger.logFullSpan(analyzer.dump(analyzer.ctx), closure); 571 578 572 579 logger.localCounter.inc(ok); … … 594 601 } 595 602 603 gStartTime = new Date; 596 604 setTimeout(f, 10); 597 605 -
lang/javascript/javascript-xpath/trunk/test/functional/analyzer.css
r1636 r1651 103 103 td.fullspan { 104 104 padding-top: 0; 105 background: #ddd; 105 106 } 106 107 … … 129 130 color: #676; 130 131 } 132 133 .lazy-log-open { 134 cursor: pointer; 135 color: #00f; 136 text-decoration: underline; 137 font-size: 140%; 138 } -
lang/javascript/javascript-xpath/trunk/test/functional/logger.js
r1603 r1651 143 143 tr.appendChild(td); 144 144 td.setAttribute("colSpan", this.countCols); 145 td.className = "fullspan"; 145 td.className = "fullspan"; 146 }, 147 148 lazyLogFullSpan: function(labelText, closure) { 149 var td, tr = document.createElement('tr'); 150 this.tbody.appendChild(tr); 151 td = document.createElement('td'); 152 var label = document.createElement('span'); 153 label.innerHTML = labelText; 154 label.className = "lazy-log-open"; 155 label.onclick = function(){ 156 td.innerHTML = ""; 157 td.appendChild( closure() ); 158 }; 159 160 td.appendChild(label); 161 tr.appendChild(td); 162 td.setAttribute("colSpan", this.countCols); 163 td.className = "fullspan"; 146 164 } 165 147 166 }; 148 167
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)