@@ -943,18 +943,24 @@ describe('Test splom interactions:', function() {
943
943
. then ( done ) ;
944
944
} ) ;
945
945
946
- it ( '@gl should clear graph and replot when canvas and WebGL context dimensions do not match' , function ( done ) {
946
+ it ( '@noCI @ gl should clear graph and replot when canvas and WebGL context dimensions do not match' , function ( done ) {
947
947
var fig = Lib . extendDeep ( { } , require ( '@mocks/splom_iris.json' ) ) ;
948
948
fig . layout . showlegend = false ;
949
949
950
950
function assertDims ( msg , w , h ) {
951
951
var canvas = gd . _fullLayout . _glcanvas ;
952
- expect ( canvas . node ( ) . width ) . toBe ( w , msg ) ;
953
- expect ( canvas . node ( ) . height ) . toBe ( h , msg ) ;
952
+ expect ( canvas . node ( ) . width ) . toBe ( w , msg + '| canvas width' ) ;
953
+ expect ( canvas . node ( ) . height ) . toBe ( h , msg + '| canvas height' ) ;
954
954
955
955
var gl = canvas . data ( ) [ 0 ] . regl . _gl ;
956
- expect ( gl . drawingBufferWidth ) . toBe ( w , msg ) ;
957
- expect ( gl . drawingBufferHeight ) . toBe ( h , msg ) ;
956
+ if ( / C h r o m e \/ 7 8 / . test ( window . navigator . userAgent ) ) {
957
+ // N.B. for some reason 4096 is the max dimension allowed by Chrome 78
958
+ expect ( gl . drawingBufferWidth ) . toBe ( Math . min ( w , 4096 ) , msg + '| drawingBufferWidth' ) ;
959
+ expect ( gl . drawingBufferHeight ) . toBe ( Math . min ( h , 4096 ) , msg + '| drawingBufferHeight' ) ;
960
+ } else {
961
+ expect ( gl . drawingBufferWidth ) . toBe ( w , msg + '| drawingBufferWidth' ) ;
962
+ expect ( gl . drawingBufferHeight ) . toBe ( h , msg + '| drawingBufferHeight' ) ;
963
+ }
958
964
}
959
965
960
966
var methods = [ 'cleanPlot' , 'supplyDefaults' , 'doCalcdata' ] ;
0 commit comments