From d80e2236f6ac48a0ced9a566bcb693471a82f60a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Tue, 7 Sep 2010 08:58:20 -0400 Subject: [PATCH] Dialog: Reduced size of dialogs in height/width tests. --- tests/unit/dialog/dialog_options.js | 32 ++++++++++++++--------------- 1 file changed, 16 insertions(+), 16 deletions(-) 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(); }); -- 2.39.5