Changeset 16684
- Timestamp:
- 02/15/09 01:38:56 (12 months ago)
- Files:
-
- 1 modified
-
util/trunk/doh/_browserRunner.js (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
util/trunk/doh/_browserRunner.js
r15376 r16684 246 246 this._suiteCount = this._testCount; 247 247 } 248 this._runedSuite++;249 248 // console.debug("_groupStarted", group); 250 249 if(doh._inGroup != group){ … … 252 251 doh._runed = 0; 253 252 doh._inGroup = group; 253 this._runedSuite++; 254 254 } 255 255 var gn = getGroupNode(group); … … 263 263 var gn = getGroupNode(group); 264 264 if(gn && doh._inGroup == group){ 265 gn.className = (success) ? "success" : "failure";266 265 gn.getElementsByTagName("td")[3].innerHTML = doh._totalTime+"ms"; 267 266 gn.getElementsByTagName("td")[2].lastChild.className = ""; 268 267 doh._inGroup = null; 269 268 //doh._runedSuite++; 270 doh._updateGlobalProgressBar(this._runedSuite/this._suiteCount,success); 269 var failure = doh._updateGlobalProgressBar(this._runedSuite/this._groupCount,success,group); 270 gn.className = failure ? "failure" : "success"; 271 271 //doh._runedSuite--; 272 doh._currentGlobalProgressBarWidth = parseInt(this._runedSuite/this._ suiteCount*10000)/100;272 doh._currentGlobalProgressBarWidth = parseInt(this._runedSuite/this._groupCount*10000)/100; 273 273 //byId("progressOuter").style.width = parseInt(this._runedSuite/this._suiteCount*100)+"%"; 274 274 } … … 301 301 } 302 302 303 doh._updateGlobalProgressBar = function(p,success ){303 doh._updateGlobalProgressBar = function(p,success,group){ 304 304 var outerContainer=byId("progressOuter"); 305 305 … … 310 310 gdiv.className='success'; 311 311 } 312 if(!success ){312 if(!success && !gdiv._failure){ 313 313 gdiv._failure=true; 314 314 gdiv.className='failure'; 315 if(group){ 316 gdiv.setAttribute('title','failed group '+group); 317 } 315 318 } 316 319 var tp=parseInt(p*10000)/100; … … 339 342 if(gn && doh._curTestCount){ 340 343 var p = doh._runed/doh._curTestCount; 341 var groupfail = this._updateGlobalProgressBar((doh._runedSuite+p-1)/doh._ suiteCount,success);344 var groupfail = this._updateGlobalProgressBar((doh._runedSuite+p-1)/doh._groupCount,success,group); 342 345 343 346 var pbar = gn.getElementsByTagName("td")[2].lastChild; … … 516 519 _doh._testCount += doh._testCount; 517 520 // should we be really adding raw group counts? 518 _doh._groupCount += doh._groupCount;521 //_doh._groupCount += doh._groupCount; 519 522 _doh.currentTestDeferred.callback(true); 520 523 }