File tree Expand file tree Collapse file tree 1 file changed +0
-47
lines changed Expand file tree Collapse file tree 1 file changed +0
-47
lines changed Original file line number Diff line number Diff line change @@ -172,51 +172,4 @@ describe('Chart.animations', function() {
172172 } , 250 ) ;
173173 } , 50 ) ;
174174 } ) ;
175-
176- describe ( 'default transitions' , function ( ) {
177- describe ( 'hide' , function ( ) {
178- it ( 'should keep dataset visible through the animation' , function ( done ) {
179- let count = 0 ;
180- window . acquireChart ( {
181- type : 'line' ,
182- data : {
183- labels : [ 0 ] ,
184- datasets : [
185- { data : [ 1 ] } ,
186- ]
187- } ,
188- options : {
189- animation : {
190- duration : 0 ,
191- onProgress : ( args ) => {
192- if ( ! args . chart . isDatasetVisible ( 0 ) && args . currentStep / args . numSteps < 0.9 ) {
193- // while animating, visible should be truthly
194- // sometimes its not, thats why we check only up to 90% of the animation
195- expect ( args . chart . getDatasetMeta ( 0 ) . visible ) . toBeTruthy ( ) ;
196- count ++ ;
197- }
198- } ,
199- onComplete : ( args ) => {
200- if ( args . chart . isDatasetVisible ( 0 ) ) {
201- args . chart . hide ( 0 ) ;
202- } else {
203- // and when finished, it should be false
204- expect ( args . chart . getDatasetMeta ( 0 ) . visible ) . toBeFalsy ( ) ;
205- expect ( count ) . toBeGreaterThan ( 0 ) ;
206- done ( ) ;
207- }
208- }
209- } ,
210- transitions : {
211- hide : {
212- animation : {
213- duration : 100
214- }
215- }
216- }
217- }
218- } ) ;
219- } ) ;
220- } ) ;
221- } ) ;
222175} ) ;
You can’t perform that action at this time.
0 commit comments