aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2010-08-23 14:23:13 -0700
committerJohn Resig <jeresig@gmail.com>2010-08-23 14:23:13 -0700
commit1bdcffba8ed6777ffc451523a34ade142715fd94 (patch)
tree94582e1beee01a91b100b93e4b0efd8ed08df10c /test
parent392174431af1c9abc94ab6bd1c14f9f8f92a2a7d (diff)
downloadjquery-1bdcffba8ed6777ffc451523a34ade142715fd94.tar.gz
jquery-1bdcffba8ed6777ffc451523a34ade142715fd94.zip
Simplifying some of the .val() test code.
Diffstat (limited to 'test')
-rw-r--r--test/unit/attributes.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/unit/attributes.js b/test/unit/attributes.js
index c125ec7b5..8ce1c73a6 100644
--- a/test/unit/attributes.js
+++ b/test/unit/attributes.js
@@ -328,10 +328,7 @@ test("val()", function() {
jQuery('#select3').val("");
same( jQuery('#select3').val(), [''], 'Call val() on a multiple="multiple" select' );
- var checks = jQuery("<input type='checkbox' name='test' value='1'/>").appendTo("#form")
- .add( jQuery("<input type='checkbox' name='test' value='2'/>").appendTo("#form") )
- .add( jQuery("<input type='checkbox' name='test' value=''/>").appendTo("#form") )
- .add( jQuery("<input type='checkbox' name='test'/>").appendTo("#form") );
+ var checks = jQuery("<input type='checkbox' name='test' value='1'/><input type='checkbox' name='test' value='2'/><input type='checkbox' name='test' value=''/><input type='checkbox' name='test'/>").appendTo("#form");
same( checks.serialize(), "", "Get unchecked values." );