Skip to content
Permalink
Browse files

Dialog: Updated test for default position option. QUnit still fails t…

…he test though.
  • Loading branch information...
scottgonzalez committed Jul 14, 2010
1 parent 6de9a53 commit 96e78a2cb7968fead62cfebd7640d3b96246f8dd
Showing with 13 additions and 1 deletion.
  1. +13 −1 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,

2 comments on commit 96e78a2

@bostanio

This comment has been minimized.

Copy link
Contributor

replied Jul 17, 2010

I have a fix for this test framework that will fix this failing test. I'll put it up and send the pull request soon.

@jzaefferer

This comment has been minimized.

Copy link
Member

replied Jul 17, 2010

@bostanio: Send requests about QUnit to http://github.com/jquery/qunit

Please sign in to comment.
You can’t perform that action at this time.