aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/dialog/dialog_options.js
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2012-12-07 20:06:29 -0500
committerMike Sherov <mike.sherov@gmail.com>2012-12-07 20:06:29 -0500
commite83a89dd7df3009d46ddd9e7e1cabf42e901e397 (patch)
tree8ada242bd81857ace993ce09625d06236530cc4a /tests/unit/dialog/dialog_options.js
parentd4551bc3b8dfbfd925700dcb9f71e7729b125889 (diff)
downloadjquery-ui-e83a89dd7df3009d46ddd9e7e1cabf42e901e397.tar.gz
jquery-ui-e83a89dd7df3009d46ddd9e7e1cabf42e901e397.zip
Dev: Remove *_tickets.js test files and move the associated tests to the proper locations.
Diffstat (limited to 'tests/unit/dialog/dialog_options.js')
-rw-r--r--tests/unit/dialog/dialog_options.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/unit/dialog/dialog_options.js b/tests/unit/dialog/dialog_options.js
index 19e69b29a..2ccbed573 100644
--- a/tests/unit/dialog/dialog_options.js
+++ b/tests/unit/dialog/dialog_options.js
@@ -478,4 +478,26 @@ test("width", function() {
el.remove();
});
+test("#4826: setting resizable false toggles resizable on dialog", function() {
+ expect(6);
+ var i,
+ el = $('<div></div>').dialog({ resizable: false });
+
+ TestHelpers.dialog.shouldResize(el, 0, 0, "[default]");
+ for (i=0; i<2; i++) {
+ el.dialog('close').dialog('open');
+ TestHelpers.dialog.shouldResize(el, 0, 0, 'initialized with resizable false toggle ('+ (i+1) +')');
+ }
+ el.remove();
+
+ el = $('<div></div>').dialog({ resizable: true });
+ TestHelpers.dialog.shouldResize(el, 50, 50, "[default]");
+ for (i=0; i<2; i++) {
+ el.dialog('close').dialog('option', 'resizable', false).dialog('open');
+ TestHelpers.dialog.shouldResize(el, 0, 0, 'set option resizable false toggle ('+ (i+1) +')');
+ }
+ el.remove();
+
+});
+
})(jQuery);