rem: equals( j.filter("span").length, 1, "Check node,textnode,comment to filter the one span" ); equals( j.filter("[name]").length, 0, "Check node,textnode,comment to filter the one span" ); 
add: j.html("<b>bold</b>"); equals( j.html().toLowerCase(), "<b>bold</b>", "Check node,textnode,comment with html()" );  $("#main").html("<select/>"); $("#main select").html("<option>O1</option><option selected='selected'>O2</option><option>O3</option>"); equals( $("#main select").val(), "O2", "Selected option correct" );  stop();  $("#main").html('<script type="text/javascript">ok( true, "$().html().evalScripts() Evals Scripts Twice in Firefox, see #975" );</script>');  $("#main").html('foo <form><script type="text/javascript">ok( true, "$().html().evalScripts() Evals Scripts Twice in Firefox, see #975" );</script></form>');   $("#main").html("<script>ok(scriptorder++ == 0, 'Script is executed in order');ok($('#scriptorder').length == 1,'Execute after html (even though appears before)')<\/script><span id='scriptorder'><script>ok(scriptorder++ == 1, 'Script (nested) is executed in order');ok($('#scriptorder').length == 1,'Execute after html')<\/script></span><script>ok(scriptorder++ == 2, 'Script (unnested) is executed in order');ok($('#scriptorder').length == 1,'Execute after html')<\/script>");  setTimeout( start, 100 ); 
context: test("filter()", function() {	expect(6);	isSet( $("#form input").filter(":checked").get(), q("radio2", "check1"), "filter(String)" );	isSet( $("p").filter("#ap, #sndp").get(), q("ap", "sndp"), "filter('String, String')" );	isSet( $("p").filter("#ap,#sndp").get(), q("ap", "sndp"), "filter('String,String')" );	isSet( $("p").filter(function() { return !$("a", this).length }).get(), q("sndp", "first"), "filter(Function)" );	// using contents will get comments regular, text, and comment nodes	var j = $("#nonnodes").contents();	equals( j.filter("span").length, 1, "Check node,textnode,comment to filter the one span" );	equals( j.filter("[name]").length, 0, "Check node,textnode,comment to filter the one span" );});
meta: 1307	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1307/279f77e9609fba62c11a06f8c65221b16f7bc7d4/core.js/buggy/test/unit/core.js