diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-07-14 16:38:16 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-07-14 16:40:43 -0400 |
commit | 96e78a2cb7968fead62cfebd7640d3b96246f8dd (patch) | |
tree | 244ff1c7e0f338cd6233b078f29af05d7efadce5 /tests/unit | |
parent | 6de9a5368c3e0523f91f08e7b1516549ce006f98 (diff) | |
download | jquery-ui-96e78a2cb7968fead62cfebd7640d3b96246f8dd.tar.gz jquery-ui-96e78a2cb7968fead62cfebd7640d3b96246f8dd.zip |
Dialog: Updated test for default position option. QUnit still fails the test though.
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/dialog/dialog_defaults.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/unit/dialog/dialog_defaults.js b/tests/unit/dialog/dialog_defaults.js index 999021d95..cba514fe7 100644 --- a/tests/unit/dialog/dialog_defaults.js +++ b/tests/unit/dialog/dialog_defaults.js @@ -17,7 +17,19 @@ var dialog_defaults = { minHeight: 150, minWidth: 150, modal: false, - position: 'center', + position: { + my: 'center', + at: 'center', + of: window, + collision: 'fit', + // ensure that the titlebar is never outside the document + using: function(pos) { + var topOffset = $(this).css(pos).offset().top; + if (topOffset < 0) { + $(this).css('top', pos.top - topOffset); + } + } + }, resizable: true, show: null, stack: true, |