@@ -1215,8 +1215,8 @@ describe('Test geo interactions', function() {
1215
1215
done ( ) ;
1216
1216
}
1217
1217
1218
- gd . calcdata = undefined ;
1219
- Plotly . newPlot ( gd , gd . data , gd . layout ) ;
1218
+ gd . layout . datarevision = String ( i ) ;
1219
+ Plotly . react ( gd , gd . data , gd . layout ) ;
1220
1220
i ++ ;
1221
1221
} , INTERVAL ) ;
1222
1222
} ) ;
@@ -1246,8 +1246,8 @@ describe('Test geo interactions', function() {
1246
1246
done ( ) ;
1247
1247
}
1248
1248
1249
- gd . calcdata = undefined ;
1250
- Plotly . newPlot ( gd , gd . data , gd . layout ) ;
1249
+ gd . layout . datarevision = String ( i ) ;
1250
+ Plotly . react ( gd , gd . data , gd . layout ) ;
1251
1251
i ++ ;
1252
1252
} , INTERVAL ) ;
1253
1253
} ) ;
@@ -1277,8 +1277,8 @@ describe('Test geo interactions', function() {
1277
1277
done ( ) ;
1278
1278
}
1279
1279
1280
- gd . calcdata = undefined ;
1281
- Plotly . newPlot ( gd , gd . data , gd . layout ) ;
1280
+ gd . layout . datarevision = String ( i ) ;
1281
+ Plotly . react ( gd , gd . data , gd . layout ) ;
1282
1282
i ++ ;
1283
1283
} , INTERVAL ) ;
1284
1284
} ) ;
@@ -1292,8 +1292,8 @@ describe('Test geo interactions', function() {
1292
1292
var trace1 = gd . data [ 1 ] ;
1293
1293
trace1 . locations . shift ( ) ;
1294
1294
1295
- gd . calcdata = undefined ;
1296
- Plotly . newPlot ( gd , gd . data , gd . layout )
1295
+ gd . layout . datarevision = '0' ;
1296
+ Plotly . react ( gd , gd . data , gd . layout )
1297
1297
. then ( function ( ) {
1298
1298
expect ( countTraces ( 'scattergeo' ) ) . toBe ( 1 ) ;
1299
1299
expect ( countTraces ( 'choropleth' ) ) . toBe ( 1 ) ;
@@ -1319,8 +1319,8 @@ describe('Test geo interactions', function() {
1319
1319
trace1 . locations = locationsQueue ;
1320
1320
trace1 . z = zQueue ;
1321
1321
1322
- gd . calcdata = undefined ;
1323
- Plotly . newPlot ( gd , gd . data , gd . layout )
1322
+ gd . layout . datarevision = '0' ;
1323
+ Plotly . react ( gd , gd . data , gd . layout )
1324
1324
. then ( function ( ) {
1325
1325
expect ( countTraces ( 'scattergeo' ) ) . toBe ( 1 ) ;
1326
1326
expect ( countTraces ( 'choropleth' ) ) . toBe ( 1 ) ;
0 commit comments