@@ -3067,18 +3067,18 @@ describe('Test plot api', function() {
30673067 } ;
30683068 }
30693069
3070- function reactWith ( fig ) {
3070+ function reactTo ( fig ) {
30713071 return function ( ) { return Plotly . react ( gd , fig ) ; } ;
30723072 }
30733073
30743074 it ( 'can change pie aggregations' , function ( done ) {
30753075 Plotly . newPlot ( gd , aggregatedPie ( 1 ) )
30763076 . then ( checkCalcData ( aggPie1CD ) )
30773077
3078- . then ( reactWith ( aggregatedPie ( 2 ) ) )
3078+ . then ( reactTo ( aggregatedPie ( 2 ) ) )
30793079 . then ( checkCalcData ( aggPie2CD ) )
30803080
3081- . then ( reactWith ( aggregatedPie ( 1 ) ) )
3081+ . then ( reactTo ( aggregatedPie ( 1 ) ) )
30823082 . then ( checkCalcData ( aggPie1CD ) )
30833083 . catch ( failTest )
30843084 . then ( done ) ;
@@ -3088,10 +3088,10 @@ describe('Test plot api', function() {
30883088 Plotly . newPlot ( gd , aggregatedScatter ( 1 ) )
30893089 . then ( checkCalcData ( aggScatter1CD ) )
30903090
3091- . then ( reactWith ( aggregatedScatter ( 2 ) ) )
3091+ . then ( reactTo ( aggregatedScatter ( 2 ) ) )
30923092 . then ( checkCalcData ( aggScatter2CD ) )
30933093
3094- . then ( reactWith ( aggregatedScatter ( 1 ) ) )
3094+ . then ( reactTo ( aggregatedScatter ( 1 ) ) )
30953095 . then ( checkCalcData ( aggScatter1CD ) )
30963096 . catch ( failTest )
30973097 . then ( done ) ;
@@ -3101,13 +3101,13 @@ describe('Test plot api', function() {
31013101 Plotly . newPlot ( gd , aggregatedParcoords ( 0 ) )
31023102 . then ( checkValues ( aggParcoords0Vals ) )
31033103
3104- . then ( reactWith ( aggregatedParcoords ( 1 ) ) )
3104+ . then ( reactTo ( aggregatedParcoords ( 1 ) ) )
31053105 . then ( checkValues ( aggParcoords1Vals ) )
31063106
3107- . then ( reactWith ( aggregatedParcoords ( 2 ) ) )
3107+ . then ( reactTo ( aggregatedParcoords ( 2 ) ) )
31083108 . then ( checkValues ( aggParcoords2Vals ) )
31093109
3110- . then ( reactWith ( aggregatedParcoords ( 0 ) ) )
3110+ . then ( reactTo ( aggregatedParcoords ( 0 ) ) )
31113111 . then ( checkValues ( aggParcoords0Vals ) )
31123112
31133113 . catch ( failTest )
@@ -3118,25 +3118,25 @@ describe('Test plot api', function() {
31183118 Plotly . newPlot ( gd , aggregatedScatter ( 1 ) )
31193119 . then ( checkCalcData ( aggScatter1CD ) )
31203120
3121- . then ( reactWith ( aggregatedPie ( 1 ) ) )
3121+ . then ( reactTo ( aggregatedPie ( 1 ) ) )
31223122 . then ( checkCalcData ( aggPie1CD ) )
31233123
3124- . then ( reactWith ( aggregatedParcoords ( 1 ) ) )
3124+ . then ( reactTo ( aggregatedParcoords ( 1 ) ) )
31253125 . then ( checkValues ( aggParcoords1Vals ) )
31263126
3127- . then ( reactWith ( aggregatedScatter ( 1 ) ) )
3127+ . then ( reactTo ( aggregatedScatter ( 1 ) ) )
31283128 . then ( checkCalcData ( aggScatter1CD ) )
31293129
3130- . then ( reactWith ( aggregatedParcoords ( 2 ) ) )
3130+ . then ( reactTo ( aggregatedParcoords ( 2 ) ) )
31313131 . then ( checkValues ( aggParcoords2Vals ) )
31323132
3133- . then ( reactWith ( aggregatedPie ( 2 ) ) )
3133+ . then ( reactTo ( aggregatedPie ( 2 ) ) )
31343134 . then ( checkCalcData ( aggPie2CD ) )
31353135
3136- . then ( reactWith ( aggregatedScatter ( 2 ) ) )
3136+ . then ( reactTo ( aggregatedScatter ( 2 ) ) )
31373137 . then ( checkCalcData ( aggScatter2CD ) )
31383138
3139- . then ( reactWith ( aggregatedParcoords ( 0 ) ) )
3139+ . then ( reactTo ( aggregatedParcoords ( 0 ) ) )
31403140 . then ( checkValues ( aggParcoords0Vals ) )
31413141 . catch ( failTest )
31423142 . then ( done ) ;
0 commit comments