File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -70,17 +70,17 @@ describe('annotations relayout', function() {
7070 Plotly . relayout ( gd , 'annotations[' + len + ']' , ann ) . then ( function ( ) {
7171 expect ( countAnnotations ( ) ) . toEqual ( len + 1 ) ;
7272
73- return Plotly . relayout ( gd , 'annotations[' + 0 + ' ]', 'remove' ) ;
73+ return Plotly . relayout ( gd , 'annotations[0 ]' , 'remove' ) ;
7474 } )
7575 . then ( function ( ) {
7676 expect ( countAnnotations ( ) ) . toEqual ( len ) ;
7777
78- return Plotly . relayout ( gd , 'annotations[' + 0 + ' ]', null ) ;
78+ return Plotly . relayout ( gd , 'annotations[0 ]' , null ) ;
7979 } )
8080 . then ( function ( ) {
8181 expect ( countAnnotations ( ) ) . toEqual ( len - 1 ) ;
8282
83- return Plotly . relayout ( gd , 'annotations[' + 0 + ' ].visible', false ) ;
83+ return Plotly . relayout ( gd , 'annotations[0 ].visible' , false ) ;
8484 } )
8585 . then ( function ( ) {
8686 expect ( countAnnotations ( ) ) . toEqual ( len - 2 ) ;
Original file line number Diff line number Diff line change @@ -190,13 +190,13 @@ describe('Test shapes:', function() {
190190 expect ( countShapePathsInUpperLayer ( ) ) . toEqual ( pathCount ) ;
191191 expect ( countShapes ( gd ) ) . toEqual ( index ) ;
192192
193- return Plotly . relayout ( gd , 'shapes[' + 2 + ' ].visible', false ) ;
193+ return Plotly . relayout ( gd , 'shapes[2 ].visible' , false ) ;
194194 } )
195195 . then ( function ( ) {
196196 expect ( countShapePathsInUpperLayer ( ) ) . toEqual ( pathCount - 1 ) ;
197197 expect ( countShapes ( gd ) ) . toEqual ( index ) ;
198198
199- return Plotly . relayout ( gd , 'shapes[' + 1 + ' ]', null ) ;
199+ return Plotly . relayout ( gd , 'shapes[1 ]' , null ) ;
200200 } )
201201 . then ( function ( ) {
202202 expect ( countShapePathsInUpperLayer ( ) ) . toEqual ( pathCount - 2 ) ;
You can’t perform that action at this time.
0 commit comments