rem: test("toggleClass(String)", function() { expect(3); 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) - simple", function() { expect(4); var div = $("div").addClass("test").removeClass("test"), pass = true; for ( var i = 0; i < div.size(); i++ ) { if ( div.get(i).className.indexOf("test") != -1 ) pass = false; } ok( pass, "Remove Class" );  reset(); 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" );  reset(); var div = $("div:eq(0)").addClass("test").removeClass(""); ok( div.is('.test'), "Empty string passed to removeClass" );   var j = $("#nonnodes").contents(); j.removeClass("asdf"); ok( !j.hasClass("asdf"), "Check node,textnode,comment for removeClass" ); 
context: test("toggleClass(String)", function() {	expect(3);	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: 1375	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1375/279f77e9609fba62c11a06f8c65221b16f7bc7d4/core.js/clean/test/unit/core.js