Skip to content
Permalink
Browse files

Simplifying some of the .val() test code.

  • Loading branch information...
jeresig committed Aug 23, 2010
1 parent 3921744 commit 1bdcffba8ed6777ffc451523a34ade142715fd94
Showing with 1 addition and 4 deletions.
  1. +1 −4 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." );

0 comments on commit 1bdcffb

Please sign in to comment.
You can’t perform that action at this time.