@@ -1215,8 +1215,8 @@ describe('Test geo interactions', function() {
12151215 done ( ) ;
12161216 }
12171217
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 ) ;
12201220 i ++ ;
12211221 } , INTERVAL ) ;
12221222 } ) ;
@@ -1246,8 +1246,8 @@ describe('Test geo interactions', function() {
12461246 done ( ) ;
12471247 }
12481248
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 ) ;
12511251 i ++ ;
12521252 } , INTERVAL ) ;
12531253 } ) ;
@@ -1277,8 +1277,8 @@ describe('Test geo interactions', function() {
12771277 done ( ) ;
12781278 }
12791279
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 ) ;
12821282 i ++ ;
12831283 } , INTERVAL ) ;
12841284 } ) ;
@@ -1292,8 +1292,8 @@ describe('Test geo interactions', function() {
12921292 var trace1 = gd . data [ 1 ] ;
12931293 trace1 . locations . shift ( ) ;
12941294
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 )
12971297 . then ( function ( ) {
12981298 expect ( countTraces ( 'scattergeo' ) ) . toBe ( 1 ) ;
12991299 expect ( countTraces ( 'choropleth' ) ) . toBe ( 1 ) ;
@@ -1319,8 +1319,8 @@ describe('Test geo interactions', function() {
13191319 trace1 . locations = locationsQueue ;
13201320 trace1 . z = zQueue ;
13211321
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 )
13241324 . then ( function ( ) {
13251325 expect ( countTraces ( 'scattergeo' ) ) . toBe ( 1 ) ;
13261326 expect ( countTraces ( 'choropleth' ) ) . toBe ( 1 ) ;
0 commit comments