@@ -634,14 +634,16 @@ describe('form', function() {
634634 var expected = [ '8' , '10' ] ;
635635 var result = $ ( '#fieldTest :checkbox' ) . fieldValue ( true ) ;
636636 assert . ok ( result . length == expected . length , 'result size check (checkbox): ' + result . length + '=' + expected . length ) ;
637- for ( var i = 0 ; i < result . length ; i ++ )
637+ for ( var i = 0 ; i < result . length ; i ++ ) {
638638 assert . ok ( result [ i ] == expected [ i ] , expected [ i ] ) ;
639+ }
639640
640641 expected = [ '3' , '4' ] ;
641642 result = $ ( '#fieldTest [name=B]' ) . fieldValue ( true ) ;
642643 assert . ok ( result . length == expected . length , 'result size check (select-multiple): ' + result . length + '=' + expected . length ) ;
643- for ( var i = 0 ; i < result . length ; i ++ )
644+ for ( var i = 0 ; i < result . length ; i ++ ) {
644645 assert . ok ( result [ i ] == expected [ i ] , expected [ i ] ) ;
646+ }
645647 } ) ;
646648
647649 it ( 'fieldValue(false)' , function ( ) {
@@ -654,20 +656,23 @@ describe('form', function() {
654656 var expected = [ '8' , '9' , '10' ] ;
655657 var result = $ ( '#fieldTest :checkbox' ) . fieldValue ( false ) ;
656658 assert . ok ( result . length == expected . length , 'result size check (checkbox): ' + result . length + '=' + expected . length ) ;
657- for ( var i = 0 ; i < result . length ; i ++ )
659+ for ( var i = 0 ; i < result . length ; i ++ ) {
658660 assert . ok ( result [ i ] == expected [ i ] , expected [ i ] ) ;
661+ }
659662
660663 expected = [ '11' , '12' , '13' ] ;
661664 result = $ ( '#fieldTest :radio' ) . fieldValue ( false ) ;
662665 assert . ok ( result . length == expected . length , 'result size check (radio): ' + result . length + '=' + expected . length ) ;
663- for ( var i = 0 ; i < result . length ; i ++ )
666+ for ( var i = 0 ; i < result . length ; i ++ ) {
664667 assert . ok ( result [ i ] == expected [ i ] , expected [ i ] ) ;
668+ }
665669
666670 expected = [ '3' , '4' ] ;
667671 result = $ ( '#fieldTest [name=B]' ) . fieldValue ( false ) ;
668672 assert . ok ( result . length == expected . length , 'result size check (select-multiple): ' + result . length + '=' + expected . length ) ;
669- for ( var i = 0 ; i < result . length ; i ++ )
673+ for ( var i = 0 ; i < result . length ; i ++ ) {
670674 assert . ok ( result [ i ] == expected [ i ] , expected [ i ] ) ;
675+ }
671676 } ) ;
672677
673678 it ( 'fieldSerialize(true) input' , function ( ) {
@@ -677,8 +682,9 @@ describe('form', function() {
677682 result = result . split ( '&' ) ;
678683
679684 assert . ok ( result . length == expected . length , 'result size check: ' + result . length + '=' + expected . length ) ;
680- for ( var i = 0 ; i < result . length ; i ++ )
685+ for ( var i = 0 ; i < result . length ; i ++ ) {
681686 assert . ok ( result [ i ] == expected [ i ] , expected [ i ] + ' = ' + result [ i ] ) ;
687+ }
682688 } ) ;
683689
684690 it ( 'fieldSerialize(true) :input' , function ( ) {
@@ -688,8 +694,9 @@ describe('form', function() {
688694 result = result . split ( '&' ) ;
689695
690696 assert . ok ( result . length == expected . length , 'result size check: ' + result . length + '=' + expected . length ) ;
691- for ( var i = 0 ; i < result . length ; i ++ )
697+ for ( var i = 0 ; i < result . length ; i ++ ) {
692698 assert . ok ( result [ i ] == expected [ i ] , expected [ i ] + ' = ' + result [ i ] ) ;
699+ }
693700 } ) ;
694701
695702 it ( 'fieldSerialize(false) :input' , function ( ) {
@@ -699,8 +706,9 @@ describe('form', function() {
699706 result = result . split ( '&' ) ;
700707
701708 assert . ok ( result . length == expected . length , 'result size check: ' + result . length + '=' + expected . length ) ;
702- for ( var i = 0 ; i < result . length ; i ++ )
709+ for ( var i = 0 ; i < result . length ; i ++ ) {
703710 assert . ok ( result [ i ] == expected [ i ] , expected [ i ] + ' = ' + result [ i ] ) ;
711+ }
704712 } ) ;
705713
706714 it ( 'fieldSerialize(true) select-mulitple' , function ( ) {
@@ -710,8 +718,9 @@ describe('form', function() {
710718 result = result . split ( '&' ) ;
711719
712720 assert . ok ( result . length == expected . length , 'result size check: ' + result . length + '=' + expected . length ) ;
713- for ( var i = 0 ; i < result . length ; i ++ )
721+ for ( var i = 0 ; i < result . length ; i ++ ) {
714722 assert . ok ( result [ i ] == expected [ i ] , expected [ i ] + ' = ' + result [ i ] ) ;
723+ }
715724 } ) ;
716725
717726 it ( 'fieldSerialize(true) :checkbox' , function ( ) {
@@ -721,8 +730,9 @@ describe('form', function() {
721730 result = result . split ( '&' ) ;
722731
723732 assert . ok ( result . length == expected . length , 'result size check: ' + result . length + '=' + expected . length ) ;
724- for ( var i = 0 ; i < result . length ; i ++ )
733+ for ( var i = 0 ; i < result . length ; i ++ ) {
725734 assert . ok ( result [ i ] == expected [ i ] , expected [ i ] + ' = ' + result [ i ] ) ;
735+ }
726736 } ) ;
727737
728738 it ( 'fieldSerialize(false) :checkbox' , function ( ) {
@@ -732,8 +742,9 @@ describe('form', function() {
732742 result = result . split ( '&' ) ;
733743
734744 assert . ok ( result . length == expected . length , 'result size check: ' + result . length + '=' + expected . length ) ;
735- for ( var i = 0 ; i < result . length ; i ++ )
745+ for ( var i = 0 ; i < result . length ; i ++ ) {
736746 assert . ok ( result [ i ] == expected [ i ] , expected [ i ] + ' = ' + result [ i ] ) ;
747+ }
737748 } ) ;
738749
739750 it ( 'fieldSerialize(true) :radio' , function ( ) {
@@ -743,8 +754,9 @@ describe('form', function() {
743754 result = result . split ( '&' ) ;
744755
745756 assert . ok ( result . length == expected . length , 'result size check: ' + result . length + '=' + expected . length ) ;
746- for ( var i = 0 ; i < result . length ; i ++ )
757+ for ( var i = 0 ; i < result . length ; i ++ ) {
747758 assert . ok ( result [ i ] == expected [ i ] , expected [ i ] + ' = ' + result [ i ] ) ;
759+ }
748760 } ) ;
749761
750762 it ( 'fieldSerialize(false) :radio' , function ( ) {
@@ -754,8 +766,9 @@ describe('form', function() {
754766 result = result . split ( '&' ) ;
755767
756768 assert . ok ( result . length == expected . length , 'result size check: ' + result . length + '=' + expected . length ) ;
757- for ( var i = 0 ; i < result . length ; i ++ )
769+ for ( var i = 0 ; i < result . length ; i ++ ) {
758770 assert . ok ( result [ i ] == expected [ i ] , expected [ i ] + ' = ' + result [ i ] ) ;
771+ }
759772 } ) ;
760773
761774 it ( 'ajaxForm - auto unbind' , function ( ) {
0 commit comments