rem: if(typeof console != "undefined") { 
add: if( console && console.error ) { 
context: function test(name, callback) {	synchronize(function() {		Test = [];		try {			callback();		} catch(e) {			if(typeof console != "undefined") {				console.error("Test " + name + " died, exception and test follows");				console.error(e);				console.warn(callback.toString());			}			Test.push( [ false, "Died on test #" + (Test.length+1) + ": " + e ] );		}	});	synchronize(function() {		reset();				var good = 0, bad = 0;		var ol = document.createElement("ol");			var li = "", state = "pass";		for ( var i = 0; i < Test.length; i++ ) {			var li = document.createElement("li");			li.className = Test[i][0] ? "pass" : "fail";			li.innerHTML = Test[i][1];			ol.appendChild( li );						stats.all++;			if ( !Test[i][0] ) {				state = "fail";				bad++;				stats.bad++;			} else good++;		}			var li = document.createElement("li");		li.className = state;			var b = document.createElement("b");		b.innerHTML = name + " <b style='color:black;'>(<b class='fail'>" + bad + "</b>, <b class='pass'>" + good + "</b>, " + Test.length + ")</b>";		b.onclick = function(){			var n = this.nextSibling;			if ( jQuery.css( n, "display" ) == "none" )				n.style.display = "block";			else				n.style.display = "none";		};		li.appendChild( b );		li.appendChild( ol );			document.getElementById("tests").appendChild( li );			});}
meta: 2798	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2798/215f785de699015ba7221f3414807f9e7474ef4d/testrunner.js/buggy/build/test/data/testrunner.js