From: Scott González Date: Thu, 2 Sep 2010 12:41:28 +0000 (-0400) Subject: Dialog: Fixed a broken maxHeight test. X-Git-Tag: 1.8.5~35 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2365d03cef512bc7651b3a4796236400112cd2c2;p=jquery-ui.git Dialog: Fixed a broken maxHeight test. The size tests are fragile because they require the browser window to be large enough to contain the dialog. --- diff --git a/tests/unit/dialog/dialog_options.js b/tests/unit/dialog/dialog_options.js index 2d0cbe907..277b8f39f 100644 --- a/tests/unit/dialog/dialog_options.js +++ b/tests/unit/dialog/dialog_options.js @@ -199,7 +199,7 @@ test("maxHeight", function() { el.remove(); el = $('
').dialog({ maxHeight: 400 }).dialog('option', 'maxHeight', 600); - drag('.ui-resizable-n', -1000, -1000); + drag('.ui-resizable-s', 1000, 1000); equals(heightAfter, 600, "maxHeight"); el.remove(); });