@@ -93,7 +93,7 @@ describe('Test gl3d before/after plot', function() {
9393 } )
9494 . then ( delay ( 20 ) )
9595 . then ( function ( ) {
96- var cameraBefore = gd . _fullLayout . scene . _scene . glplot . camera ;
96+ var cameraBefore = gd . _fullLayout . scene . _scene . camera ;
9797 expect ( cameraBefore . up [ 0 ] ) . toBeCloseTo ( 0 , 2 , 'cameraBefore.up[0]' ) ;
9898 expect ( cameraBefore . up [ 1 ] ) . toBeCloseTo ( 0 , 2 , 'cameraBefore.up[1]' ) ;
9999 expect ( cameraBefore . up [ 2 ] ) . toBeCloseTo ( 1 , 2 , 'cameraBefore.up[2]' ) ;
@@ -108,7 +108,7 @@ describe('Test gl3d before/after plot', function() {
108108 . then ( _clickThere )
109109 . then ( delay ( 20 ) )
110110 . then ( function ( ) {
111- var cameraAfter = gd . _fullLayout . scene . _scene . glplot . camera ;
111+ var cameraAfter = gd . _fullLayout . scene . _scene . camera ;
112112 expect ( cameraAfter . up [ 0 ] ) . toBeCloseTo ( 0 , 2 , 'cameraAfter.up[0]' ) ;
113113 expect ( cameraAfter . up [ 1 ] ) . toBeCloseTo ( 0 , 2 , 'cameraAfter.up[1]' ) ;
114114 expect ( cameraAfter . up [ 2 ] ) . toBeCloseTo ( 1 , 2 , 'cameraAfter.up[2]' ) ;
@@ -123,7 +123,7 @@ describe('Test gl3d before/after plot', function() {
123123 . then ( _clickOtherplace )
124124 . then ( delay ( 20 ) )
125125 . then ( function ( ) {
126- var cameraFinal = gd . _fullLayout . scene . _scene . glplot . camera ;
126+ var cameraFinal = gd . _fullLayout . scene . _scene . camera ;
127127 expect ( cameraFinal . up [ 0 ] ) . toBeCloseTo ( 0 , 2 , 'cameraFinal.up[0]' ) ;
128128 expect ( cameraFinal . up [ 1 ] ) . toBeCloseTo ( 0 , 2 , 'cameraFinal.up[1]' ) ;
129129 expect ( cameraFinal . up [ 2 ] ) . toBeCloseTo ( 1 , 2 , 'cameraFinal.up[2]' ) ;
@@ -300,7 +300,7 @@ describe('Test gl3d plots', function() {
300300 . then ( delay ( 20 ) )
301301 . then ( function ( ) {
302302 expect ( gd . _fullLayout . scene . camera . projection . type === 'perspective' ) . toBe ( true ) ;
303- expect ( gd . _fullLayout . scene . _scene . glplot . camera . _ortho === false ) . toBe ( true ) ;
303+ expect ( gd . _fullLayout . scene . _scene . camera . _ortho === false ) . toBe ( true ) ;
304304 } )
305305 . then ( done ) ;
306306 } ) ;
@@ -326,7 +326,7 @@ describe('Test gl3d plots', function() {
326326 . then ( delay ( 20 ) )
327327 . then ( function ( ) {
328328 expect ( gd . _fullLayout . scene . camera . projection . type === 'orthographic' ) . toBe ( true ) ;
329- expect ( gd . _fullLayout . scene . _scene . glplot . camera . _ortho === true ) . toBe ( true ) ;
329+ expect ( gd . _fullLayout . scene . _scene . camera . _ortho === true ) . toBe ( true ) ;
330330 } )
331331 . then ( done ) ;
332332 } ) ;
@@ -355,28 +355,28 @@ describe('Test gl3d plots', function() {
355355 } )
356356 . then ( function ( ) {
357357 expect ( gd . _fullLayout . scene . camera . projection . type === 'orthographic' ) . toBe ( true ) ;
358- expect ( gd . _fullLayout . scene . _scene . glplot . camera . _ortho === true ) . toBe ( true ) ;
358+ expect ( gd . _fullLayout . scene . _scene . camera . _ortho === true ) . toBe ( true ) ;
359359 } )
360360 . then ( function ( ) {
361361 return Plotly . relayout ( gd , 'scene.camera.eye.z' , 2 ) ;
362362 } )
363363 . then ( function ( ) {
364364 expect ( gd . _fullLayout . scene . camera . projection . type === 'orthographic' ) . toBe ( true ) ;
365- expect ( gd . _fullLayout . scene . _scene . glplot . camera . _ortho === true ) . toBe ( true ) ;
365+ expect ( gd . _fullLayout . scene . _scene . camera . _ortho === true ) . toBe ( true ) ;
366366 } )
367367 . then ( function ( ) {
368368 return Plotly . relayout ( gd , 'scene.camera.projection.type' , 'perspective' ) ;
369369 } )
370370 . then ( function ( ) {
371371 expect ( gd . _fullLayout . scene . camera . projection . type === 'perspective' ) . toBe ( true ) ;
372- expect ( gd . _fullLayout . scene . _scene . glplot . camera . _ortho === false ) . toBe ( true ) ;
372+ expect ( gd . _fullLayout . scene . _scene . camera . _ortho === false ) . toBe ( true ) ;
373373 } )
374374 . then ( function ( ) {
375375 return Plotly . relayout ( gd , 'scene.camera.eye.z' , 3 ) ;
376376 } )
377377 . then ( function ( ) {
378378 expect ( gd . _fullLayout . scene . camera . projection . type === 'perspective' ) . toBe ( true ) ;
379- expect ( gd . _fullLayout . scene . _scene . glplot . camera . _ortho === false ) . toBe ( true ) ;
379+ expect ( gd . _fullLayout . scene . _scene . camera . _ortho === false ) . toBe ( true ) ;
380380 } )
381381 . then ( done ) ;
382382 } ) ;
0 commit comments