We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fce07c commit 1495a5dCopy full SHA for 1495a5d
test/jasmine/tests/shapes_test.js
@@ -187,6 +187,14 @@ describe('Test shapes:', function() {
187
}).then(done);
188
});
189
190
+ it('should be able to remove all shapes', function(done) {
191
+ Plotly.relayout(gd, { shapes: [] }).then(function() {
192
+ expect(countShapePathsInUpperLayer()).toEqual(0);
193
+ expect(countShapePathsInLowerLayer()).toEqual(0);
194
+ expect(countShapePathsInSubplots()).toEqual(0);
195
+ }).then(done);
196
+ });
197
+
198
it('should be able to update a shape layer', function(done) {
199
var index = countShapes(gd),
200
astr = 'shapes[' + index + ']',
0 commit comments