test("val(String)", function() { expect(4); document.getElementById('text1').value = "bla"; ok( $("#text1").val() == "bla", "Check for modified value of input element" ); $("#text1").val('test'); ok ( document.getElementById('text1').value == "test", "Check for modified (via val(String)) value of input element" );  $("#select1").val("3"); ok( $("#select1").val() == "3", "Check for modified (via val(String)) value of select element" );   var j = $("#nonnodes").contents(); j.val("asdf"); equals( j.val(), "asdf", "Check node,textnode,comment with val()" ); j.removeAttr("value"); 
test("val()", function() { expect(3); ok( $("#text1").val() == "Test", "Check for value of input element" ); ok( !$("#text1").val() == "", "Check for value of input element" );  ok( $("#first").val() == "", "Check a paragraph element to see if it has a value" ); 
test("val(String)", function() {	expect(4);	document.getElementById('text1').value = "bla";	ok( $("#text1").val() == "bla", "Check for modified value of input element" );	$("#text1").val('test');	ok ( document.getElementById('text1').value == "test", "Check for modified (via val(String)) value of input element" );		$("#select1").val("3");	ok( $("#select1").val() == "3", "Check for modified (via val(String)) value of select element" );	// using contents will get comments regular, text, and comment nodes	var j = $("#nonnodes").contents();	j.val("asdf");	equals( j.val(), "asdf", "Check node,textnode,comment with val()" );	j.removeAttr("value");});
6056	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6056/279f77e9609fba62c11a06f8c65221b16f7bc7d4/core.js/clean/test/unit/core.js