Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -941,8 +941,8 @@ var testVal = function( valueObj ) { | ||
equal( document.getElementById("text1").value, "", "Check for modified (via val(null)) value of input element" ); | ||
|
||
var j, | ||
select = jQuery( "<select multiple><option value='1'/><option value='2'/></select>" ); | ||
$select1 = jQuery("#select1"), | ||
$select = jQuery( "<select multiple><option value='1'/><option value='2'/></select>" ), | ||
$select1 = jQuery("#select1"); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
markelog
Author
Member
|
||
|
||
$select1.val( valueObj("3") ); | ||
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()" ); | ||
j.removeAttr("value"); | ||
|
||
select.val( valueObj( [ "1", "2" ] ) ); | ||
deepEqual( select.val(), [ "1", "2" ], "Should set array of values" ); | ||
$select.val( valueObj( [ "1", "2" ] ) ); | ||
deepEqual( $select.val(), [ "1", "2" ], "Should set array of values" ); | ||
}; | ||
|
||
test( "val(String/Number)", function() { | ||
As for code style... There should be spaces after
(
and before)
.