@@ -146,26 +146,26 @@ describe('end-to-end scattergl tests', function() {
146
146
return Plotly . restyle ( gd , 'visible' , 'legendonly' ) ;
147
147
} )
148
148
. then ( function ( ) {
149
- expect ( readPixel ( gd . querySelector ( '.gl-canvas-context' ) , 108 , 100 ) [ 0 ] ) . toBe ( 0 ) ;
149
+ expect ( readPixel ( gd . querySelector ( '.gl-canvas-context' ) , 216 , 200 ) [ 0 ] ) . toBe ( 0 ) ;
150
150
assertDrawCall ( 'legendonly' , 0 ) ;
151
151
152
152
return Plotly . restyle ( gd , 'visible' , true ) ;
153
153
} )
154
154
. then ( function ( ) {
155
- expect ( readPixel ( gd . querySelector ( '.gl-canvas-context' ) , 108 , 100 ) [ 0 ] ) . not . toBe ( 0 ) ;
155
+ expect ( readPixel ( gd . querySelector ( '.gl-canvas-context' ) , 216 , 200 ) [ 0 ] ) . not . toBe ( 0 ) ;
156
156
assertDrawCall ( 'back to visible' , 1 ) ;
157
157
158
158
return Plotly . restyle ( gd , 'visible' , false ) ;
159
159
} )
160
160
. then ( function ( ) {
161
- expect ( readPixel ( gd . querySelector ( '.gl-canvas-context' ) , 108 , 100 ) [ 0 ] ) . toBe ( 0 ) ;
161
+ expect ( readPixel ( gd . querySelector ( '.gl-canvas-context' ) , 216 , 200 ) [ 0 ] ) . toBe ( 0 ) ;
162
162
assertDrawCall ( 'visible false' , 0 ) ;
163
163
164
164
return Plotly . restyle ( gd , 'visible' , true ) ;
165
165
} )
166
166
. then ( function ( ) {
167
167
assertDrawCall ( 'back up' , 1 ) ;
168
- expect ( readPixel ( gd . querySelector ( '.gl-canvas-context' ) , 108 , 100 ) [ 0 ] ) . not . toBe ( 0 ) ;
168
+ expect ( readPixel ( gd . querySelector ( '.gl-canvas-context' ) , 216 , 200 ) [ 0 ] ) . not . toBe ( 0 ) ;
169
169
} )
170
170
. then ( done , done . fail ) ;
171
171
} ) ;
@@ -346,12 +346,12 @@ describe('end-to-end scattergl tests', function() {
346
346
Plotly . newPlot ( gd , mock . data , mock . layout )
347
347
. then ( delay ( 1000 ) )
348
348
. then ( function ( ) {
349
- expect ( readPixel ( gd . querySelector ( '.gl-canvas-context' ) , 100 , 80 ) [ 0 ] ) . not . toBe ( 0 ) ;
349
+ expect ( readPixel ( gd . querySelector ( '.gl-canvas-context' ) , 200 , 160 ) [ 0 ] ) . not . toBe ( 0 ) ;
350
350
351
351
return Plotly . restyle ( gd , { fill : 'none' } ) ;
352
352
} )
353
353
. then ( function ( ) {
354
- expect ( readPixel ( gd . querySelector ( '.gl-canvas-context' ) , 100 , 80 ) [ 0 ] ) . toBe ( 0 ) ;
354
+ expect ( readPixel ( gd . querySelector ( '.gl-canvas-context' ) , 200 , 160 ) [ 0 ] ) . toBe ( 0 ) ;
355
355
} )
356
356
. then ( done , done . fail ) ;
357
357
} ) ;
0 commit comments