diff options
author | Oleg <markelog@gmail.com> | 2014-01-16 07:04:14 +0400 |
---|---|---|
committer | Oleg <markelog@gmail.com> | 2014-01-16 07:05:11 +0400 |
commit | 2b98a2636bb4dfbaf25a2358d2f71b8244c5aee1 (patch) | |
tree | 535ba091264c602730b31bdf0ceeba4574d764fd | |
parent | f601dd4d2373fe74654eb26330f3fbf3c1b41842 (diff) | |
download | jquery-2b98a2636bb4dfbaf25a2358d2f71b8244c5aee1.tar.gz jquery-2b98a2636bb4dfbaf25a2358d2f71b8244c5aee1.zip |
Tests: Fix code style issues
(cherry-picked from a2250b0f4c157745b8cd8ac1247c6084882c500f)
-rw-r--r-- | test/unit/attributes.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/attributes.js b/test/unit/attributes.js index ff89b444e..32fd7b958 100644 --- a/test/unit/attributes.js +++ b/test/unit/attributes.js @@ -943,8 +943,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"); $select1.val( valueObj("3") ); equal( $select1.val(), "3", "Check for modified (via val(String)) value of select element" ); @@ -962,8 +962,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() { |