aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/unit/effects/effects_scale.js14
1 files changed, 7 insertions, 7 deletions
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 = $( "<div>" )
+ .css({
+ position: "fixed",
+ top: 10
+ })
+ .appendTo( "body" );
+ if ( fixedElem.offset().top === 10 ) {
suite( "fixed" );
}
});