]> source.dussan.org Git - jquery-ui.git/commitdiff
tests visual draggable - moved handle test to its own file. default visual tests...
authorRichard Worth <rdworth@gmail.com>
Thu, 26 Jun 2008 11:35:28 +0000 (11:35 +0000)
committerRichard Worth <rdworth@gmail.com>
Thu, 26 Jun 2008 11:35:28 +0000 (11:35 +0000)
tests/visual/draggable.handle.html [new file with mode: 0644]
tests/visual/draggable.html

diff --git a/tests/visual/draggable.handle.html b/tests/visual/draggable.handle.html
new file mode 100644 (file)
index 0000000..15a3a07
--- /dev/null
@@ -0,0 +1,27 @@
+<!DOCTYPE html>\r
+<html lang="en">\r
+<head>\r
+       <title>Simple Draggable</title>\r
+       <link rel="stylesheet" href="all.css" type="text/css" media="screen">\r
+       <script type="text/javascript" src="../../jquery-1.2.6.js"></script>\r
+       <script type="text/javascript" src="../../ui/ui.core.js"></script>\r
+       <script type="text/javascript" src="../../ui/ui.draggable.js"></script>\r
+       <script type="text/javascript">\r
+       $(function() {\r
+               $("#draggable").draggable({ handle: "span" });\r
+       });\r
+       </script>\r
+</head>\r
+<body>\r
+\r
+<ul class="plugins">\r
+<li>\r
+       Draggable\r
+       <div id="draggable">\r
+               <span>Handle</span>\r
+       </div>\r
+</li>\r
+</ul>\r
+\r
+</body>\r
+</html>\r
index 781e6e4cbef5437663f8b2dfac77bdea8b0f91e4..342265c079ea95bb568601c2218d6dfcd5351b95 100644 (file)
@@ -8,7 +8,7 @@
        <script type="text/javascript" src="../../ui/ui.draggable.js"></script>\r
        <script type="text/javascript">\r
        $(function() {\r
-               $("#draggable").draggable({ handle: "span", drag: function() { console.log(1); } });\r
+               $("#draggable").draggable();\r
        });\r
        </script>\r
 </head>\r
 <ul class="plugins">\r
 <li>\r
        Draggable\r
-       <div id="draggable"><span>Handle</span></div>\r
-       <div style="height: 1000px;"></div>\r
+       <div id="draggable"></div>\r
 </li>\r
 </ul>\r
 \r
-<div style="height: 1000px;"></div>\r
 </body>\r
 </html>\r