diff options
author | Richard Worth <rdworth@gmail.com> | 2009-02-08 06:10:29 +0000 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2009-02-08 06:10:29 +0000 |
commit | 625d216d7db6312dacc01ffbc749716f8947b6c5 (patch) | |
tree | 3ab025dced33696aadce5b9d97a4ba358a4e9625 /tests | |
parent | e4c5712974a98733e04a50e183e6ad077d959f2a (diff) | |
download | jquery-ui-625d216d7db6312dacc01ffbc749716f8947b6c5.tar.gz jquery-ui-625d216d7db6312dacc01ffbc749716f8947b6c5.zip |
resizable visual tests: added option preventDefault tests
Diffstat (limited to 'tests')
3 files changed, 49 insertions, 8 deletions
diff --git a/tests/visual/resizable/resizable.html b/tests/visual/resizable/resizable.html index 2074fca79..3e2a7334a 100644 --- a/tests/visual/resizable/resizable.html +++ b/tests/visual/resizable/resizable.html @@ -1,8 +1,8 @@ <!doctype html> <html lang="en"> <head> - <title>Simple Resizable</title> - <link rel="stylesheet" href="../all.css" type="text/css"> + <title>Resizable Visual Test : Default</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> @@ -15,12 +15,7 @@ </head> <body> -<ul class="plugins"> -<li class="plugin"> - Resizable - <div id="resizable"></div> -</li> -</ul> +<div id="resizable">Resizable</div> </body> </html> diff --git a/tests/visual/resizable/resizable_option_preventDefault_false.html b/tests/visual/resizable/resizable_option_preventDefault_false.html new file mode 100644 index 000000000..5d22f6b38 --- /dev/null +++ b/tests/visual/resizable/resizable_option_preventDefault_false.html @@ -0,0 +1,23 @@ +<!doctype html> +<html lang="en"> +<head> + <title>Resizable Visual Test : Resizable option preventDefault 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.resizable.js"></script> + <script type="text/javascript"> + $(function() { + $("#resizable").resizable({ + preventDefault: false + }); + }); + </script> +</head> +<body> + +<textarea id="resizable">Resizable</texarea> + +</body> +</html> diff --git a/tests/visual/resizable/resizable_option_preventDefault_true.html b/tests/visual/resizable/resizable_option_preventDefault_true.html new file mode 100644 index 000000000..0d153b6e9 --- /dev/null +++ b/tests/visual/resizable/resizable_option_preventDefault_true.html @@ -0,0 +1,23 @@ +<!doctype html> +<html lang="en"> +<head> + <title>Resizable Visual Test : Resizable option preventDefault 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.resizable.js"></script> + <script type="text/javascript"> + $(function() { + $("#resizable").resizable({ + preventDefault: true + }); + }); + </script> +</head> +<body> + +<textarea id="resizable">Resizable</texarea> + +</body> +</html> |