Skip to content

Commit 0dd337e

Browse files
archmojetpinard
authored andcommitted
increased delay in config_test
1 parent 54f93f4 commit 0dd337e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/jasmine/tests/config_test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ var click = require('../assets/click');
77
var mouseEvent = require('../assets/mouse_event');
88
var failTest = require('../assets/fail_test');
99
var delay = require('../assets/delay');
10+
var RESIZE_DELAY = 300;
1011

1112
describe('config argument', function() {
1213

@@ -585,7 +586,7 @@ describe('config argument', function() {
585586
viewport.set(width / 2, height / 2);
586587

587588
return Promise.resolve()
588-
.then(delay(200))
589+
.then(delay(RESIZE_DELAY))
589590
.then(function() {
590591
checkLayoutSize(elWidth / 2, elHeight / 2);
591592
})
@@ -639,7 +640,7 @@ describe('config argument', function() {
639640
Plotly.plot(gd, data, {}, {responsive: true})
640641
.then(function() {return Plotly.restyle(gd, 'y[0]', data[0].y[0] + 2);})
641642
.then(function() {viewport.set(width / 2, width / 2);})
642-
.then(delay(200))
643+
.then(delay(RESIZE_DELAY))
643644
// .then(function() {viewport.set(newWidth, 2 * newHeight);}).then(delay(200))
644645
.then(function() {
645646
expect(cntWindowResize).toBe(1);
@@ -667,7 +668,7 @@ describe('config argument', function() {
667668
// Resize viewport
668669
.then(function() {viewport.set(width / 2, height / 2);})
669670
// Wait for resize to happen (Plotly.resize has an internal timeout)
670-
.then(delay(200))
671+
.then(delay(RESIZE_DELAY))
671672
// Check that final figure's size hasn't changed
672673
.then(function() {checkLayoutSize(width, height);})
673674
.catch(failTest)

0 commit comments

Comments
 (0)