Skip to content

Commit

Permalink
Plots.resize: improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinerg committed Dec 5, 2019
1 parent 5e71cff commit 14f518f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/jasmine/tests/plots_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,11 +421,18 @@ describe('Test Plots', function() {
var p = [];
Plotly.newPlot(gd, [{y: [5, 2, 5]}])
.then(function() {
gd.style.width = '500px';
gd.style.height = '500px';
p.push(Plotly.Plots.resize(gd));
p.push(Plotly.Plots.resize(gd));
p.push(Plotly.Plots.resize(gd));
return Promise.all(p);
})
.then(function(v) {
// Make sure they all resolve to the same value
expect(v[0]).toEqual(v[1]);
expect(v[1]).toEqual(v[2]);
})
.catch(failTest)
.then(done);
});
Expand Down

0 comments on commit 14f518f

Please sign in to comment.