aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2009-02-07 17:15:47 +0000
committerRichard Worth <rdworth@gmail.com>2009-02-07 17:15:47 +0000
commitc55162bd726fd06a53220b1cb110fce7a517c622 (patch)
tree82133f0c89a54fddb39c180ea8d309ab92b188bd /tests
parent01801eaa21b22bab351eab0b7e7cdd6cb2c0e2dc (diff)
downloadjquery-ui-c55162bd726fd06a53220b1cb110fce7a517c622.tar.gz
jquery-ui-c55162bd726fd06a53220b1cb110fce7a517c622.zip
sortable visual tests: option revert
Diffstat (limited to 'tests')
-rw-r--r--tests/visual/sortable/sortable_option_revert_false.html28
-rw-r--r--tests/visual/sortable/sortable_option_revert_true.html28
2 files changed, 56 insertions, 0 deletions
diff --git a/tests/visual/sortable/sortable_option_revert_false.html b/tests/visual/sortable/sortable_option_revert_false.html
new file mode 100644
index 000000000..9e32a496b
--- /dev/null
+++ b/tests/visual/sortable/sortable_option_revert_false.html
@@ -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
index 000000000..8f0c42e7c
--- /dev/null
+++ b/tests/visual/sortable/sortable_option_revert_true.html
@@ -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>