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 @@ -58,7 +58,7 @@ test( "disable", function( assert ) {
58
58
} ) ;
59
59
60
60
test ( "value" , function ( ) {
61
- expect ( 18 ) ;
61
+ expect ( 19 ) ;
62
62
$ ( [ false , "min" , "max" ] ) . each ( function ( ) {
63
63
var element = $ ( "<div></div>" ) . slider ( {
64
64
range : this ,
@@ -94,6 +94,16 @@ test( "value", function() {
94
94
} ) ;
95
95
element . slider ( "option" , "value" , 2.4 ) ;
96
96
equal ( element . slider ( "value" ) , 2.4 , "value is set to max with 0.01 step" ) ;
97
+
98
+ element = $ ( "<div></div>" ) . slider ( {
99
+ value : 100 ,
100
+ min : 10 ,
101
+ max : 500 ,
102
+ step : 50
103
+ } ) ;
104
+
105
+ element . slider ( "option" , "value" , 510 ) ;
106
+ equal ( element . slider ( "value" ) , 460 , "value is restricted to maximum valid step" ) ;
97
107
} ) ;
98
108
99
109
//test( "values", function() {
You can’t perform that action at this time.
0 commit comments