$("#ap").children().remove(); ok( $("#ap").text().length > 10, "Check text is not removed" ); ok( $("#ap").children().length == 0, "Check remove" );  reset(); $("#ap").children().remove("a"); ok( $("#ap").text().length > 10, "Check text is not removed" ); ok( $("#ap").children().length == 1, "Check filtered remove" );   equals( $("#nonnodes").contents().length, 3, "Check node,textnode,comment remove works" ); $("#nonnodes").contents().remove(); equals( $("#nonnodes").contents().length, 0, "Check node,textnode,comment remove works" ); 
var x = $("<p>Hi</p>")[0]; var c = $.className; c.add(x, "hi"); ok( x.className == "hi", "Check single added class" ); c.add(x, "foo bar"); ok( x.className == "hi foo bar", "Check more added classes" ); c.remove(x); ok( x.className == "", "Remove all classes" ); c.add(x, "hi foo bar"); c.remove(x, "foo"); ok( x.className == "hi bar", "Check removal of one class" ); ok( c.has(x, "hi"), "Check has1" ); ok( c.has(x, "bar"), "Check has2" ); 
test("remove()", function() {	expect(6);	$("#ap").children().remove();	ok( $("#ap").text().length > 10, "Check text is not removed" );	ok( $("#ap").children().length == 0, "Check remove" );		reset();	$("#ap").children().remove("a");	ok( $("#ap").text().length > 10, "Check text is not removed" );	ok( $("#ap").children().length == 1, "Check filtered remove" );	// using contents will get comments regular, text, and comment nodes	equals( $("#nonnodes").contents().length, 3, "Check node,textnode,comment remove works" );	$("#nonnodes").contents().remove();	equals( $("#nonnodes").contents().length, 0, "Check node,textnode,comment remove works" );});
6056	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6056/279f77e9609fba62c11a06f8c65221b16f7bc7d4/core.js/clean/test/unit/core.js