From 67540fd539b660c0eb3925d063014ff4e6c91667 Mon Sep 17 00:00:00 2001 From: Scott González Date: Sat, 16 Jun 2012 08:19:41 -0400 Subject: Effects tests: Don't use internal jQuery properties to detect support for fixed positioning. --- tests/unit/effects/effects_scale.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/unit/effects/effects_scale.js b/tests/unit/effects/effects_scale.js index df61d9e91..f06fa0f46 100644 --- a/tests/unit/effects/effects_scale.js +++ b/tests/unit/effects/effects_scale.js @@ -53,13 +53,13 @@ function suite( position ) { $(function() { suite( "absolute" ); suite( "relative" ); - var fixed = $.support.fixedPosition; - // jQuery < 1.7 uses $.offset.supportsFixedPosition - if ( fixed === undefined ) { - $.offset.initialize(); - fixed = $.offset.supportsFixedPosition; - } - if ( fixed ) { + var fixedElem = $( "
" ) + .css({ + position: "fixed", + top: 10 + }) + .appendTo( "body" ); + if ( fixedElem.offset().top === 10 ) { suite( "fixed" ); } }); -- cgit v1.2.3