aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual/dialog
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2009-09-25 00:03:15 +0000
committerRichard Worth <rdworth@gmail.com>2009-09-25 00:03:15 +0000
commit0cbda3aaf17291d4457a6a3d5c3628227a5470fa (patch)
treeff022687e3bf0a97990506f6fb1f4a8fcffcc35b /tests/visual/dialog
parent217266fb62b821e8edc0aeb37428a7370848e060 (diff)
downloadjquery-ui-0cbda3aaf17291d4457a6a3d5c3628227a5470fa.tar.gz
jquery-ui-0cbda3aaf17291d4457a6a3d5c3628227a5470fa.zip
dialog: added a visual test page for the buttons option
Diffstat (limited to 'tests/visual/dialog')
-rw-r--r--tests/visual/dialog/dialog_option_buttons_OK_Cancel.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/visual/dialog/dialog_option_buttons_OK_Cancel.html b/tests/visual/dialog/dialog_option_buttons_OK_Cancel.html
new file mode 100644
index 000000000..358d60226
--- /dev/null
+++ b/tests/visual/dialog/dialog_option_buttons_OK_Cancel.html
@@ -0,0 +1,34 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <title>Dialog Visual Test : Dialog option buttons OK Cancel</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/jquery.ui.core.js"></script>
+ <script type="text/javascript" src="../../../ui/jquery.ui.draggable.js"></script>
+ <script type="text/javascript" src="../../../ui/jquery.ui.position.js"></script>
+ <script type="text/javascript" src="../../../ui/jquery.ui.resizable.js"></script>
+ <script type="text/javascript" src="../../../ui/jquery.ui.stackfix.js"></script>
+ <script type="text/javascript" src="../../../ui/jquery.ui.dialog.js"></script>
+ <script type="text/javascript">
+ $(function() {
+ $("#dialog").dialog({
+ buttons: {
+ "OK": function() { $(this).dialog('close'); },
+ "Cancel": function() { $(this).dialog('close'); }
+ }
+ });
+ });
+ </script>
+</head>
+<body>
+
+<div id="dialog" title="Dialog Title">
+ <p>
+ Dialog Content
+ </p>
+</div>
+
+</body>
+</html>