Ticket #1751: 1751.test.diff
| File 1751.test.diff, 0.9 kB (added by davidserduke, 1 year ago) |
|---|
-
test/unit/fx.js
232 232 var check = ['opacity','height','width','display','overflow']; 233 233 234 234 jQuery.fn.saveState = function(){ 235 expect(check.length );235 expect(check.length * this.length); 236 236 stop(); 237 237 return this.each(function(){ 238 238 var self = this; … … 288 288 $('#slidetoggleout div').saveState().slideToggle('fast').slideToggle('fast',checkState); 289 289 }); 290 290 291 test("Multiple/opposite slideToggle()", function() { 292 var x = $("#ap,#foo"); 293 x.filter("#foo").hide(); 294 x.saveState().slideToggle('fast').slideToggle('fast', function () { 295 checkState.call(this); 296 x.filter("#foo").show(); 297 }); 298 }); 299 291 300 function makeTest( text ){ 292 301 var elem = $("<div></div>") 293 302 .attr("id", "test" + makeTest.id++)
