From: Scott González Date: Tue, 7 Sep 2010 12:58:20 +0000 (-0400) Subject: Dialog: Reduced size of dialogs in height/width tests. X-Git-Tag: 1.8.5~24 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d80e2236f6ac48a0ced9a566bcb693471a82f60a;p=jquery-ui.git Dialog: Reduced size of dialogs in height/width tests. --- diff --git a/tests/unit/dialog/dialog_options.js b/tests/unit/dialog/dialog_options.js index 277b8f39f..8e597ffe7 100644 --- a/tests/unit/dialog/dialog_options.js +++ b/tests/unit/dialog/dialog_options.js @@ -175,51 +175,51 @@ test("height", function() { equals(dlg().height(), dialog_defaults.minHeight, "default height"); el.remove(); - el = $('
').dialog({ height: 437 }); - equals(dlg().height(), 437, "explicit height"); + el = $('
').dialog({ height: 237 }); + equals(dlg().height(), 237, "explicit height"); el.remove(); el = $('
').dialog(); - el.dialog('option', 'height', 438); - equals(dlg().height(), 438, "explicit height set after init"); + el.dialog('option', 'height', 238); + equals(dlg().height(), 238, "explicit height set after init"); el.remove(); }); test("maxHeight", function() { expect(3); - el = $('
').dialog({ maxHeight: 400 }); + el = $('
').dialog({ maxHeight: 200 }); drag('.ui-resizable-s', 1000, 1000); - equals(heightAfter, 400, "maxHeight"); + equals(heightAfter, 200, "maxHeight"); el.remove(); - el = $('
').dialog({ maxHeight: 400 }); + el = $('
').dialog({ maxHeight: 200 }); drag('.ui-resizable-n', -1000, -1000); - equals(heightAfter, 400, "maxHeight"); + equals(heightAfter, 200, "maxHeight"); el.remove(); - el = $('
').dialog({ maxHeight: 400 }).dialog('option', 'maxHeight', 600); + el = $('
').dialog({ maxHeight: 200 }).dialog('option', 'maxHeight', 300); drag('.ui-resizable-s', 1000, 1000); - equals(heightAfter, 600, "maxHeight"); + equals(heightAfter, 300, "maxHeight"); el.remove(); }); test("maxWidth", function() { expect(3); - el = $('
').dialog({ maxWidth: 400 }); + el = $('
').dialog({ maxWidth: 200 }); drag('.ui-resizable-e', 1000, 1000); - equals(widthAfter, 400, "maxWidth"); + equals(widthAfter, 200, "maxWidth"); el.remove(); - el = $('
').dialog({ maxWidth: 400 }); + el = $('
').dialog({ maxWidth: 200 }); drag('.ui-resizable-w', -1000, -1000); - equals(widthAfter, 400, "maxWidth"); + equals(widthAfter, 200, "maxWidth"); el.remove(); - el = $('
').dialog({ maxWidth: 400 }).dialog('option', 'maxWidth', 600); + el = $('
').dialog({ maxWidth: 200 }).dialog('option', 'maxWidth', 300); drag('.ui-resizable-w', -1000, -1000); - equals(widthAfter, 600, "maxWidth"); + equals(widthAfter, 300, "maxWidth"); el.remove(); });