rem: else if( typeof( obj ) == "object" ) { for( var member in obj ) { if( member.indexOf( "test" ) == 0 ) this.addTest( new obj.constructor( member )); } obj = null; } 
context: function TestSuite( obj ){	var name, str;	switch( typeof obj )	{		case "undefined": name = "all"; break;		case "object":			if( !obj )			{				name = "all";				break;			}			str = new String( obj.constructor );		case "function":			if( !str )				str = new String( obj );			name = str.substring( str.indexOf( " " ) + 1, str.indexOf( "(" ));			if( name == "(" )				name = "[anonymous]";			break;		case "string": name = obj; break;		default: name = obj.toString(); break;	}	this.constructor.call( this, name );	this.mTests = new Array();	// collect all testXXX methods	if( typeof( obj ) == "function" )	{		for( var member in obj.prototype )		{			if( member.indexOf( "test" ) == 0 )				this.addTest( new ( obj )( member ));		}	} 	else if( typeof( obj ) == "object" )	{		for( var member in obj )		{			if( member.indexOf( "test" ) == 0 )				this.addTest( new obj.constructor( member ));		}		obj = null;	}}
meta: 8928	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8928/85e3bba10717f8ad92f79f17dd0bd4f7fd558eb5/JsUnit.js/buggy/trunk/jsunit/lib/JsUnit.js