Skip to content
Permalink
Browse files

tests visual draggable - moved handle test to its own file. default v…

…isual tests should have no options.
  • Loading branch information
rdworth committed Jun 26, 2008
1 parent 6a6829d commit f7dc618ede64d9890a736d0bb235926bfd2fd8f2
Showing with 29 additions and 4 deletions.
  1. +27 −0 tests/visual/draggable.handle.html
  2. +2 −4 tests/visual/draggable.html
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Simple Draggable</title>
<link rel="stylesheet" href="all.css" type="text/css" media="screen">
<script type="text/javascript" src="../../jquery-1.2.6.js"></script>
<script type="text/javascript" src="../../ui/ui.core.js"></script>
<script type="text/javascript" src="../../ui/ui.draggable.js"></script>
<script type="text/javascript">
$(function() {
$("#draggable").draggable({ handle: "span" });
});
</script>
</head>
<body>

<ul class="plugins">
<li>
Draggable
<div id="draggable">
<span>Handle</span>
</div>
</li>
</ul>

</body>
</html>
@@ -8,7 +8,7 @@
<script type="text/javascript" src="../../ui/ui.draggable.js"></script>
<script type="text/javascript">
$(function() {
$("#draggable").draggable({ handle: "span", drag: function() { console.log(1); } });
$("#draggable").draggable();
});
</script>
</head>
@@ -17,11 +17,9 @@
<ul class="plugins">
<li>
Draggable
<div id="draggable"><span>Handle</span></div>
<div style="height: 1000px;"></div>
<div id="draggable"></div>
</li>
</ul>

<div style="height: 1000px;"></div>
</body>
</html>

0 comments on commit f7dc618

Please sign in to comment.
You can’t perform that action at this time.