]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Remove the constantly failing test (#8538)
authorJukka Kurkela <jukka.kurkela@gmail.com>
Sun, 28 Feb 2021 13:49:34 +0000 (15:49 +0200)
committerGitHub <noreply@github.com>
Sun, 28 Feb 2021 13:49:34 +0000 (08:49 -0500)
test/specs/core.animations.tests.js

index d501b884751bc2692c08e2e0519860478ea05a94..6b1d26fd1a75c996b0e75ccfe29c4924ae632449 100644 (file)
@@ -172,51 +172,4 @@ describe('Chart.animations', function() {
       }, 250);
     }, 50);
   });
-
-  describe('default transitions', function() {
-    describe('hide', function() {
-      it('should keep dataset visible through the animation', function(done) {
-        let count = 0;
-        window.acquireChart({
-          type: 'line',
-          data: {
-            labels: [0],
-            datasets: [
-              {data: [1]},
-            ]
-          },
-          options: {
-            animation: {
-              duration: 0,
-              onProgress: (args) => {
-                if (!args.chart.isDatasetVisible(0) && args.currentStep / args.numSteps < 0.9) {
-                  // while animating, visible should be truthly
-                  // sometimes its not, thats why we check only up to 90% of the animation
-                  expect(args.chart.getDatasetMeta(0).visible).toBeTruthy();
-                  count++;
-                }
-              },
-              onComplete: (args) => {
-                if (args.chart.isDatasetVisible(0)) {
-                  args.chart.hide(0);
-                } else {
-                  // and when finished, it should be false
-                  expect(args.chart.getDatasetMeta(0).visible).toBeFalsy();
-                  expect(count).toBeGreaterThan(0);
-                  done();
-                }
-              }
-            },
-            transitions: {
-              hide: {
-                animation: {
-                  duration: 100
-                }
-              }
-            }
-          }
-        });
-      });
-    });
-  });
 });