test("addClass(String)", function() { 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" ); 
test("parent[s]([String])", function() { expect(8); ok( $("#groups").parent()[0].id == "ap", "Simple parent check" ); ok( $("#groups").parent("p")[0].id == "ap", "Filtered parent check" ); ok( $("#groups").parent("div").length == 0, "Filtered parent check, no match" ); ok( $("#groups").parent("div, p")[0].id == "ap", "Check for multiple filters" );  ok( $("#groups").parents()[0].id == "ap", "Simple parents check" ); ok( $("#groups").parents("p")[0].id == "ap", "Filtered parents check" ); ok( $("#groups").parents("div")[0].id == "main", "Filtered parents check2" ); isSet( $("#groups").parents("p, div").get(), q("ap", "main"), "Check for multiple filters" ); 
test("addClass(String)", function() {	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" );});
6056	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6056/200319ea6b6a59daebce1cfc1d330a9d52c208c0/coreTest.js/buggy/src/jquery/coreTest.js