@@ -3067,18 +3067,18 @@ describe('Test plot api', function() {
3067
3067
} ;
3068
3068
}
3069
3069
3070
- function reactWith ( fig ) {
3070
+ function reactTo ( fig ) {
3071
3071
return function ( ) { return Plotly . react ( gd , fig ) ; } ;
3072
3072
}
3073
3073
3074
3074
it ( 'can change pie aggregations' , function ( done ) {
3075
3075
Plotly . newPlot ( gd , aggregatedPie ( 1 ) )
3076
3076
. then ( checkCalcData ( aggPie1CD ) )
3077
3077
3078
- . then ( reactWith ( aggregatedPie ( 2 ) ) )
3078
+ . then ( reactTo ( aggregatedPie ( 2 ) ) )
3079
3079
. then ( checkCalcData ( aggPie2CD ) )
3080
3080
3081
- . then ( reactWith ( aggregatedPie ( 1 ) ) )
3081
+ . then ( reactTo ( aggregatedPie ( 1 ) ) )
3082
3082
. then ( checkCalcData ( aggPie1CD ) )
3083
3083
. catch ( failTest )
3084
3084
. then ( done ) ;
@@ -3088,10 +3088,10 @@ describe('Test plot api', function() {
3088
3088
Plotly . newPlot ( gd , aggregatedScatter ( 1 ) )
3089
3089
. then ( checkCalcData ( aggScatter1CD ) )
3090
3090
3091
- . then ( reactWith ( aggregatedScatter ( 2 ) ) )
3091
+ . then ( reactTo ( aggregatedScatter ( 2 ) ) )
3092
3092
. then ( checkCalcData ( aggScatter2CD ) )
3093
3093
3094
- . then ( reactWith ( aggregatedScatter ( 1 ) ) )
3094
+ . then ( reactTo ( aggregatedScatter ( 1 ) ) )
3095
3095
. then ( checkCalcData ( aggScatter1CD ) )
3096
3096
. catch ( failTest )
3097
3097
. then ( done ) ;
@@ -3101,13 +3101,13 @@ describe('Test plot api', function() {
3101
3101
Plotly . newPlot ( gd , aggregatedParcoords ( 0 ) )
3102
3102
. then ( checkValues ( aggParcoords0Vals ) )
3103
3103
3104
- . then ( reactWith ( aggregatedParcoords ( 1 ) ) )
3104
+ . then ( reactTo ( aggregatedParcoords ( 1 ) ) )
3105
3105
. then ( checkValues ( aggParcoords1Vals ) )
3106
3106
3107
- . then ( reactWith ( aggregatedParcoords ( 2 ) ) )
3107
+ . then ( reactTo ( aggregatedParcoords ( 2 ) ) )
3108
3108
. then ( checkValues ( aggParcoords2Vals ) )
3109
3109
3110
- . then ( reactWith ( aggregatedParcoords ( 0 ) ) )
3110
+ . then ( reactTo ( aggregatedParcoords ( 0 ) ) )
3111
3111
. then ( checkValues ( aggParcoords0Vals ) )
3112
3112
3113
3113
. catch ( failTest )
@@ -3118,25 +3118,25 @@ describe('Test plot api', function() {
3118
3118
Plotly . newPlot ( gd , aggregatedScatter ( 1 ) )
3119
3119
. then ( checkCalcData ( aggScatter1CD ) )
3120
3120
3121
- . then ( reactWith ( aggregatedPie ( 1 ) ) )
3121
+ . then ( reactTo ( aggregatedPie ( 1 ) ) )
3122
3122
. then ( checkCalcData ( aggPie1CD ) )
3123
3123
3124
- . then ( reactWith ( aggregatedParcoords ( 1 ) ) )
3124
+ . then ( reactTo ( aggregatedParcoords ( 1 ) ) )
3125
3125
. then ( checkValues ( aggParcoords1Vals ) )
3126
3126
3127
- . then ( reactWith ( aggregatedScatter ( 1 ) ) )
3127
+ . then ( reactTo ( aggregatedScatter ( 1 ) ) )
3128
3128
. then ( checkCalcData ( aggScatter1CD ) )
3129
3129
3130
- . then ( reactWith ( aggregatedParcoords ( 2 ) ) )
3130
+ . then ( reactTo ( aggregatedParcoords ( 2 ) ) )
3131
3131
. then ( checkValues ( aggParcoords2Vals ) )
3132
3132
3133
- . then ( reactWith ( aggregatedPie ( 2 ) ) )
3133
+ . then ( reactTo ( aggregatedPie ( 2 ) ) )
3134
3134
. then ( checkCalcData ( aggPie2CD ) )
3135
3135
3136
- . then ( reactWith ( aggregatedScatter ( 2 ) ) )
3136
+ . then ( reactTo ( aggregatedScatter ( 2 ) ) )
3137
3137
. then ( checkCalcData ( aggScatter2CD ) )
3138
3138
3139
- . then ( reactWith ( aggregatedParcoords ( 0 ) ) )
3139
+ . then ( reactTo ( aggregatedParcoords ( 0 ) ) )
3140
3140
. then ( checkValues ( aggParcoords0Vals ) )
3141
3141
. catch ( failTest )
3142
3142
. then ( done ) ;
0 commit comments