@@ -106,7 +106,7 @@ test("stop() - several in queue", function() {
106106 expect ( 4 ) ;
107107 stop ( ) ;
108108
109- var $foo = jQuery ( "#nothiddendiv " ) ;
109+ var $foo = jQuery ( "#nothiddendivchild " ) ;
110110 var w = 0 ;
111111 $foo . hide ( ) . width ( 200 ) . width ( ) ;
112112
@@ -121,7 +121,7 @@ test("stop() - several in queue", function() {
121121
122122 nw = $foo . width ( ) ;
123123 ok ( nw != w , "Stop didn't reset the animation " + nw + "px " + w + "px" ) ;
124- equals ( $foo . queue ( ) . length , 2 , "The next animation continued" ) ;
124+ equals ( $foo . queue ( ) . length , 1 , "The next animation continued" ) ;
125125 $foo . stop ( true ) ;
126126 start ( ) ;
127127 } , 100 ) ;
@@ -158,7 +158,7 @@ test("stop(clearQueue, gotoEnd)", function() {
158158 expect ( 3 ) ;
159159 stop ( ) ;
160160
161- var $foo = jQuery ( "#nothiddendiv " ) ;
161+ var $foo = jQuery ( "#nothiddendivchild " ) ;
162162 var w = 0 ;
163163 $foo . hide ( ) . width ( 200 ) . width ( ) ;
164164
@@ -172,10 +172,10 @@ test("stop(clearQueue, gotoEnd)", function() {
172172 $foo . stop ( false , true ) ;
173173
174174 nw = $foo . width ( ) ;
175- equals ( nw , 200 , "Stop() reset the animation" ) ;
175+ equals ( nw , 1 , "Stop() reset the animation" ) ;
176176
177177 setTimeout ( function ( ) {
178- equals ( $foo . queue ( ) . length , 3 , "The next animation continued" ) ;
178+ equals ( $foo . queue ( ) . length , 2 , "The next animation continued" ) ;
179179 $foo . stop ( true ) ;
180180 start ( ) ;
181181 } , 100 ) ;
0 commit comments