From: Scott González Date: Wed, 9 Nov 2011 16:38:16 +0000 (-0500) Subject: Effects tests: Proper detection of fixed position support in jQuery 1.7. X-Git-Tag: 1.9m7~151 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=31b176106fff6e25de87469644885f9a3fa98bdc;p=jquery-ui.git Effects tests: Proper detection of fixed position support in jQuery 1.7. --- 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" ); } });