rem: test("toggle()", function() { expect(3); var x = $("#foo"); ok( x.is(":visible") ); x.toggle(); ok( x.is(":hidden") ); x.toggle(); ok( x.is(":visible") ); 
add: 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); 
context: test("toggle()", function() {	expect(3);	var x = $("#foo");	ok( x.is(":visible") );	x.toggle();	ok( x.is(":hidden") );	x.toggle();	ok( x.is(":visible") );});
meta: 1375	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1375/5039a4bc5b951b9d28659f6f42f73c59e2e560fc/fx.js/buggy/test/unit/fx.js