rem: test("toggleClass(String)", function() { var e = $("#firstp"); ok( !e.is(".test"), "Assert class not present" ); e.toggleClass("test"); ok( e.is(".test"), "Assert class present" ); e.toggleClass("test"); ok( !e.is(".test"), "Assert class not present" ); 
add: test("removeClass(String) - add three classes and remove again", function() { expect(1); var div = $("div").addClass("test").addClass("foo").addClass("bar"); div.removeClass("test").removeClass("bar").removeClass("foo"); var pass = true; for ( var i = 0; i < div.size(); i++ ) { if ( div.get(i).className.match(/test|bar|foo/) ) pass = false; } ok( pass, "Remove multiple classes" ); 
context: test("toggleClass(String)", function() {	var e = $("#firstp");	ok( !e.is(".test"), "Assert class not present" );	e.toggleClass("test");	ok( e.is(".test"), "Assert class present" ); 	e.toggleClass("test");	ok( !e.is(".test"), "Assert class not present" );});
meta: 1307	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1307/ea283bd13130303271077a6ee8b14b7c79bd0ce4/coreTest.js/clean/src/jquery/coreTest.js