@@ -1639,7 +1639,7 @@ describe('Test select box and lasso in general:', function() {
1639
1639
pattern : 'independent'
1640
1640
} ,
1641
1641
width : 800 ,
1642
- height : 800 ,
1642
+ height : 600 ,
1643
1643
yaxis : {
1644
1644
showline : true ,
1645
1645
title : {
@@ -1673,21 +1673,21 @@ describe('Test select box and lasso in general:', function() {
1673
1673
} ) . then ( function ( ) {
1674
1674
return Plotly . relayout ( gd , 'dragmode' , 'select' ) ;
1675
1675
} ) . then ( function ( ) {
1676
- return drag ( [ [ 150 , 600 ] , [ 780 , 400 ] ] ) ;
1676
+ return drag ( [ [ 150 , 450 ] , [ 650 , 350 ] ] ) ;
1677
1677
} ) . then ( function ( ) {
1678
1678
expect ( gd . data [ 0 ] . selectedpoints ) . toBe ( undefined ) ;
1679
1679
expect ( gd . data [ 1 ] . selectedpoints ) . toEqual ( [ 1 , 2 ] ) ;
1680
1680
expect ( gd . data [ 2 ] . selectedpoints ) . toBe ( undefined ) ;
1681
1681
expect ( gd . data [ 3 ] . selectedpoints ) . toEqual ( [ 1 , 2 ] ) ;
1682
1682
} ) . then ( function ( ) {
1683
- return drag ( [ [ 150 , 100 ] , [ 600 , 250 ] ] ) ;
1683
+ return drag ( [ [ 150 , 100 ] , [ 600 , 200 ] ] ) ;
1684
1684
} ) . then ( function ( ) {
1685
1685
expect ( gd . data [ 0 ] . selectedpoints ) . toEqual ( [ 1 , 2 ] ) ;
1686
1686
expect ( gd . data [ 1 ] . selectedpoints ) . toEqual ( [ 1 , 2 ] ) ;
1687
1687
expect ( gd . data [ 2 ] . selectedpoints ) . toEqual ( [ 1 ] ) ;
1688
1688
expect ( gd . data [ 3 ] . selectedpoints ) . toEqual ( [ 1 , 2 ] ) ;
1689
1689
} ) . then ( function ( ) {
1690
- return drag ( [ [ 600 , 175 ] , [ 780 , 175 ] ] ) ; // Extend existing selection
1690
+ return drag ( [ [ 600 , 150 ] , [ 650 , 150 ] ] ) ; // Extend existing selection
1691
1691
} ) . then ( function ( ) {
1692
1692
expect ( gd . data [ 0 ] . selectedpoints ) . toEqual ( [ 1 , 2 ] ) ;
1693
1693
expect ( gd . data [ 1 ] . selectedpoints ) . toEqual ( [ 1 , 2 ] ) ;
0 commit comments