@@ -661,7 +661,7 @@ describe('legend interaction', function() {
661661 expect ( gd . _fullLayout . hiddenlabels . length ) . toBe ( 1 ) ;
662662 expect ( gd . _fullLayout . hiddenlabels [ 0 ] ) . toBe ( legendLabel ) ;
663663 done ( ) ;
664- } , DBLCLICKDELAY * 2 ) ;
664+ } , DBLCLICKDELAY + 20 ) ;
665665 } ) ;
666666 it ( 'should fade legend item' , function ( ) {
667667 expect ( + legendItem . parentNode . style . opacity ) . toBeLessThan ( 1 ) ;
@@ -672,7 +672,7 @@ describe('legend interaction', function() {
672672 setTimeout ( function ( ) {
673673 expect ( gd . _fullLayout . hiddenlabels . length ) . toBe ( 0 ) ;
674674 done ( ) ;
675- } , DBLCLICKDELAY * 2 ) ;
675+ } , DBLCLICKDELAY + 20 ) ;
676676 } ) ;
677677 it ( 'should unfade legend item' , function ( ) {
678678 expect ( + legendItem . parentNode . style . opacity ) . toBe ( 1 ) ;
@@ -689,7 +689,7 @@ describe('legend interaction', function() {
689689 expect ( gd . _fullLayout . hiddenlabels . length ) . toBe ( ( legendItems . length - 1 ) ) ;
690690 expect ( gd . _fullLayout . hiddenlabels . indexOf ( legendLabel ) ) . toBe ( - 1 ) ;
691691 done ( ) ;
692- } , DBLCLICKDELAY ) ;
692+ } , 20 ) ;
693693 } ) ;
694694 it ( 'should fade other legend items' , function ( ) {
695695 var legendItemi ;
@@ -710,7 +710,7 @@ describe('legend interaction', function() {
710710 setTimeout ( function ( ) {
711711 expect ( gd . _fullLayout . hiddenlabels . length ) . toBe ( 0 ) ;
712712 done ( ) ;
713- } , DBLCLICKDELAY ) ;
713+ } , 20 ) ;
714714 } ) ;
715715 it ( 'should unfade legend items' , function ( ) {
716716 var legendItemi ;
@@ -747,7 +747,7 @@ describe('legend interaction', function() {
747747 setTimeout ( function ( ) {
748748 expect ( gd . data [ 2 ] . visible ) . toBe ( 'legendonly' ) ;
749749 done ( ) ;
750- } , DBLCLICKDELAY * 2 ) ;
750+ } , DBLCLICKDELAY + 20 ) ;
751751 } ) ;
752752 it ( 'should fade legend item' , function ( ) {
753753 expect ( + legendItem . parentNode . style . opacity ) . toBeLessThan ( 1 ) ;
@@ -758,7 +758,7 @@ describe('legend interaction', function() {
758758 setTimeout ( function ( ) {
759759 expect ( gd . data [ 2 ] . visible ) . toBe ( true ) ;
760760 done ( ) ;
761- } , DBLCLICKDELAY * 2 ) ;
761+ } , DBLCLICKDELAY + 20 ) ;
762762 } ) ;
763763 it ( 'should unfade legend item' , function ( ) {
764764 expect ( + legendItem . parentNode . style . opacity ) . toBe ( 1 ) ;
@@ -779,7 +779,7 @@ describe('legend interaction', function() {
779779 }
780780 }
781781 done ( ) ;
782- } , DBLCLICKDELAY ) ;
782+ } , 20 ) ;
783783 } ) ;
784784 it ( 'should fade legend item' , function ( ) {
785785 var legendItemi ;
@@ -802,7 +802,7 @@ describe('legend interaction', function() {
802802 expect ( gd . data [ i ] . visible ) . toBe ( true ) ;
803803 }
804804 done ( ) ;
805- } , DBLCLICKDELAY ) ;
805+ } , 20 ) ;
806806 } ) ;
807807 it ( 'should unfade legend items' , function ( ) {
808808 var legendItemi ;
0 commit comments