aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2008-06-26 11:35:28 +0000
committerRichard Worth <rdworth@gmail.com>2008-06-26 11:35:28 +0000
commitf7dc618ede64d9890a736d0bb235926bfd2fd8f2 (patch)
tree03ff45e482962463becf862f8d4fd9e064aa4322 /tests
parent6a6829db7f2e7223b34d0e21aa372f11eb271344 (diff)
downloadjquery-ui-f7dc618ede64d9890a736d0bb235926bfd2fd8f2.tar.gz
jquery-ui-f7dc618ede64d9890a736d0bb235926bfd2fd8f2.zip
tests visual draggable - moved handle test to its own file. default visual tests should have no options.
Diffstat (limited to 'tests')
-rw-r--r--tests/visual/draggable.handle.html27
-rw-r--r--tests/visual/draggable.html6
2 files changed, 29 insertions, 4 deletions
diff --git a/tests/visual/draggable.handle.html b/tests/visual/draggable.handle.html
new file mode 100644
index 000000000..15a3a0722
--- /dev/null
+++ b/tests/visual/draggable.handle.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>
diff --git a/tests/visual/draggable.html b/tests/visual/draggable.html
index 781e6e4cb..342265c07 100644
--- a/tests/visual/draggable.html
+++ b/tests/visual/draggable.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>