]> source.dussan.org Git - jquery-ui.git/commitdiff
Updated the test to include all scenarios.
authorAndrew Powell <powella@gmail.com>
Sun, 19 Apr 2009 23:15:44 +0000 (23:15 +0000)
committerAndrew Powell <powella@gmail.com>
Sun, 19 Apr 2009 23:15:44 +0000 (23:15 +0000)
tests/visual/slider/slider_ticket_3762.html

index f2423cf2301dfddbac6803a5d13656bc63902f14..9eee9c2276f9733a63df5b62a0efe0c17adee818 100644 (file)
@@ -9,10 +9,11 @@
        <script type="text/javascript" src="../../../ui/ui.slider.js"></script>
        <script type="text/javascript">
        $(function() {
-               $("#slider").slider({
-                       values: [5,0],
-                       range: true
-               });
+               $("#slider").slider({ values: [5,0], range: true});
+               $("#slider1").slider({ values: [-1,5], range: true});
+               $("#slider2").slider({ values: [5,200], range: true});
+               $("#slider3").slider({ values: [5,0], range: true});
+               $("#slider4").slider({range: true});
        });
        </script>
 </head>
 
 <div id="slider"></div>
 
+<div>- if less than min, set to min</div>
+<div id="slider1"></div>
+
+<div>- if greater than max, set to max</div>
+<div id="slider2"></div>
+
+<div>- if less than previous handle value, set to previous handle value</div>
+<div id="slider3"></div>
+
+<div>no values set</div>
+<div id="slider4"></div>
+
+
+
 </body>
 </html>