@@ -609,7 +609,7 @@ describe('subplot creation / deletion:', function() {
609609 var fig = Lib . extendDeep ( { } , require ( '../../image/mocks/overlaying-axis-lines.json' ) ) ;
610610
611611 function _assert ( xyCnt , x2y2Cnt ) {
612- expect ( d3Select ( '.subplot.xy' ) . select ( '.plot ' ) . selectAll ( '.trace' ) . size ( ) )
612+ expect ( d3Select ( '.subplot.xy' ) . select ( '.overplot' ) . select ( '.xy ') . selectAll ( '.trace' ) . size ( ) )
613613 . toBe ( xyCnt , 'has correct xy subplot trace count' ) ;
614614 expect ( d3Select ( '.overplot' ) . select ( '.x2y2' ) . selectAll ( '.trace' ) . size ( ) )
615615 . toBe ( x2y2Cnt , 'has correct x2y2 oveylaid subplot trace count' ) ;
@@ -759,7 +759,7 @@ describe('subplot creation / deletion:', function() {
759759 _assert ( 'x2/y2 both overlays' , {
760760 xtickParent : 'xaxislayer-above' ,
761761 x2tickParent : 'x2y2-x' ,
762- trace0Parent : 'plot ' ,
762+ trace0Parent : 'xy ' ,
763763 trace1Parent : 'x2y2'
764764 } ) ;
765765 } )
@@ -770,8 +770,8 @@ describe('subplot creation / deletion:', function() {
770770 _assert ( 'x2 free / y2 overlaid' , {
771771 xtickParent : 'xaxislayer-above' ,
772772 x2tickParent : 'xaxislayer-above' ,
773- trace0Parent : 'plot ' ,
774- trace1Parent : 'plot '
773+ trace0Parent : 'xy ' ,
774+ trace1Parent : 'x2y2 '
775775 } ) ;
776776 } )
777777 . then ( function ( ) {
@@ -781,7 +781,7 @@ describe('subplot creation / deletion:', function() {
781781 _assert ( 'back to x2/y2 both overlays' , {
782782 xtickParent : 'xaxislayer-above' ,
783783 x2tickParent : 'x2y2-x' ,
784- trace0Parent : 'plot ' ,
784+ trace0Parent : 'xy ' ,
785785 trace1Parent : 'x2y2'
786786 } ) ;
787787 } )
0 commit comments