@@ -2066,45 +2066,62 @@ export const tests = {
20662066 TWEEN . removeAll ( )
20672067
20682068 const t = new TWEEN . Tween ( { x : 1 } ) ,
2069- t2 = new TWEEN . Tween ( { x : 1 } , true ) ,
2069+ t2 = new TWEEN . Tween ( { x : 1 } ) ,
2070+ t3 = new TWEEN . Tween ( { x : 1 } ) ,
20702071 group = new TWEEN . Group ( )
20712072 let groupCounter = 0 ,
20722073 childCounter = 0 ,
2073- childCounter2 = 0
2074+ childCounter2 = 0 ,
2075+ childCounter3 = 0
20742076
20752077 group . add ( t )
20762078 group . add ( t2 )
2079+ group . add ( t3 )
20772080
20782081 t . to ( { x : 2 } , 1000 )
20792082 t2 . to ( { x : 2 } , 2000 )
2083+ t3 . to ( { x : 2 } , 3000 )
20802084
20812085 t . onComplete ( function ( ) : void {
20822086 childCounter ++
20832087 } )
20842088 t2 . onComplete ( function ( ) : void {
20852089 childCounter2 ++
20862090 } )
2091+ t3 . onComplete ( function ( ) : void {
2092+ childCounter3 ++
2093+ } )
20872094 group . onComplete ( function ( ) : void {
20882095 groupCounter ++
20892096 } )
20902097
20912098 t . start ( 0 )
20922099 t2 . start ( 0 )
2100+ t3 . start ( 0 )
20932101
20942102 group . update ( 0 )
20952103 test . deepEqual ( groupCounter , 0 )
20962104 test . deepEqual ( childCounter , 0 )
20972105 test . deepEqual ( childCounter2 , 0 )
2106+ test . deepEqual ( childCounter3 , 0 )
20982107
20992108 group . update ( 1000 )
21002109 test . deepEqual ( groupCounter , 0 )
21012110 test . deepEqual ( childCounter , 1 )
21022111 test . deepEqual ( childCounter2 , 0 )
2112+ test . deepEqual ( childCounter3 , 0 )
21032113
21042114 group . update ( 2000 )
21052115 test . deepEqual ( childCounter , 1 )
2116+ test . deepEqual ( groupCounter , 0 )
2117+ test . deepEqual ( childCounter2 , 1 )
2118+ test . deepEqual ( childCounter3 , 0 )
2119+
2120+ group . update ( 3000 )
21062121 test . deepEqual ( groupCounter , 1 )
2122+ test . deepEqual ( childCounter , 1 )
21072123 test . deepEqual ( childCounter2 , 1 )
2124+ test . deepEqual ( childCounter3 , 1 )
21082125 test . done ( )
21092126 } ,
21102127
0 commit comments