diff options
Diffstat (limited to 'tests/visual/droppable')
-rw-r--r-- | tests/visual/droppable/default.html | 25 | ||||
-rw-r--r-- | tests/visual/droppable/droppable.html | 10 |
2 files changed, 9 insertions, 26 deletions
diff --git a/tests/visual/droppable/default.html b/tests/visual/droppable/default.html deleted file mode 100644 index c49ec3a61..000000000 --- a/tests/visual/droppable/default.html +++ /dev/null @@ -1,25 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> -<head> - <meta charset="UTF-8" /> - <title>Droppable Visual Test : Default</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.4.2.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.draggable.js"></script> - <script type="text/javascript" src="../../../ui/jquery.ui.droppable.js"></script> - <script type="text/javascript"> - $(function() { - $("body").children(":first").droppable(); - }); - </script> -</head> -<body> - -<div><p>Droppable</p></div> - -</body> -</html> diff --git a/tests/visual/droppable/droppable.html b/tests/visual/droppable/droppable.html index b372fa1a4..0d306f709 100644 --- a/tests/visual/droppable/droppable.html +++ b/tests/visual/droppable/droppable.html @@ -13,11 +13,19 @@ <script type="text/javascript" src="../../../ui/jquery.ui.droppable.js"></script> <script type="text/javascript"> $(function() { - $("#droppable").droppable(); + $("#draggable").draggable(); + $("#droppable").droppable({ + drop: function() { + alert("Dropped something"); + } + }); }); </script> </head> <body> + <div id="draggable"> + <p> Draggable </p> +</div> <div id="droppable"> <p> Droppable </p> </div> |