aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-07-15 09:31:36 +0200
committerjzaefferer <joern.zaefferer@gmail.com>2010-07-15 09:31:36 +0200
commit56aecac811d09232ebb22715128436f7e5ef736d (patch)
tree2fa302c45334bc35bc9a435ff1ef70f08c4fb900
parent6b36499c71991eb6a5a3aab14d2401e1e9ca2f2c (diff)
downloadjquery-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.js8
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,