test("addClass(String)", function() { expect(2); var div = $("div"); div.addClass("test"); var pass = true; for ( var i = 0; i < div.size(); i++ ) { if ( div.get(i).className.indexOf("test") == -1 ) pass = false; } ok( pass, "Add Class" );   var j = $("#nonnodes").contents(); j.addClass("asdf"); ok( j.hasClass("asdf"), "Check node,textnode,comment for addClass" ); }); 
$.each(test, function(selector, expected) { var elem = $(selector, "#show-tests").show(); equals( elem.css("display"), expected, "Show using correct display type for " + selector ); }); 
test("addClass(String)", function() {	expect(2);	var div = $("div");	div.addClass("test");	var pass = true;	for ( var i = 0; i < div.size(); i++ ) {	 if ( div.get(i).className.indexOf("test") == -1 ) pass = false;	}	ok( pass, "Add Class" );	// using contents will get regular, text, and comment nodes	var j = $("#nonnodes").contents();	j.addClass("asdf");	ok( j.hasClass("asdf"), "Check node,textnode,comment for addClass" );});
6056	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6056/279f77e9609fba62c11a06f8c65221b16f7bc7d4/core.js/clean/test/unit/core.js