@@ -198,8 +198,10 @@ function makeScatterGeo(spec) {
198198describe ( 'Performance test various traces' , function ( ) {
199199 'use strict' ;
200200
201+ var filename ;
202+
201203 afterAll ( function ( done ) {
202- downloadCSV ( tests ) ;
204+ downloadCSV ( tests , filename ) ;
203205 // delay for the download to be completed
204206 delay ( 1000 ) ( ) . then ( done )
205207 } ) ;
@@ -209,11 +211,28 @@ describe('Performance test various traces', function() {
209211
210212 var testCase = __karma__ . config . testCase ;
211213
214+ filename = '' ;
215+
212216 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+ }
217236 }
218237
219238 if ( testIt ) {
0 commit comments