From 31b176106fff6e25de87469644885f9a3fa98bdc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Wed, 9 Nov 2011 11:38:16 -0500 Subject: [PATCH] Effects tests: Proper detection of fixed position support in jQuery 1.7. --- tests/unit/effects/effects_scale.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/unit/effects/effects_scale.js b/tests/unit/effects/effects_scale.js index a607361e6..b9bb91c2e 100644 --- a/tests/unit/effects/effects_scale.js +++ b/tests/unit/effects/effects_scale.js @@ -54,8 +54,13 @@ function suite( position ) { $(function() { suite( "absolute" ); suite( "relative" ); - $.offset.initialize(); - if ( $.offset.supportsFixedPosition ) { + var fixed = $.support.fixedPosition; + // jQuery < 1.7 uses $.offset.supportsFixedPosition + if ( fixed === undefined ) { + $.offset.initialize(); + fixed = $.offset.supportsFixedPosition; + } + if ( fixed ) { suite( "fixed" ); } }); -- 2.39.5