diff options
author | jzaefferer <joern.zaefferer@gmail.com> | 2010-07-15 09:31:36 +0200 |
---|---|---|
committer | jzaefferer <joern.zaefferer@gmail.com> | 2010-07-15 09:31:36 +0200 |
commit | 56aecac811d09232ebb22715128436f7e5ef736d (patch) | |
tree | 2fa302c45334bc35bc9a435ff1ef70f08c4fb900 | |
parent | 6b36499c71991eb6a5a3aab14d2401e1e9ca2f2c (diff) | |
download | jquery-ui-56aecac811d09232ebb22715128436f7e5ef736d.tar.gz jquery-ui-56aecac811d09232ebb22715128436f7e5ef736d.zip |
Updated test for default position option: Reference using-implementation, as QUnit compares functions only by reference
-rw-r--r-- | tests/unit/dialog/dialog_defaults.js | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/unit/dialog/dialog_defaults.js b/tests/unit/dialog/dialog_defaults.js index cba514fe7..612fd58c8 100644 --- a/tests/unit/dialog/dialog_defaults.js +++ b/tests/unit/dialog/dialog_defaults.js @@ -22,13 +22,7 @@ var dialog_defaults = { 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); - } - } + using: $.ui.dialog.prototype.options.position.using }, resizable: true, show: null, |