@@ -178,7 +178,7 @@ describe('Test Gl3d layout defaults', function() {
178178 layoutIn = { scene : { } , dragmode : 'orbit' } ;
179179 supplyLayoutDefaults ( layoutIn , layoutOut , fullData ) ;
180180 expect ( layoutOut . scene . dragmode )
181- . toBe ( 'orbit ' , 'to user layout val if valid and 3d only' ) ;
181+ . toBe ( 'turntable ' , 'to turntable if valid and 3d only' ) ;
182182
183183 layoutIn = { scene : { } , dragmode : 'invalid' } ;
184184 supplyLayoutDefaults ( layoutIn , layoutOut , fullData ) ;
@@ -230,14 +230,15 @@ describe('Test Gl3d layout defaults', function() {
230230 . toBe ( 'closest' , 'to default if not valid' ) ;
231231 } ) ;
232232
233- it ( 'should add data-only scenes into layoutIn' , function ( ) {
233+ it ( 'should add data-only scenes into layoutIn and also enable turntable ' , function ( ) {
234234 layoutIn = { } ;
235235 fullData = [ { type : 'scatter3d' , scene : 'scene' } ] ;
236236
237237 supplyLayoutDefaults ( layoutIn , layoutOut , fullData ) ;
238238 expect ( layoutIn . scene ) . toEqual ( {
239239 aspectratio : { x : 1 , y : 1 , z : 1 } ,
240- aspectmode : 'auto'
240+ aspectmode : 'auto' ,
241+ dragmode : 'turntable'
241242 } ) ;
242243 } ) ;
243244
0 commit comments