]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Fixed a broken maxHeight test.
authorScott González <scott.gonzalez@gmail.com>
Thu, 2 Sep 2010 12:41:28 +0000 (08:41 -0400)
committerScott González <scott.gonzalez@gmail.com>
Thu, 2 Sep 2010 12:41:28 +0000 (08:41 -0400)
The size tests are fragile because they require the browser window to be large enough to contain the dialog.

tests/unit/dialog/dialog_options.js

index 2d0cbe9071f38494179c951b53c182727cd06b8d..277b8f39fcb62a05ed1710426c2da09346cb787e 100644 (file)
@@ -199,7 +199,7 @@ test("maxHeight", function() {
        el.remove();
 
        el = $('<div></div>').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();
 });