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() {
62
62
} ) ;
63
63
64
64
test ( "value" , function ( ) {
65
- expect ( 18 ) ;
65
+ expect ( 19 ) ;
66
66
$ ( [ false , "min" , "max" ] ) . each ( function ( ) {
67
67
var element = $ ( "<div></div>" ) . slider ( {
68
68
range : this ,
@@ -98,6 +98,16 @@ test( "value", function() {
98
98
} ) ;
99
99
element . slider ( "option" , "value" , 2.4 ) ;
100
100
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" ) ;
101
111
} ) ;
102
112
103
113
//test( "values", function() {
You can’t perform that action at this time.
0 commit comments