aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorCa-Phun Ung <pazu2k@gmail.com>2009-09-15 16:14:15 +0000
committerCa-Phun Ung <pazu2k@gmail.com>2009-09-15 16:14:15 +0000
commitf6b3e0c6e9b52e0c2aba7ae7224b6a1c9e2deb90 (patch)
treeae81ea52427ea5bac20d85f11234f89bf04e2e5e /tests/unit
parent93eea739fed005914b6e119c0587876aa62bf0e4 (diff)
downloadjquery-ui-f6b3e0c6e9b52e0c2aba7ae7224b6a1c9e2deb90.tar.gz
jquery-ui-f6b3e0c6e9b52e0c2aba7ae7224b6a1c9e2deb90.zip
dialog: added unit test for ticket #4826
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/dialog/dialog_tickets.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/unit/dialog/dialog_tickets.js b/tests/unit/dialog/dialog_tickets.js
index 69697f9bd..d2fe271e6 100644
--- a/tests/unit/dialog/dialog_tickets.js
+++ b/tests/unit/dialog/dialog_tickets.js
@@ -5,4 +5,25 @@
module("dialog: tickets");
+test("#4826: setting resizable false toggles resizable on dialog", function() {
+ expect(6);
+
+ el = $('<div></div>').dialog({ resizable: false });
+ shouldnotresize("[default]");
+ for (var i=0; i<2; i++) {
+ el.dialog('close').dialog('open');
+ shouldnotresize('initialized with resizable false toggle ('+ (i+1) +')');
+ }
+ el.remove();
+
+ el = $('<div></div>').dialog({ resizable: true });
+ shouldresize("[default]");
+ for (var i=0; i<2; i++) {
+ el.dialog('close').dialog('option', 'resizable', false).dialog('open');
+ shouldnotresize('set option resizable false toggle ('+ (i+1) +')');
+ }
+ el.remove();
+
+});
+
})(jQuery);