Changeset 7999

Show
Ignore:
Timestamp:
04/08/07 04:00:24 (21 months ago)
Author:
alex
Message:

ensure that paused groups resume correctly. Refs #2550

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dojo/trunk/tests/runner.js

    r7935 r7999  
    664664        // summary: 
    665665        //              runs the specified test group 
    666  
    667666        var tg = this._groups[groupName]; 
    668667        if(tg.skip === true){ return; } 
    669668        if(this._isArray(tg)){ 
    670669                if(idx<=tg.length){ 
    671                         if(!tg.inFlight){ 
     670                        if((!tg.inFlight)&&(tg.iterated == true)){ 
    672671                                tests._groupFinished(groupName, (!tg.failures)); 
    673                         } 
    674                         return; 
     672                                return; 
     673                        } 
    675674                } 
    676675                tg.inFlight = 0; 
     
    682681                        if(this._paused){ 
    683682                                this._currentTest = y; 
    684                                 this.debug("PAUSED at", this._currentGroup, this._currentTest); 
     683                                this.debug("PAUSED at:", tg[y].name, this._currentGroup, this._currentTest); 
    685684                                return; 
    686685                        } 
     
    688687                        if(this._paused){ 
    689688                                this._currentTest = y+1; 
     689                                // this._currentTest = y; 
    690690                                if(this._currentTest == tg.length){ 
    691691                                        tg.iterated = true; 
    692692                                } 
    693                                 this.debug("PAUSED at", this._currentGroup, this._currentTest); 
     693                                this.debug("PAUSED at:", tg[y].name, this._currentGroup, this._currentTest); 
    694694                                return; 
    695695                        }