Changeset 7635
- Timestamp:
- 03/17/07 23:13:39 (22 months ago)
- Location:
- dojo/trunk/tests
- Files:
-
- 3 modified
-
runner.html (modified) (1 diff)
-
runner.js (modified) (2 diffs)
-
_browserRunner.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dojo/trunk/tests/runner.html
r7624 r7635 218 218 <td> 219 219 <div style="position: relative; width: 99%; height: 100%; top: 0px; left: 0px;"> 220 <div id="logBody" class="tabBody" 221 style="z-index: 1;">thinger blah blah 220 <div class="tabBody" 221 style="z-index: 1;"> 222 <pre id="logBody"></pre> 222 223 </div> 223 224 <iframe id="testBody" class="tabBody" -
dojo/trunk/tests/runner.js
r7631 r7635 497 497 tests._setupGroupForRun = function(/*String*/ groupName, /*Integer*/ idx){ 498 498 var tg = this._groups[groupName]; 499 this.debug(this._line, "\nGROUP", "\""+groupName+"\"", "has", tg.length, "test"+((tg.length > 1) ? "s" : "")+" to run"); 499 this.debug(this._line); 500 this.debug("GROUP", "\""+groupName+"\"", "has", tg.length, "test"+((tg.length > 1) ? "s" : "")+" to run"); 500 501 } 501 502 … … 517 518 var ss = fixture.runTest.toSource(); 518 519 this.debug("\tERROR IN:\n\t\t", ss); 520 }else{ 521 this.debug("\tERROR IN:\n\t\t", fixture.runTest); 519 522 } 520 523 } -
dojo/trunk/tests/_browserRunner.js
r7634 r7635 43 43 // Over-ride or implement base runner.js-provided methods 44 44 // 45 var _logBacklog = []; 46 var sendToLogPane = function(args, skip){ 47 var msg = ""; 48 for(var x=0; x<args.length; x++){ 49 msg += " "+args[x]; 50 } 51 // workarounds for IE. Wheeee!!! 52 msg = msg.replace("\t", " "); 53 msg = msg.replace(" ", " "); 54 msg = msg.replace("\n", "<br> "); 55 if(!byId("logBody")){ 56 _logBacklog.push(msg); 57 return; 58 }else if((_logBacklog.length)&&(!skip)){ 59 var tm; 60 while(tm=_logBacklog.shift()){ 61 sendToLogPane(tm, true); 62 } 63 } 64 var tn = document.createElement("div"); 65 tn.innerHTML = msg; 66 byId("logBody").appendChild(tn); 67 } 68 45 69 if(window["console"]){ 46 70 if(console.info){ 47 tests.debug = console.debug; 71 tests.debug = function(){ 72 sendToLogPane.call(window, arguments); 73 console.debug.apply(console, arguments); 74 } 48 75 }else{ 49 76 tests.debug = function(){ 77 sendToLogPane.apply(window, arguments); 50 78 var msg = ""; 51 79 for(var x=0; x<arguments.length; x++){ … … 54 82 console.log("DEBUG:"+msg); 55 83 } 84 } 85 }else{ 86 tests.debug = function(){ 87 sendToLogPane.call(window, arguments); 56 88 } 57 89 } … … 160 192 // Utility code for runner.html 161 193 // 194 // var isSafari = navigator.appVersion.indexOf("Safari") >= 0; 162 195 var tabzidx = 1; 196 var _showTab = function(toShow, toHide){ 197 // FIXME: I don't like hiding things this way. 198 byId(toHide).style.display = "none"; 199 with(byId(toShow).style){ 200 display = ""; 201 zIndex = ++tabzidx; 202 } 203 } 204 163 205 showTestPage = function(){ 164 byId("testBody").style.zIndex = ++tabzidx;206 _showTab("testBody", "logBody"); 165 207 } 166 208 167 209 showLogPage = function(){ 168 byId("logBody").style.zIndex = ++tabzidx;210 _showTab("logBody", "testBody"); 169 211 } 170 212