Skip to content

Commit d80e223

Browse files
committed
Dialog: Reduced size of dialogs in height/width tests.
1 parent 1b31765 commit d80e223

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

tests/unit/dialog/dialog_options.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -175,51 +175,51 @@ test("height", function() {
175175
equals(dlg().height(), dialog_defaults.minHeight, "default height");
176176
el.remove();
177177

178-
el = $('<div></div>').dialog({ height: 437 });
179-
equals(dlg().height(), 437, "explicit height");
178+
el = $('<div></div>').dialog({ height: 237 });
179+
equals(dlg().height(), 237, "explicit height");
180180
el.remove();
181181

182182
el = $('<div></div>').dialog();
183-
el.dialog('option', 'height', 438);
184-
equals(dlg().height(), 438, "explicit height set after init");
183+
el.dialog('option', 'height', 238);
184+
equals(dlg().height(), 238, "explicit height set after init");
185185
el.remove();
186186
});
187187

188188
test("maxHeight", function() {
189189
expect(3);
190190

191-
el = $('<div></div>').dialog({ maxHeight: 400 });
191+
el = $('<div></div>').dialog({ maxHeight: 200 });
192192
drag('.ui-resizable-s', 1000, 1000);
193-
equals(heightAfter, 400, "maxHeight");
193+
equals(heightAfter, 200, "maxHeight");
194194
el.remove();
195195

196-
el = $('<div></div>').dialog({ maxHeight: 400 });
196+
el = $('<div></div>').dialog({ maxHeight: 200 });
197197
drag('.ui-resizable-n', -1000, -1000);
198-
equals(heightAfter, 400, "maxHeight");
198+
equals(heightAfter, 200, "maxHeight");
199199
el.remove();
200200

201-
el = $('<div></div>').dialog({ maxHeight: 400 }).dialog('option', 'maxHeight', 600);
201+
el = $('<div></div>').dialog({ maxHeight: 200 }).dialog('option', 'maxHeight', 300);
202202
drag('.ui-resizable-s', 1000, 1000);
203-
equals(heightAfter, 600, "maxHeight");
203+
equals(heightAfter, 300, "maxHeight");
204204
el.remove();
205205
});
206206

207207
test("maxWidth", function() {
208208
expect(3);
209209

210-
el = $('<div></div>').dialog({ maxWidth: 400 });
210+
el = $('<div></div>').dialog({ maxWidth: 200 });
211211
drag('.ui-resizable-e', 1000, 1000);
212-
equals(widthAfter, 400, "maxWidth");
212+
equals(widthAfter, 200, "maxWidth");
213213
el.remove();
214214

215-
el = $('<div></div>').dialog({ maxWidth: 400 });
215+
el = $('<div></div>').dialog({ maxWidth: 200 });
216216
drag('.ui-resizable-w', -1000, -1000);
217-
equals(widthAfter, 400, "maxWidth");
217+
equals(widthAfter, 200, "maxWidth");
218218
el.remove();
219219

220-
el = $('<div></div>').dialog({ maxWidth: 400 }).dialog('option', 'maxWidth', 600);
220+
el = $('<div></div>').dialog({ maxWidth: 200 }).dialog('option', 'maxWidth', 300);
221221
drag('.ui-resizable-w', -1000, -1000);
222-
equals(widthAfter, 600, "maxWidth");
222+
equals(widthAfter, 300, "maxWidth");
223223
el.remove();
224224
});
225225

0 commit comments

Comments
 (0)