aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-06-16 08:19:41 -0400
committerScott González <scott.gonzalez@gmail.com>2012-06-16 08:19:41 -0400
commit67540fd539b660c0eb3925d063014ff4e6c91667 (patch)
tree66a17506b0b1d1cd77d49595f371a2fb5996b86e /tests
parent05adce8a897ecd627f6cfbde63646b595abb4363 (diff)
downloadjquery-ui-67540fd539b660c0eb3925d063014ff4e6c91667.tar.gz
jquery-ui-67540fd539b660c0eb3925d063014ff4e6c91667.zip
Effects tests: Don't use internal jQuery properties to detect support for fixed positioning.
Diffstat (limited to 'tests')
-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" );
}
});