aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-11-09 11:38:16 -0500
committerScott González <scott.gonzalez@gmail.com>2011-11-09 11:38:16 -0500
commit31b176106fff6e25de87469644885f9a3fa98bdc (patch)
treebf9ac1db24cd91910c7457bc292b889855b95809 /tests
parent50dab05784f0d9e98cbf46a975375badb484610b (diff)
downloadjquery-ui-31b176106fff6e25de87469644885f9a3fa98bdc.tar.gz
jquery-ui-31b176106fff6e25de87469644885f9a3fa98bdc.zip
Effects tests: Proper detection of fixed position support in jQuery 1.7.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/effects/effects_scale.js9
1 files 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" );
}
});