@@ -661,7 +661,7 @@ describe('legend interaction', function() {
661
661
expect ( gd . _fullLayout . hiddenlabels . length ) . toBe ( 1 ) ;
662
662
expect ( gd . _fullLayout . hiddenlabels [ 0 ] ) . toBe ( legendLabel ) ;
663
663
done ( ) ;
664
- } , DBLCLICKDELAY * 2 ) ;
664
+ } , DBLCLICKDELAY + 20 ) ;
665
665
} ) ;
666
666
it ( 'should fade legend item' , function ( ) {
667
667
expect ( + legendItem . parentNode . style . opacity ) . toBeLessThan ( 1 ) ;
@@ -672,7 +672,7 @@ describe('legend interaction', function() {
672
672
setTimeout ( function ( ) {
673
673
expect ( gd . _fullLayout . hiddenlabels . length ) . toBe ( 0 ) ;
674
674
done ( ) ;
675
- } , DBLCLICKDELAY * 2 ) ;
675
+ } , DBLCLICKDELAY + 20 ) ;
676
676
} ) ;
677
677
it ( 'should unfade legend item' , function ( ) {
678
678
expect ( + legendItem . parentNode . style . opacity ) . toBe ( 1 ) ;
@@ -689,7 +689,7 @@ describe('legend interaction', function() {
689
689
expect ( gd . _fullLayout . hiddenlabels . length ) . toBe ( ( legendItems . length - 1 ) ) ;
690
690
expect ( gd . _fullLayout . hiddenlabels . indexOf ( legendLabel ) ) . toBe ( - 1 ) ;
691
691
done ( ) ;
692
- } , DBLCLICKDELAY ) ;
692
+ } , 20 ) ;
693
693
} ) ;
694
694
it ( 'should fade other legend items' , function ( ) {
695
695
var legendItemi ;
@@ -710,7 +710,7 @@ describe('legend interaction', function() {
710
710
setTimeout ( function ( ) {
711
711
expect ( gd . _fullLayout . hiddenlabels . length ) . toBe ( 0 ) ;
712
712
done ( ) ;
713
- } , DBLCLICKDELAY ) ;
713
+ } , 20 ) ;
714
714
} ) ;
715
715
it ( 'should unfade legend items' , function ( ) {
716
716
var legendItemi ;
@@ -747,7 +747,7 @@ describe('legend interaction', function() {
747
747
setTimeout ( function ( ) {
748
748
expect ( gd . data [ 2 ] . visible ) . toBe ( 'legendonly' ) ;
749
749
done ( ) ;
750
- } , DBLCLICKDELAY * 2 ) ;
750
+ } , DBLCLICKDELAY + 20 ) ;
751
751
} ) ;
752
752
it ( 'should fade legend item' , function ( ) {
753
753
expect ( + legendItem . parentNode . style . opacity ) . toBeLessThan ( 1 ) ;
@@ -758,7 +758,7 @@ describe('legend interaction', function() {
758
758
setTimeout ( function ( ) {
759
759
expect ( gd . data [ 2 ] . visible ) . toBe ( true ) ;
760
760
done ( ) ;
761
- } , DBLCLICKDELAY * 2 ) ;
761
+ } , DBLCLICKDELAY + 20 ) ;
762
762
} ) ;
763
763
it ( 'should unfade legend item' , function ( ) {
764
764
expect ( + legendItem . parentNode . style . opacity ) . toBe ( 1 ) ;
@@ -779,7 +779,7 @@ describe('legend interaction', function() {
779
779
}
780
780
}
781
781
done ( ) ;
782
- } , DBLCLICKDELAY ) ;
782
+ } , 20 ) ;
783
783
} ) ;
784
784
it ( 'should fade legend item' , function ( ) {
785
785
var legendItemi ;
@@ -802,7 +802,7 @@ describe('legend interaction', function() {
802
802
expect ( gd . data [ i ] . visible ) . toBe ( true ) ;
803
803
}
804
804
done ( ) ;
805
- } , DBLCLICKDELAY ) ;
805
+ } , 20 ) ;
806
806
} ) ;
807
807
it ( 'should unfade legend items' , function ( ) {
808
808
var legendItemi ;
0 commit comments