diff options
author | Ca-Phun Ung <pazu2k@gmail.com> | 2009-09-15 14:43:37 +0000 |
---|---|---|
committer | Ca-Phun Ung <pazu2k@gmail.com> | 2009-09-15 14:43:37 +0000 |
commit | bc63b0eed6198c0e2d7b2f0eab10774c937d8e28 (patch) | |
tree | 245e523f54756fe38786656b3c5c8cd59cb93060 /tests/visual/dialog | |
parent | 7f2683aa81fff39d2922ddbc1395a07ab68b39a2 (diff) | |
download | jquery-ui-bc63b0eed6198c0e2d7b2f0eab10774c937d8e28.tar.gz jquery-ui-bc63b0eed6198c0e2d7b2f0eab10774c937d8e28.zip |
dialog: added visual test for ticket #4826 - Setting resizable false toggles resizable on dialog
Diffstat (limited to 'tests/visual/dialog')
-rw-r--r-- | tests/visual/dialog/dialog_ticket_4826.html | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/visual/dialog/dialog_ticket_4826.html b/tests/visual/dialog/dialog_ticket_4826.html new file mode 100644 index 000000000..267e862f7 --- /dev/null +++ b/tests/visual/dialog/dialog_ticket_4826.html @@ -0,0 +1,42 @@ +<!doctype html> +<html lang="en"> +<head> + <title>Dialog Visual Test : Dialog ticket #4826</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.2.js"></script> + <script type="text/javascript" src="../../../ui/ui.core.js"></script> + <script type="text/javascript" src="../../../ui/ui.draggable.js"></script> + <script type="text/javascript" src="../../../ui/ui.position.js"></script> + <script type="text/javascript" src="../../../ui/ui.resizable.js"></script> + <script type="text/javascript" src="../../../ui/ui.stackfix.js"></script> + <script type="text/javascript" src="../../../ui/ui.dialog.js"></script> + <script type="text/javascript"> + $(function() { + + $('#dialog').dialog({ resizable: false }); + + $('#handle').click(function() { + $('#dialog') + .dialog('option', { + resizable: false + }) + .dialog('open'); + + return false; + }); + + }); + </script> +</head> +<body> + +<h1 class="ui-widget-header"><a href="http://dev.jqueryui.com/ticket/4826">#4826 - Setting resizable false toggles resizable on dialog</a></h1> + +<button id="handle">Click me!</button> +<div id="dialog" title="Dialog Title"> + <p id="msg">I should <strong>NEVER</strong> be resizable!</p> +</div> + +</body> +</html>
\ No newline at end of file |