test("text(String)", function() { expect(4); ok( $("#foo").text("<div><b>Hello</b> cruel world!</div>")[0].innerHTML == "&lt;div&gt;&lt;b&gt;Hello&lt;/b&gt; cruel world!&lt;/div&gt;", "Check escaped text" );   var j = $("#nonnodes").contents(); j.text("hi!"); equals( $(j[0]).text(), "hi!", "Check node,textnode,comment with text()" ); equals( j[1].nodeValue, " there ", "Check node,textnode,comment with text()" ); equals( j[2].nodeType, 8, "Check node,textnode,comment with text()" ); 
test("removeAttr(String", function() { expect(1); ok( $('#mark').removeAttr("class")[0].className == "", "remove class" ); 
test("text(String)", function() {	expect(4);	ok( $("#foo").text("<div><b>Hello</b> cruel world!</div>")[0].innerHTML == "&lt;div&gt;&lt;b&gt;Hello&lt;/b&gt; cruel world!&lt;/div&gt;", "Check escaped text" );	// using contents will get comments regular, text, and comment nodes	var j = $("#nonnodes").contents();	j.text("hi!");	equals( $(j[0]).text(), "hi!", "Check node,textnode,comment with text()" );	equals( j[1].nodeValue, " there ", "Check node,textnode,comment with text()" );	equals( j[2].nodeType, 8, "Check node,textnode,comment with text()" );});
6056	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6056/279f77e9609fba62c11a06f8c65221b16f7bc7d4/core.js/clean/test/unit/core.js