File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ describe('Test shapes:', function() {
7979 var shape = getRandomShape ( ) ;
8080
8181 Plotly . relayout ( gd , 'shapes[' + index + ']' , shape ) . then ( function ( ) {
82+ expect ( countShapeLayers ( ) ) . toEqual ( 1 ) ;
8283 expect ( getLastShape ( gd ) ) . toEqual ( shape ) ;
8384 expect ( countShapes ( gd ) ) . toEqual ( index + 1 ) ;
8485 } ) . then ( done ) ;
@@ -89,11 +90,13 @@ describe('Test shapes:', function() {
8990 var shape = getRandomShape ( ) ;
9091
9192 Plotly . relayout ( gd , 'shapes[' + index + ']' , shape ) . then ( function ( ) {
93+ expect ( countShapeLayers ( ) ) . toEqual ( 1 ) ;
9294 expect ( getLastShape ( gd ) ) . toEqual ( shape ) ;
9395 expect ( countShapes ( gd ) ) . toEqual ( index + 1 ) ;
9496 } ) . then ( function ( ) {
9597 Plotly . relayout ( gd , 'shapes[' + index + ']' , 'remove' ) ;
9698 } ) . then ( function ( ) {
99+ expect ( countShapeLayers ( ) ) . toEqual ( 1 ) ;
97100 expect ( countShapes ( gd ) ) . toEqual ( index ) ;
98101 } ) . then ( done ) ;
99102 } ) ;
You can’t perform that action at this time.
0 commit comments