aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual/droppable
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-11-03 08:45:04 -0400
committerScott González <scott.gonzalez@gmail.com>2011-11-03 08:45:23 -0400
commit95d7314bd9bd9d5ca8983d646a51ee0fb51a1149 (patch)
tree67ba95e5fd81031a0b4fee378d1876a6e7f40d2c /tests/visual/droppable
parent4f9209feb020bf11c260195e7c8960a33f3a80fa (diff)
downloadjquery-ui-95d7314bd9bd9d5ca8983d646a51ee0fb51a1149.tar.gz
jquery-ui-95d7314bd9bd9d5ca8983d646a51ee0fb51a1149.zip
Tests: Removed visual tests for plugins that are being rewritten.
Diffstat (limited to 'tests/visual/droppable')
-rw-r--r--tests/visual/droppable/droppable.css3
-rw-r--r--tests/visual/droppable/droppable.html33
-rw-r--r--tests/visual/droppable/droppable_option_accept_default.html40
-rw-r--r--tests/visual/droppable/droppable_option_accept_function.html43
-rw-r--r--tests/visual/droppable/droppable_option_accept_selector.html41
-rw-r--r--tests/visual/droppable/droppable_ticket_4087.html51
-rw-r--r--tests/visual/droppable/droppable_ticket_4088.html69
7 files changed, 0 insertions, 280 deletions
diff --git a/tests/visual/droppable/droppable.css b/tests/visual/droppable/droppable.css
deleted file mode 100644
index cfe663ece..000000000
--- a/tests/visual/droppable/droppable.css
+++ /dev/null
@@ -1,3 +0,0 @@
-#draggables * { width: 100px; height: 20px; display: block; margin-bottom: 1em; background: #abc; }
-#droppable { width: 200px; }
-#droppable * { margin: 0.8em; padding: 0.4em; }
diff --git a/tests/visual/droppable/droppable.html b/tests/visual/droppable/droppable.html
deleted file mode 100644
index 0f4edfdd2..000000000
--- a/tests/visual/droppable/droppable.html
+++ /dev/null
@@ -1,33 +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.6.4.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() {
- $("#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>
-</body>
-</html>
diff --git a/tests/visual/droppable/droppable_option_accept_default.html b/tests/visual/droppable/droppable_option_accept_default.html
deleted file mode 100644
index 8e77a0121..000000000
--- a/tests/visual/droppable/droppable_option_accept_default.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta charset="UTF-8" />
- <title>Droppable Visual Test : Draggable option accept default</title>
- <link rel="stylesheet" href="../visual.css" type="text/css" />
- <link rel="stylesheet" href="droppable.css" type="text/css" />
- <link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css">
- <script type="text/javascript" src="../../../jquery-1.6.4.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() {
- $("#draggables *").draggable({
- revert: true
- });
- $("#droppable").droppable({
- drop: function(event, ui) {
- $(this).append('<div>' + ui.draggable.text() + '</div>');
- }
- });
- });
- </script>
-</head>
-<body>
-
-<div id="draggables">
- <div>Draggable div</div>
- <p>Draggable p</p>
- <span>Draggable span</div>
-</div>
-
-<div id="droppable" class="ui-widget-content ui-corner-all">
- <p class="ui-widget-header ui-corner-all"> Droppable </p>
-</div>
-</body>
-</html>
diff --git a/tests/visual/droppable/droppable_option_accept_function.html b/tests/visual/droppable/droppable_option_accept_function.html
deleted file mode 100644
index 9dbdcdffa..000000000
--- a/tests/visual/droppable/droppable_option_accept_function.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta charset="UTF-8" />
- <title>Droppable Visual Test : Draggable option accept function</title>
- <link rel="stylesheet" href="../visual.css" type="text/css" />
- <link rel="stylesheet" href="droppable.css" type="text/css" />
- <link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css">
- <script type="text/javascript" src="../../../jquery-1.6.4.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() {
- $("#draggables *").draggable({
- revert: true
- });
- $("#droppable").droppable({
- accept: function(draggable) {
- return (draggable.text() === 'Draggable p');
- },
- drop: function(event, ui) {
- $(this).append('<div>' + ui.draggable.text() + '</div>');
- }
- });
- });
- </script>
-</head>
-<body>
-
-<div id="draggables">
- <div>Draggable div</div>
- <p>Draggable p</p>
- <span>Draggable span</div>
-</div>
-
-<div id="droppable" class="ui-widget-content ui-corner-all">
- <p class="ui-widget-header ui-corner-all"> Droppable </p>
-</div>
-</body>
-</html>
diff --git a/tests/visual/droppable/droppable_option_accept_selector.html b/tests/visual/droppable/droppable_option_accept_selector.html
deleted file mode 100644
index 4733d1bdf..000000000
--- a/tests/visual/droppable/droppable_option_accept_selector.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta charset="UTF-8" />
- <title>Droppable Visual Test : Draggable option accept selector</title>
- <link rel="stylesheet" href="../visual.css" type="text/css" />
- <link rel="stylesheet" href="droppable.css" type="text/css" />
- <link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css">
- <script type="text/javascript" src="../../../jquery-1.6.4.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() {
- $("#draggables *").draggable({
- revert: true
- });
- $("#droppable").droppable({
- accept: 'p',
- drop: function(event, ui) {
- $(this).append('<div>' + ui.draggable.text() + '</div>');
- }
- });
- });
- </script>
-</head>
-<body>
-
-<div id="draggables">
- <div>Draggable div</div>
- <p>Draggable p</p>
- <span>Draggable span</div>
-</div>
-
-<div id="droppable" class="ui-widget-content ui-corner-all">
- <p class="ui-widget-header ui-corner-all"> Droppable </p>
-</div>
-</body>
-</html>
diff --git a/tests/visual/droppable/droppable_ticket_4087.html b/tests/visual/droppable/droppable_ticket_4087.html
deleted file mode 100644
index f3be61b1b..000000000
--- a/tests/visual/droppable/droppable_ticket_4087.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta charset="UTF-8" />
- <title>Droppable Visual Test - Droppable ticket 4087</title>
- <link type="text/css" href="../../../themes/base/jquery.ui.all.css" rel="stylesheet" />
- <script type="text/javascript" src="../../../jquery-1.6.4.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>
- <link type="text/css" href="../demos.css" rel="stylesheet" />
- <style type="text/css">
- #draggable { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 10px; }
- #droppable { width: 150px; height: 150px; padding: 0.5em; float: left; margin: 10px; }
- </style>
- <script type="text/javascript">
- $(function() {
- $("#draggable").draggable();
- $("#droppable").droppable({
- drop: function(event, ui) {
- ui.draggable.remove();
- }
- });
- });
- </script>
-</head>
-<body>
-
-<h1>
-Ticket <a href="http://dev.jqueryui.com/ticket/4087">#4087</a> - Removing ui.draggable immediately after the drop callback raises an error.
-</h2>
-<h2>
-TEST: Drag 'Drag me' to the div labelled 'Drop here'
-</h2>
-
-<div id="draggable" class="ui-widget-content">
- <p>Drag me</p>
-</div>
-
-<div id="droppable" class="ui-widget-header">
- <p>Drop here</p>
-</div>
-
-<h3 style="clear:left;">
-ASSERT: No exception '$(this).data("draggable") is undefined'
-</h3>
-
-</body>
-</html>
diff --git a/tests/visual/droppable/droppable_ticket_4088.html b/tests/visual/droppable/droppable_ticket_4088.html
deleted file mode 100644
index 54cf3ffe2..000000000
--- a/tests/visual/droppable/droppable_ticket_4088.html
+++ /dev/null
@@ -1,69 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta charset="UTF-8" />
- <title>Droppable Visual Test - Droppable ticket 4088</title>
- <link type="text/css" href="../../../themes/base/jquery.ui.all.css" rel="stylesheet" />
- <script type="text/javascript" src="../../../jquery-1.6.4.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.sortable.js"></script>
- <script type="text/javascript" src="../../../ui/jquery.ui.droppable.js"></script>
- <link type="text/css" href="../demos.css" rel="stylesheet" />
- <style type="text/css">
- #sortable { list-style-type: none; margin: 0; padding: 0; width: 60%; }
- #sortable li { margin: 0 3px 3px 3px; padding: 0.4em; padding-left: 1.5em; font-size: 1.4em; height: 18px; }
- #sortable li span { position: absolute; margin-left: -1.3em; }
-
- #trash { width: 58%; height: 8em; padding: 1%; margin-top: 1%; }
- #trash h4 { line-height: 16px; margin: 0 0 0.4em; }
- #trash h4 .ui-icon { float: left; }
- </style>
- <script type="text/javascript">
- $(function() {
- $("#sortable").sortable();
- $("#trash").droppable({
- accept: '#sortable > li',
- activeClass: 'ui-state-highlight',
- drop: function(ev, ui) {
- if (ui.draggable.is('#special')) {
- setTimeout(function() { ui.draggable.remove(); }, 1);
- } else {
- ui.draggable.remove();
- ui.draggable.html('<strong>I was dropped and removed, but still here I am!</strong>');
- }
- }
- });
- });
- </script>
-</head>
-<body>
-
-<h1>
-Ticket <a href="http://dev.jqueryui.com/ticket/4088">#4088</a> - Unable to remove() ui.draggable (sortable item) immediately after the drop callback.
-</h2>
-<h2>
-TEST: Drag 'Special Item' to the div labelled 'Drop here'
-</h2>
-<h2>
-TEST: Drag a 'Normal Item' to the div labelled 'Drop here'
-</h2>
-
-<ul id="sortable">
- <li class="ui-state-default" id="special"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Special Item</li>
- <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Normal Item 1</li>
- <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Normal Item 2</li>
- <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Normal Item 3</li>
-</ul>
-
-<div id="trash" class="ui-widget-content ui-state-default">
- <h4 class="ui-widget-header"><span class="ui-icon ui-icon-trash">Trash</span> Drop here</h4>
-</div>
-
-<h3>
-ASSERT: The dropped item is removed from the original list and the following text does not appear: "<strong>I was dropped and removed, but still here I am!</strong>"
-</h3>
-
-</body>
-</html>