File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ test( "disable", function() {
6262} ) ;
6363
6464test ( "value" , function ( ) {
65- expect ( 18 ) ;
65+ expect ( 19 ) ;
6666 $ ( [ false , "min" , "max" ] ) . each ( function ( ) {
6767 var element = $ ( "<div></div>" ) . slider ( {
6868 range : this ,
@@ -98,6 +98,16 @@ test( "value", function() {
9898 } ) ;
9999 element . slider ( "option" , "value" , 2.4 ) ;
100100 equal ( element . slider ( "value" ) , 2.4 , "value is set to max with 0.01 step" ) ;
101+
102+ element = $ ( "<div></div>" ) . slider ( {
103+ value : 100 ,
104+ min : 10 ,
105+ max : 500 ,
106+ step : 50
107+ } ) ;
108+
109+ element . slider ( "option" , "value" , 510 ) ;
110+ equal ( element . slider ( "value" ) , 460 , "value is restricted to maximum valid step" ) ;
101111} ) ;
102112
103113//test( "values", function() {
You can’t perform that action at this time.
0 commit comments