Last change
on this file since 24245 was 24245, checked in by sjb48, 13 years ago |
Oran code for supporting format changes to document.
|
-
Property svn:executable
set to
*
|
File size:
727 bytes
|
Line | |
---|
1 | /*
|
---|
2 | * dialog_tickets.js
|
---|
3 | */
|
---|
4 | (function($) {
|
---|
5 |
|
---|
6 | module("dialog: tickets");
|
---|
7 |
|
---|
8 | test("#4826: setting resizable false toggles resizable on dialog", function() {
|
---|
9 | expect(6);
|
---|
10 |
|
---|
11 | el = $('<div></div>').dialog({ resizable: false });
|
---|
12 | shouldnotresize("[default]");
|
---|
13 | for (var i=0; i<2; i++) {
|
---|
14 | el.dialog('close').dialog('open');
|
---|
15 | shouldnotresize('initialized with resizable false toggle ('+ (i+1) +')');
|
---|
16 | }
|
---|
17 | el.remove();
|
---|
18 |
|
---|
19 | el = $('<div></div>').dialog({ resizable: true });
|
---|
20 | shouldresize("[default]");
|
---|
21 | for (var i=0; i<2; i++) {
|
---|
22 | el.dialog('close').dialog('option', 'resizable', false).dialog('open');
|
---|
23 | shouldnotresize('set option resizable false toggle ('+ (i+1) +')');
|
---|
24 | }
|
---|
25 | el.remove();
|
---|
26 |
|
---|
27 | });
|
---|
28 |
|
---|
29 | })(jQuery);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.