test("show()", function() { expect(15); var pass = true, div = $("div"); div.show().each(function(){ if ( this.style.display == "none" ) pass = false; }); ok( pass, "Show" );  $("#main").append('<div id="show-tests"><div><p><a href="#"></a></p><code></code><pre></pre><span></span></div><table><thead><tr><th></th></tr></thead><tbody><tr><td></td></tr></tbody></table><ul><li></li></ul></div>'); var test = { "div"      : "block", "p"        : "block", "a"        : "inline", "code"     : "inline", "pre"      : "block", "span"     : "inline", "table"    : $.browser.msie ? "block" : "table", "thead"    : $.browser.msie ? "block" : "table-header-group", "tbody"    : $.browser.msie ? "block" : "table-row-group", "tr"       : $.browser.msie ? "block" : "table-row", "th"       : $.browser.msie ? "block" : "table-cell", "td"       : $.browser.msie ? "block" : "table-cell", "ul"       : "block", "li"       : $.browser.msie ? "block" : "list-item" };  $.each(test, function(selector, expected) { var elem = $(selector, "#show-tests").show(); equals( elem.css("display"), expected, "Show using correct display type for " + selector ); }); 
test("prev([String])", function() { expect(4); ok( $("#foo").prev()[0].id == "ap", "Simple prev check" ); ok( $("#foo").prev("p")[0].id == "ap", "Filtered prev check" ); ok( $("#foo").prev("div").length == 0, "Filtered prev check, no match" ); ok( $("#foo").prev("p, div")[0].id == "ap", "Multiple filters" ); 
test("show()", function() {	expect(15);	var pass = true, div = $("div");	div.show().each(function(){		if ( this.style.display == "none" ) pass = false;	});	ok( pass, "Show" );		$("#main").append('<div id="show-tests"><div><p><a href="#"></a></p><code></code><pre></pre><span></span></div><table><thead><tr><th></th></tr></thead><tbody><tr><td></td></tr></tbody></table><ul><li></li></ul></div>');	var test = {		"div"      : "block",		"p"        : "block",		"a"        : "inline",		"code"     : "inline",		"pre"      : "block",		"span"     : "inline",		"table"    : $.browser.msie ? "block" : "table",		"thead"    : $.browser.msie ? "block" : "table-header-group",		"tbody"    : $.browser.msie ? "block" : "table-row-group",		"tr"       : $.browser.msie ? "block" : "table-row",		"th"       : $.browser.msie ? "block" : "table-cell",		"td"       : $.browser.msie ? "block" : "table-cell",		"ul"       : "block",		"li"       : $.browser.msie ? "block" : "list-item"	};		$.each(test, function(selector, expected) {		var elem = $(selector, "#show-tests").show();		equals( elem.css("display"), expected, "Show using correct display type for " + selector );	});});
6056	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6056/279f77e9609fba62c11a06f8c65221b16f7bc7d4/core.js/clean/test/unit/core.js