File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,13 @@ var destroyGraphDiv = require('../assets/destroy_graph_div');
12
12
var delay = require ( '../assets/delay' ) ;
13
13
var mock = require ( '@mocks/animation' ) ;
14
14
15
- function runTests ( transitionDuration ) {
15
+ [ 0 , 20 ] . forEach ( function ( transitionDuration ) {
16
+ // Run the whole set of tests twice: once with zero duration and once with
17
+ // nonzero duration since the behavior should be identical, but there's a
18
+ // very real possibility of race conditions or other timing issues.
19
+ //
20
+ // And of course, remember to put the async loop in a closure:
21
+
16
22
describe ( 'Plots.transition (duration = ' + transitionDuration + ')' , function ( ) {
17
23
'use strict' ;
18
24
@@ -258,17 +264,8 @@ function runTests(transitionDuration) {
258
264
. then ( done , done . fail ) ;
259
265
} ) ;
260
266
} ) ;
261
- }
267
+ } ) ;
262
268
263
- for ( var i = 0 ; i < 2 ; i ++ ) {
264
- var duration = i * 20 ;
265
- // Run the whole set of tests twice: once with zero duration and once with
266
- // nonzero duration since the behavior should be identical, but there's a
267
- // very real possibility of race conditions or other timing issues.
268
- //
269
- // And of course, remember to put the async loop in a closure:
270
- runTests ( duration ) ;
271
- }
272
269
273
270
describe ( 'Plotly.react transitions:' , function ( ) {
274
271
var gd ;
You can’t perform that action at this time.
0 commit comments