rem: reset(); 
context: test("html(String)", function() {	expect(11);	var div = $("#main > div");	div.html("<b>test</b>");	var pass = true;	for ( var i = 0; i < div.size(); i++ ) {		if ( div.get(i).childNodes.length != 1 ) pass = false;	}	ok( pass, "Set HTML" );	reset();	// using contents will get comments regular, text, and comment nodes	var j = $("#nonnodes").contents();	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>');	// it was decided that waiting to execute ALL scripts makes sense since nested ones have to wait anyway so this test case is changed, see #1959	$("#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 );});
meta: 3217	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3217/279f77e9609fba62c11a06f8c65221b16f7bc7d4/core.js/buggy/test/unit/core.js