Skip to content

Commit e676a43

Browse files
committed
bump delays during legend interactions tests
... to alleviate problems when running full `npm run test-jasmine` suite at once.
1 parent 4511b19 commit e676a43

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/jasmine/tests/legend_test.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ describe('legend interaction', function() {
12601260
item.dispatchEvent(new MouseEvent('mousedown'));
12611261
item.dispatchEvent(new MouseEvent('mouseup'));
12621262
}
1263-
setTimeout(resolve, DBLCLICKDELAY + 20);
1263+
setTimeout(resolve, DBLCLICKDELAY + 100);
12641264
});
12651265
};
12661266
}
@@ -1682,6 +1682,7 @@ describe('legend interaction', function() {
16821682
'legend.itemdoubleclick': false
16831683
});
16841684
})
1685+
.then(delay(100))
16851686
.then(click(0, 1)).then(_assert([true, true, true]))
16861687
.then(click(0, 2)).then(_assert([true, true, true]))
16871688
.then(function() {
@@ -1690,6 +1691,7 @@ describe('legend interaction', function() {
16901691
'legend.itemdoubleclick': 'toggle'
16911692
});
16921693
})
1694+
.then(delay(100))
16931695
.then(click(0, 1)).then(_assert([true, 'legendonly', 'legendonly']))
16941696
.then(click(0, 1)).then(_assert([true, true, true]))
16951697
.then(click(0, 2)).then(_assert(['legendonly', true, true]))
@@ -1707,7 +1709,7 @@ describe('legend interaction', function() {
17071709
.then(run)
17081710
.catch(failTest)
17091711
.then(done);
1710-
});
1712+
}, 2 * jasmine.DEFAULT_TIMEOUT_INTERVAL);
17111713

17121714
it('- pie case', function(done) {
17131715
_assert = function(_exp) {
@@ -1728,7 +1730,7 @@ describe('legend interaction', function() {
17281730
.then(run)
17291731
.catch(failTest)
17301732
.then(done);
1731-
});
1733+
}, 2 * jasmine.DEFAULT_TIMEOUT_INTERVAL);
17321734
});
17331735
});
17341736
});

0 commit comments

Comments
 (0)