Skip to content

Commit 4a0df13

Browse files
committed
Added simple slider test
1 parent 2439b4f commit 4a0df13

3 files changed

Lines changed: 35 additions & 1 deletion

File tree

tests/visual/all.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ul.plugins li { margin: 0 12px 12px 0;
66
color: white; border: 1px solid gray; text-align: center; font-weight: bold; }
77

88
#accordion, #draggable, #droppable,
9-
#resizable, #selectable, #slider, #sortable, #tabs {
9+
#resizable, #selectable, #sortable, #tabs {
1010
margin: 10px;
1111
width: 190px; height: 180px;
1212
text-align: center;
@@ -71,3 +71,6 @@ ul.plugins li { margin: 0 12px 12px 0;
7171
.ui-dialog .ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: 0px; bottom: 0px; background: gray !important; border: none !important; }
7272
.ui-dialog .ui-resizable-nw { cursor: nw-resize; width: 9px; height: 29px; left: 0px; top: 0px; background: gray !important; border: none !important; }
7373
.ui-dialog .ui-resizable-ne { cursor: ne-resize; width: 9px; height: 29px; right: 0px; top: 0px; background: gray !important; border: none !important; }
74+
75+
.ui-slider { margin: 10px; background: #FF9C08; height: 15px; }
76+
.ui-slider-handle { width: 10px; height: 15px; background: white; }

tests/visual/all.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
$("#draggable").draggable();
2424
$("#resizable").resizable();
2525
$("#selectable").selectable();
26+
$("#slider").slider();
2627
$("#sortable").sortable();
2728
});
2829
</script>
@@ -64,6 +65,10 @@
6465
<div>9</div>
6566
</div>
6667
</li>
68+
<li>
69+
Slider
70+
<div id="slider"></div>
71+
</li>
6772
<li>
6873
Sortable
6974
<div id="sortable">

tests/visual/slider.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<title>Simple Slider</title>
5+
<link rel="stylesheet" href="all.css" type="text/css" media="screen">
6+
<script type="text/javascript" src="../../jquery-1.2.6.js"></script>
7+
<script type="text/javascript" src="../../ui/ui.core.js"></script>
8+
<script type="text/javascript" src="../../ui/ui.slider.js"></script>
9+
<script type="text/javascript">
10+
$(function() {
11+
$("#slider").slider();
12+
});
13+
</script>
14+
</head>
15+
16+
<body>
17+
18+
<ul class="plugins">
19+
<li>
20+
Slider
21+
<div id="slider"></div>
22+
</li>
23+
</ul>
24+
25+
</body>
26+
</html>

0 commit comments

Comments
 (0)