From 1bdcffba8ed6777ffc451523a34ade142715fd94 Mon Sep 17 00:00:00 2001 From: John Resig Date: Mon, 23 Aug 2010 14:23:13 -0700 Subject: [PATCH] Simplifying some of the .val() test code. --- test/unit/attributes.js | 5 +---- 1 file changed, 1 insertion(+), 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("").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." ); -- 2.39.5