mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Tests: Fix code style issues
This commit is contained in:
parent
659ac9c155
commit
a2250b0f4c
@ -941,8 +941,8 @@ var testVal = function( valueObj ) {
|
|||||||
equal( document.getElementById("text1").value, "", "Check for modified (via val(null)) value of input element" );
|
equal( document.getElementById("text1").value, "", "Check for modified (via val(null)) value of input element" );
|
||||||
|
|
||||||
var j,
|
var j,
|
||||||
select = jQuery( "<select multiple><option value='1'/><option value='2'/></select>" );
|
$select = jQuery( "<select multiple><option value='1'/><option value='2'/></select>" ),
|
||||||
$select1 = jQuery("#select1"),
|
$select1 = jQuery("#select1");
|
||||||
|
|
||||||
$select1.val( valueObj("3") );
|
$select1.val( valueObj("3") );
|
||||||
equal( $select1.val(), "3", "Check for modified (via val(String)) value of select element" );
|
equal( $select1.val(), "3", "Check for modified (via val(String)) value of select element" );
|
||||||
@ -960,8 +960,8 @@ var testVal = function( valueObj ) {
|
|||||||
equal( j.val(), "asdf", "Check node,textnode,comment with val()" );
|
equal( j.val(), "asdf", "Check node,textnode,comment with val()" );
|
||||||
j.removeAttr("value");
|
j.removeAttr("value");
|
||||||
|
|
||||||
select.val( valueObj( [ "1", "2" ] ) );
|
$select.val( valueObj( [ "1", "2" ] ) );
|
||||||
deepEqual( select.val(), [ "1", "2" ], "Should set array of values" );
|
deepEqual( $select.val(), [ "1", "2" ], "Should set array of values" );
|
||||||
};
|
};
|
||||||
|
|
||||||
test( "val(String/Number)", function() {
|
test( "val(String/Number)", function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user