aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual/slider/slider_ticket_3762.html
blob: eade7e3e13ba3073d7a3dbc20d023d4fd9afae58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>Slider Visual Test : Slider ticket #3762</title>
	<link rel="stylesheet" href="../visual.css" type="text/css" />
	<link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css">
	<script type="text/javascript" src="../../../jquery-1.5.1.js"></script>
	<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
	<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
	<script type="text/javascript" src="../../../ui/jquery.ui.mouse.js"></script>
	<script type="text/javascript" src="../../../ui/jquery.ui.slider.js"></script>
	<script type="text/javascript">
	$(function() {
		$("#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>
<body>

<h1 class="ui-widget-header"><a href="http://dev.jqueryui.com/ticket/3762">#3762 - slider handles not restricted properly when set programmatically</a></h1>

<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>