@@ -1095,8 +1095,8 @@ describe('annotation effects', function() {
1095
1095
mouseEvent ( 'mouseout' , pos [ 0 ] , pos [ 1 ] ) ;
1096
1096
mouseEvent ( 'mousemove' , 0 , 0 ) ;
1097
1097
1098
- setTimeout ( resolve , constants . HOVERMINTIME ) ;
1099
- } , constants . HOVERMINTIME ) ;
1098
+ setTimeout ( resolve , constants . HOVERMINTIME * 1.5 ) ;
1099
+ } , constants . HOVERMINTIME * 1.5 ) ;
1100
1100
} ) ;
1101
1101
}
1102
1102
@@ -1107,10 +1107,10 @@ describe('annotation effects', function() {
1107
1107
spec . push ( [ pos0Head , '' ] ) ;
1108
1108
spec . push ( [ pos2Head , '' ] ) ;
1109
1109
var p = Promise . resolve ( ) ;
1110
- spec . forEach ( function ( speci , i ) {
1110
+ spec . forEach ( function ( speci ) {
1111
1111
p = p . then ( function ( ) {
1112
1112
return assertHoverLabel ( speci [ 0 ] , speci [ 1 ] ,
1113
- msg ? msg + ' (' + i + ')' : i ) ;
1113
+ msg ? msg + ' (' + speci + ')' : speci ) ;
1114
1114
} ) ;
1115
1115
} ) ;
1116
1116
return p ;
@@ -1132,7 +1132,7 @@ describe('annotation effects', function() {
1132
1132
}
1133
1133
1134
1134
makePlot ( [
1135
- { x : 50 , y : 50 , text : 'hi' , width : 50 , ax : 0 , ay : - 40 , xshift : - 50 , yshift : 50 } ,
1135
+ { x : 50 , y : 50 , text : 'hi' , width : 50 , height : 40 , ax : 0 , ay : - 40 , xshift : - 50 , yshift : 50 } ,
1136
1136
{ x : 20 , y : 20 , text : 'bye' , height : 40 , showarrow : false } ,
1137
1137
{ x : 80 , y : 80 , text : 'why?' , ax : 0 , ay : - 40 }
1138
1138
] , { } ) // turn off the default editable: true
0 commit comments