@@ -945,17 +945,17 @@ describe('Test splom interactions:', function() {
945
945
946
946
function assertDims ( msg , w , h ) {
947
947
var canvas = gd . _fullLayout . _glcanvas ;
948
- expect ( canvas . node ( ) . width ) . toBe ( w , msg + '| canvas width' ) ;
949
- expect ( canvas . node ( ) . height ) . toBe ( h , msg + '| canvas height' ) ;
948
+ expect ( canvas . node ( ) . width / 2 ) . toBe ( w , msg + '| canvas width' ) ;
949
+ expect ( canvas . node ( ) . height / 2 ) . toBe ( h , msg + '| canvas height' ) ;
950
950
951
951
var gl = canvas . data ( ) [ 0 ] . regl . _gl ;
952
952
if ( / C h r o m e \/ 7 8 / . test ( window . navigator . userAgent ) ) {
953
953
// N.B. for some reason 4096 is the max dimension allowed by Chrome 78
954
954
expect ( gl . drawingBufferWidth ) . toBe ( Math . min ( w , 4096 ) , msg + '| drawingBufferWidth' ) ;
955
955
expect ( gl . drawingBufferHeight ) . toBe ( Math . min ( h , 4096 ) , msg + '| drawingBufferHeight' ) ;
956
956
} else {
957
- expect ( gl . drawingBufferWidth ) . toBe ( w , msg + '| drawingBufferWidth' ) ;
958
- expect ( gl . drawingBufferHeight ) . toBe ( h , msg + '| drawingBufferHeight' ) ;
957
+ expect ( gl . drawingBufferWidth / 2 ) . toBe ( w , msg + '| drawingBufferWidth' ) ;
958
+ expect ( gl . drawingBufferHeight / 2 ) . toBe ( h , msg + '| drawingBufferHeight' ) ;
959
959
}
960
960
}
961
961
@@ -1222,7 +1222,7 @@ describe('Test splom update switchboard:', function() {
1222
1222
1223
1223
expect ( toPlainArray ( scene . matrixOptions . color ) )
1224
1224
. toBeCloseToArray ( [ 31 , 119 , 180 , 255 ] , 1 , 'base color' ) ;
1225
- expect ( scene . matrixOptions . size ) . toBe ( 3 , 'base size' ) ;
1225
+ expect ( scene . matrixOptions . size ) . toBe ( 6 , 'base size' ) ;
1226
1226
expect ( fullLayout . xaxis . range ) . toBeCloseToArray ( [ 0.851 , 3.148 ] , 1 , 'base xrng' ) ;
1227
1227
1228
1228
return Plotly . restyle ( gd , 'marker.color' , 'black' ) ;
@@ -1302,7 +1302,7 @@ describe('Test splom update switchboard:', function() {
1302
1302
[ 'draw' , 1 ]
1303
1303
] ) ;
1304
1304
1305
- expect ( scene . matrixOptions . size ) . toBe ( 10 , msg ) ;
1305
+ expect ( scene . matrixOptions . size ) . toBe ( 20 , msg ) ;
1306
1306
expect ( gd . _fullLayout . xaxis . range )
1307
1307
. toBeCloseToArray ( [ 0.753 , 3.246 ] , 1 , 'xrng ' + msg ) ;
1308
1308
@@ -1320,7 +1320,7 @@ describe('Test splom update switchboard:', function() {
1320
1320
[ 'draw' , 1 ]
1321
1321
] ) ;
1322
1322
1323
- expect ( scene . matrixOptions . sizes ) . toBeCloseToArray ( [ 2 , 5 , 10 ] , 1 , msg ) ;
1323
+ expect ( scene . matrixOptions . sizes ) . toBeCloseToArray ( [ 4 , 10 , 20 ] , 1 , msg ) ;
1324
1324
expect ( gd . _fullLayout . xaxis . range )
1325
1325
. toBeCloseToArray ( [ 0.853 , 3.235 ] , 1 , 'xrng ' + msg ) ;
1326
1326
0 commit comments