rem: test("$.each(Object,Function)", function() { expect(8); $.each( [0,1,2], function(i, n){ ok( i == n, "Check array iteration" ); });  $.each( [5,6,7], function(i, n){ ok( i == n - 5, "Check array iteration" ); });  $.each( { name: "name", lang: "lang" }, function(i, n){ ok( i == n, "Check object iteration" ); }); 
add: 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()" ); 
context: test("$.each(Object,Function)", function() {	expect(8);	$.each( [0,1,2], function(i, n){		ok( i == n, "Check array iteration" );	});		$.each( [5,6,7], function(i, n){		ok( i == n - 5, "Check array iteration" );	});	 	$.each( { name: "name", lang: "lang" }, function(i, n){		ok( i == n, "Check object iteration" );	});});
meta: 3217	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3217/279f77e9609fba62c11a06f8c65221b16f7bc7d4/core.js/buggy/test/unit/core.js