mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
dialog: added unit test for ticket #4826
This commit is contained in:
parent
93eea739fe
commit
f6b3e0c6e9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user