rem: reset();   if(nowait) return;  if(_config.expected && _config.expected != _config.Test.length) { _config.Test.push( [ false, "Expected " + _config.expected + " assertions, but " + _config.Test.length + " were run" ] ); 
add: _config.Test = []; try { callback(); } catch(e) { if( typeof console != "undefined" && console.error && console.warn ) { console.error("Test " + name + " died, exception and test follows"); console.error(e); console.warn(callback.toString()); } _config.Test.push( [ false, "Died on test #" + (_config.Test.length+1) + ": " + e ] ); 
context: 	synchronize(function() {		reset();				// don't output pause tests		if(nowait) return;				if(_config.expected && _config.expected != _config.Test.length) {			_config.Test.push( [ false, "Expected " + _config.expected + " assertions, but " + _config.Test.length + " were run" ] );		}		_config.expected = null;				var good = 0, bad = 0;		var ol = document.createElement("ol");		ol.style.display = "none";		var li = "", state = "pass";		for ( var i = 0; i < _config.Test.length; i++ ) {			var li = document.createElement("li");			li.className = _config.Test[i][0] ? "pass" : "fail";			li.innerHTML = _config.Test[i][1];			ol.appendChild( li );						_config.stats.all++;			if ( !_config.Test[i][0] ) {				state = "fail";				bad++;				_config.stats.bad++;			} else good++;		}			var li = document.createElement("li");		li.className = state;			var b = document.createElement("strong");		b.innerHTML = name + " <b style='color:black;'>(<b class='fail'>" + bad + "</b>, <b class='pass'>" + good + "</b>, " + _config.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";		};		$(b).dblclick(function(event) {			var target = jQuery(event.target).filter("strong").clone();			if ( target.length ) {				target.children().remove();				location.href = location.href.match(/^(.+?)(\?.*)?$/)[1] + "?" + encodeURIComponent($.trim(target.text()));			}		});		li.appendChild( b );		li.appendChild( ol );			document.getElementById("tests").appendChild( li );			});
meta: 1375	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1375/2ef4093cf7f52383dd43bd361864edcda27e5c3c/testrunner.js/clean/build/test/data/testrunner.js