aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-10-01 16:52:54 -0400
committerScott González <scott.gonzalez@gmail.com>2012-10-01 16:52:54 -0400
commit2c50b1b8b58bc7ca6a965e4deff480a1c733766b (patch)
treec1eb8f78433bbd8f89435c842f0eff991466e997 /tests
parentd20f05ea37f17ec7799fb4d989c2ecba8689b096 (diff)
downloadjquery-ui-2c50b1b8b58bc7ca6a965e4deff480a1c733766b.tar.gz
jquery-ui-2c50b1b8b58bc7ca6a965e4deff480a1c733766b.zip
Accordion: Only adjust height animations for heightStyle: content. Fix tests that punch .animate().
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/accordion/accordion_options.js36
1 files changed, 18 insertions, 18 deletions
diff --git a/tests/unit/accordion/accordion_options.js b/tests/unit/accordion/accordion_options.js
index 2b8222f5c..5d950e1ac 100644
--- a/tests/unit/accordion/accordion_options.js
+++ b/tests/unit/accordion/accordion_options.js
@@ -105,9 +105,9 @@ asyncTest( "{ animate: Number }", function() {
panels = element.find( ".ui-accordion-content" ),
animate = $.fn.animate;
// called twice (both panels)
- $.fn.animate = function( props, duration, easing ) {
- equal( duration, 100, "correct duration" );
- equal( easing, undefined, "default easing" );
+ $.fn.animate = function( props, options ) {
+ equal( options.duration, 100, "correct duration" );
+ equal( options.easing, undefined, "default easing" );
animate.apply( this, arguments );
};
@@ -129,9 +129,9 @@ asyncTest( "{ animate: String }", function() {
panels = element.find( ".ui-accordion-content" ),
animate = $.fn.animate;
// called twice (both panels)
- $.fn.animate = function( props, duration, easing ) {
- equal( duration, undefined, "default duration" );
- equal( easing, "linear", "correct easing" );
+ $.fn.animate = function( props, options ) {
+ equal( options.duration, undefined, "default duration" );
+ equal( options.easing, "linear", "correct easing" );
animate.apply( this, arguments );
};
@@ -153,9 +153,9 @@ asyncTest( "{ animate: {} }", function() {
panels = element.find( ".ui-accordion-content" ),
animate = $.fn.animate;
// called twice (both panels)
- $.fn.animate = function( props, duration, easing ) {
- equal( duration, undefined, "default duration" );
- equal( easing, undefined, "default easing" );
+ $.fn.animate = function( props, options ) {
+ equal( options.duration, undefined, "default duration" );
+ equal( options.easing, undefined, "default easing" );
animate.apply( this, arguments );
};
@@ -177,9 +177,9 @@ asyncTest( "{ animate: { duration, easing } }", function() {
panels = element.find( ".ui-accordion-content" ),
animate = $.fn.animate;
// called twice (both panels)
- $.fn.animate = function( props, duration, easing ) {
- equal( duration, 100, "correct duration" );
- equal( easing, "linear", "correct easing" );
+ $.fn.animate = function( props, options ) {
+ equal( options.duration, 100, "correct duration" );
+ equal( options.easing, "linear", "correct easing" );
animate.apply( this, arguments );
};
@@ -202,9 +202,9 @@ asyncTest( "{ animate: { duration, easing } }, animate down", function() {
panels = element.find( ".ui-accordion-content" ),
animate = $.fn.animate;
// called twice (both panels)
- $.fn.animate = function( props, duration, easing ) {
- equal( duration, 100, "correct duration" );
- equal( easing, "linear", "correct easing" );
+ $.fn.animate = function( props, options ) {
+ equal( options.duration, 100, "correct duration" );
+ equal( options.easing, "linear", "correct easing" );
animate.apply( this, arguments );
};
@@ -233,9 +233,9 @@ asyncTest( "{ animate: { duration, easing, down } }, animate down", function() {
panels = element.find( ".ui-accordion-content" ),
animate = $.fn.animate;
// called twice (both panels)
- $.fn.animate = function( props, duration, easing ) {
- equal( duration, 100, "correct duration" );
- equal( easing, "swing", "correct easing" );
+ $.fn.animate = function( props, options ) {
+ equal( options.duration, 100, "correct duration" );
+ equal( options.easing, "swing", "correct easing" );
animate.apply( this, arguments );
};