From: John Resig Date: Mon, 23 Aug 2010 21:23:13 +0000 (-0700) Subject: Simplifying some of the .val() test code. X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=1bdcffba8ed6777ffc451523a34ade142715fd94;p=jquery.git Simplifying some of the .val() test code. --- diff --git a/test/unit/attributes.js b/test/unit/attributes.js index c125ec7..8ce1c73 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("").appendTo("#form") - .add( jQuery("").appendTo("#form") ) - .add( jQuery("").appendTo("#form") ) - .add( jQuery("").appendTo("#form") ); + var checks = jQuery("").appendTo("#form"); same( checks.serialize(), "", "Get unchecked values." );