@@ -106,7 +106,7 @@ test("stop() - several in queue", function() {
106
106
expect ( 4 ) ;
107
107
stop ( ) ;
108
108
109
- var $foo = jQuery ( "#nothiddendiv " ) ;
109
+ var $foo = jQuery ( "#nothiddendivchild " ) ;
110
110
var w = 0 ;
111
111
$foo . hide ( ) . width ( 200 ) . width ( ) ;
112
112
@@ -121,7 +121,7 @@ test("stop() - several in queue", function() {
121
121
122
122
nw = $foo . width ( ) ;
123
123
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" ) ;
125
125
$foo . stop ( true ) ;
126
126
start ( ) ;
127
127
} , 100 ) ;
@@ -158,7 +158,7 @@ test("stop(clearQueue, gotoEnd)", function() {
158
158
expect ( 3 ) ;
159
159
stop ( ) ;
160
160
161
- var $foo = jQuery ( "#nothiddendiv " ) ;
161
+ var $foo = jQuery ( "#nothiddendivchild " ) ;
162
162
var w = 0 ;
163
163
$foo . hide ( ) . width ( 200 ) . width ( ) ;
164
164
@@ -172,10 +172,10 @@ test("stop(clearQueue, gotoEnd)", function() {
172
172
$foo . stop ( false , true ) ;
173
173
174
174
nw = $foo . width ( ) ;
175
- equals ( nw , 200 , "Stop() reset the animation" ) ;
175
+ equals ( nw , 1 , "Stop() reset the animation" ) ;
176
176
177
177
setTimeout ( function ( ) {
178
- equals ( $foo . queue ( ) . length , 3 , "The next animation continued" ) ;
178
+ equals ( $foo . queue ( ) . length , 2 , "The next animation continued" ) ;
179
179
$foo . stop ( true ) ;
180
180
start ( ) ;
181
181
} , 100 ) ;
0 commit comments