]> source.dussan.org Git - jquery-ui.git/commitdiff
sortable visual tests: option revert
authorRichard Worth <rdworth@gmail.com>
Sat, 7 Feb 2009 17:15:47 +0000 (17:15 +0000)
committerRichard Worth <rdworth@gmail.com>
Sat, 7 Feb 2009 17:15:47 +0000 (17:15 +0000)
tests/visual/sortable/sortable_option_revert_false.html [new file with mode: 0644]
tests/visual/sortable/sortable_option_revert_true.html [new file with mode: 0644]

diff --git a/tests/visual/sortable/sortable_option_revert_false.html b/tests/visual/sortable/sortable_option_revert_false.html
new file mode 100644 (file)
index 0000000..9e32a49
--- /dev/null
@@ -0,0 +1,28 @@
+<!doctype html>
+<html lang="en">
+<head>
+       <title>Sortable Visual Test : Sortable option revert false</title>
+       <link rel="stylesheet" href="../visual.css" type="text/css" />
+       <link rel="stylesheet" href="../../../themes/base/ui.all.css" type="text/css" />
+       <script type="text/javascript" src="../../../jquery-1.3.1.js"></script>
+       <script type="text/javascript" src="../../../ui/ui.core.js"></script>
+       <script type="text/javascript" src="../../../ui/ui.sortable.js"></script>
+       <script type="text/javascript">
+       $(function() {
+               $("#sortable").sortable({
+                       revert: false
+               });
+       });
+       </script>
+</head>
+
+<body>
+
+<div id="sortable">
+       <div>Sortable 1</div>
+       <div>Sortable 2</div>
+       <div>Sortable 3</div>
+</div>
+
+</body>
+</html>
diff --git a/tests/visual/sortable/sortable_option_revert_true.html b/tests/visual/sortable/sortable_option_revert_true.html
new file mode 100644 (file)
index 0000000..8f0c42e
--- /dev/null
@@ -0,0 +1,28 @@
+<!doctype html>
+<html lang="en">
+<head>
+       <title>Sortable Visual Test : Sortable option revert true</title>
+       <link rel="stylesheet" href="../visual.css" type="text/css" />
+       <link rel="stylesheet" href="../../../themes/base/ui.all.css" type="text/css" />
+       <script type="text/javascript" src="../../../jquery-1.3.1.js"></script>
+       <script type="text/javascript" src="../../../ui/ui.core.js"></script>
+       <script type="text/javascript" src="../../../ui/ui.sortable.js"></script>
+       <script type="text/javascript">
+       $(function() {
+               $("#sortable").sortable({
+                       revert: true
+               });
+       });
+       </script>
+</head>
+
+<body>
+
+<div id="sortable">
+       <div>Sortable 1</div>
+       <div>Sortable 2</div>
+       <div>Sortable 3</div>
+</div>
+
+</body>
+</html>