test("toggle()", function() { expect(3); var x = $("#foo"); ok( x.is(":visible") ); x.toggle(); ok( x.is(":hidden") ); x.toggle(); ok( x.is(":visible") ); 
test("stop() - several in queue", function() { expect(4); stop();  var $foo = $("#nothiddendiv"); var w = 0; $foo.hide().width(200).width();  $foo.animate({ width:'show' }, 1000); $foo.animate({ width:'hide' }, 1000); $foo.animate({ width:'show' }, 1000); setTimeout(function(){ equals( $foo.queue().length, 3, "All 3 still in the queue" ); var nw = $foo.width(); ok( nw != w, "An animation occurred " + nw + "px " + w + "px"); $foo.stop();  nw = $foo.width(); ok( nw != w, "Stop didn't reset the animation " + nw + "px " + w + "px"); equals( $foo.queue().length, 2, "The next animation continued" ); $foo.stop(true); start(); }, 100); 
test("toggle()", function() {	expect(3);	var x = $("#foo");	ok( x.is(":visible") );	x.toggle();	ok( x.is(":hidden") );	x.toggle();	ok( x.is(":visible") );});
6056	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6056/5039a4bc5b951b9d28659f6f42f73c59e2e560fc/fx.js/clean/test/unit/fx.js