/* * dialog_tickets.js */ (function($) { module("dialog: tickets"); test("#4826: setting resizable false toggles resizable on dialog", function() { expect(6); el = $('
').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 = $('').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);