rem: test("empty()", function() { expect(3); ok( $("#ap").children().empty().text().length == 0, "Check text is removed" ); ok( $("#ap").children().length == 4, "Check elements are not removed" ); 
add: 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" ); 
context: test("empty()", function() {	expect(3);	ok( $("#ap").children().empty().text().length == 0, "Check text is removed" );	ok( $("#ap").children().length == 4, "Check elements are not removed" );	// using contents will get comments regular, text, and comment nodes	var j = $("#nonnodes").contents();	j.empty();	equals( j.html(), "", "Check node,textnode,comment empty works" );});
meta: 3217	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3217/279f77e9609fba62c11a06f8c65221b16f7bc7d4/core.js/buggy/test/unit/core.js