Changeset 7654

Show
Ignore:
Timestamp:
03/19/07 00:44:13 (22 months ago)
Author:
alex
Message:

ensure that the console is cleared for each test run. Refs #2550

Files:
1 modified

Legend:

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

    r7650 r7654  
    7070                        byId("logBody").appendChild(tn); 
    7171                } 
     72 
     73                tests._init = (function(oi){ 
     74                        return function(){ 
     75                                oi.apply(tests, arguments); 
     76                                var lb = byId("logBody"); 
     77                                if(lb){ 
     78                                        while(lb.firstChild){ 
     79                                                lb.removeChild(lb.firstChild); 
     80                                        } 
     81                                } 
     82                        } 
     83                })(tests._init); 
    7284 
    7385                if(window["console"]){