From 56aecac811d09232ebb22715128436f7e5ef736d Mon Sep 17 00:00:00 2001
From: jzaefferer <joern.zaefferer@gmail.com>
Date: Thu, 15 Jul 2010 09:31:36 +0200
Subject: Updated test for default position option: Reference
 using-implementation, as QUnit compares functions only by reference

---
 tests/unit/dialog/dialog_defaults.js | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

(limited to 'tests/unit/dialog')

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,
-- 
cgit v1.2.3