@@ -198,8 +198,10 @@ function makeScatterGeo(spec) {
198
198
describe ( 'Performance test various traces' , function ( ) {
199
199
'use strict' ;
200
200
201
+ var filename ;
202
+
201
203
afterAll ( function ( done ) {
202
- downloadCSV ( tests ) ;
204
+ downloadCSV ( tests , filename ) ;
203
205
// delay for the download to be completed
204
206
delay ( 1000 ) ( ) . then ( done )
205
207
} ) ;
@@ -209,11 +211,28 @@ describe('Performance test various traces', function() {
209
211
210
212
var testCase = __karma__ . config . testCase ;
211
213
214
+ filename = '' ;
215
+
212
216
if ( testCase ) {
213
- if ( testCase . tracesType && testCase . tracesType !== spec . traceType ) testIt = false ;
214
- if ( testCase . tracesCount && testCase . tracesCount !== spec . nTraces ) testIt = false ;
215
- if ( testCase . tracesPoints && testCase . tracesPoints !== spec . n ) testIt = false ;
216
- if ( ( testCase . tracesMode !== 'undefined' && testCase . tracesMode ) && testCase . tracesMode !== spec . mode ) testIt = false ;
217
+ if ( testCase . tracesType ) {
218
+ filename += testCase . tracesType ;
219
+ if ( testCase . tracesType !== spec . traceType ) testIt = false ;
220
+ }
221
+
222
+ if ( testCase . tracesMode && testCase . tracesMode !== 'undefined' ) {
223
+ filename += '_' + testCase . tracesMode ;
224
+ if ( testCase . tracesMode !== spec . mode ) testIt = false ;
225
+ }
226
+
227
+ if ( testCase . tracesPoints ) {
228
+ filename += '_' + testCase . tracesPoints ;
229
+ if ( testCase . tracesPoints !== spec . n ) testIt = false ;
230
+ }
231
+
232
+ if ( testCase . tracesCount ) {
233
+ filename += '_' + testCase . tracesCount ;
234
+ if ( testCase . tracesCount !== spec . nTraces ) testIt = false ;
235
+ }
217
236
}
218
237
219
238
if ( testIt ) {
0 commit comments