Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 879191d

Browse files
committed
Add test
1 parent 1a1da0d commit 879191d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/jasmine/tests/gl_plot_interact_test.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,20 @@ describe('Test gl2d plots', function() {
968968
.catch(fail)
969969
.then(done);
970970
});
971+
972+
it('should reversibly change plot type with incomplete data', function(done) {
973+
Plotly.plot(gd, [{}]);
974+
975+
expect(function() {
976+
Plotly.restyle(gd, {type: 'scattergl', x: [[1]]}, 0);
977+
}).not.toThrow();
978+
979+
expect(function() {
980+
Plotly.restyle(gd, {y: [[1]]}, 0);
981+
}).not.toThrow();
982+
983+
done();
984+
});
971985
});
972986

973987
describe('Test removal of gl contexts', function() {

0 commit comments

Comments
 (0)