@@ -105,9 +105,9 @@ asyncTest( "{ animate: Number }", function() {
105
105
panels = element . find ( ".ui-accordion-content" ) ,
106
106
animate = $ . fn . animate ;
107
107
// called twice (both panels)
108
- $ . fn . animate = function ( props , duration , easing ) {
109
- equal ( duration , 100 , "correct duration" ) ;
110
- equal ( easing , undefined , "default easing" ) ;
108
+ $ . fn . animate = function ( props , options ) {
109
+ equal ( options . duration , 100 , "correct duration" ) ;
110
+ equal ( options . easing , undefined , "default easing" ) ;
111
111
animate . apply ( this , arguments ) ;
112
112
} ;
113
113
@@ -129,9 +129,9 @@ asyncTest( "{ animate: String }", function() {
129
129
panels = element . find ( ".ui-accordion-content" ) ,
130
130
animate = $ . fn . animate ;
131
131
// called twice (both panels)
132
- $ . fn . animate = function ( props , duration , easing ) {
133
- equal ( duration , undefined , "default duration" ) ;
134
- equal ( easing , "linear" , "correct easing" ) ;
132
+ $ . fn . animate = function ( props , options ) {
133
+ equal ( options . duration , undefined , "default duration" ) ;
134
+ equal ( options . easing , "linear" , "correct easing" ) ;
135
135
animate . apply ( this , arguments ) ;
136
136
} ;
137
137
@@ -153,9 +153,9 @@ asyncTest( "{ animate: {} }", function() {
153
153
panels = element . find ( ".ui-accordion-content" ) ,
154
154
animate = $ . fn . animate ;
155
155
// called twice (both panels)
156
- $ . fn . animate = function ( props , duration , easing ) {
157
- equal ( duration , undefined , "default duration" ) ;
158
- equal ( easing , undefined , "default easing" ) ;
156
+ $ . fn . animate = function ( props , options ) {
157
+ equal ( options . duration , undefined , "default duration" ) ;
158
+ equal ( options . easing , undefined , "default easing" ) ;
159
159
animate . apply ( this , arguments ) ;
160
160
} ;
161
161
@@ -177,9 +177,9 @@ asyncTest( "{ animate: { duration, easing } }", function() {
177
177
panels = element . find ( ".ui-accordion-content" ) ,
178
178
animate = $ . fn . animate ;
179
179
// called twice (both panels)
180
- $ . fn . animate = function ( props , duration , easing ) {
181
- equal ( duration , 100 , "correct duration" ) ;
182
- equal ( easing , "linear" , "correct easing" ) ;
180
+ $ . fn . animate = function ( props , options ) {
181
+ equal ( options . duration , 100 , "correct duration" ) ;
182
+ equal ( options . easing , "linear" , "correct easing" ) ;
183
183
animate . apply ( this , arguments ) ;
184
184
} ;
185
185
@@ -202,9 +202,9 @@ asyncTest( "{ animate: { duration, easing } }, animate down", function() {
202
202
panels = element . find ( ".ui-accordion-content" ) ,
203
203
animate = $ . fn . animate ;
204
204
// called twice (both panels)
205
- $ . fn . animate = function ( props , duration , easing ) {
206
- equal ( duration , 100 , "correct duration" ) ;
207
- equal ( easing , "linear" , "correct easing" ) ;
205
+ $ . fn . animate = function ( props , options ) {
206
+ equal ( options . duration , 100 , "correct duration" ) ;
207
+ equal ( options . easing , "linear" , "correct easing" ) ;
208
208
animate . apply ( this , arguments ) ;
209
209
} ;
210
210
@@ -233,9 +233,9 @@ asyncTest( "{ animate: { duration, easing, down } }, animate down", function() {
233
233
panels = element . find ( ".ui-accordion-content" ) ,
234
234
animate = $ . fn . animate ;
235
235
// called twice (both panels)
236
- $ . fn . animate = function ( props , duration , easing ) {
237
- equal ( duration , 100 , "correct duration" ) ;
238
- equal ( easing , "swing" , "correct easing" ) ;
236
+ $ . fn . animate = function ( props , options ) {
237
+ equal ( options . duration , 100 , "correct duration" ) ;
238
+ equal ( options . easing , "swing" , "correct easing" ) ;
239
239
animate . apply ( this , arguments ) ;
240
240
} ;
241
241
0 commit comments