@@ -1218,6 +1218,8 @@ describe('Test gl3d drag and wheel interactions', function() {
1218
1218
expect ( aspectratio . x ) . toBeCloseTo ( 0.909 , 3 , 'aspectratio.x' ) ;
1219
1219
expect ( aspectratio . y ) . toBeCloseTo ( 0.909 , 3 , 'aspectratio.y' ) ;
1220
1220
expect ( aspectratio . z ) . toBeCloseTo ( 0.909 , 3 , 'aspectratio.z' ) ;
1221
+
1222
+ expect ( relayoutEvent [ 'scene.aspectmode' ] ) . toBe ( 'manual' ) ;
1221
1223
} )
1222
1224
. then ( function ( ) {
1223
1225
return scroll ( sceneTarget2 ) ;
@@ -1229,6 +1231,8 @@ describe('Test gl3d drag and wheel interactions', function() {
1229
1231
expect ( aspectratio . x ) . toBeCloseTo ( 2.727 , 3 , 'aspectratio.x' ) ;
1230
1232
expect ( aspectratio . y ) . toBeCloseTo ( 1.818 , 3 , 'aspectratio.y' ) ;
1231
1233
expect ( aspectratio . z ) . toBeCloseTo ( 0.909 , 3 , 'aspectratio.z' ) ;
1234
+
1235
+ expect ( relayoutEvent [ 'scene.aspectmode' ] ) . not . toBe ( 'manual' ) ;
1232
1236
} )
1233
1237
. catch ( failTest )
1234
1238
. then ( done ) ;
@@ -1279,6 +1283,7 @@ describe('Test gl3d drag and wheel interactions', function() {
1279
1283
Object . keys ( relayoutEvent ) . sort ( ) . forEach ( function ( key ) {
1280
1284
expect ( Object . keys ( events [ 0 ] ) ) . toContain ( key ) ;
1281
1285
expect ( key ) . not . toBe ( 'scene.aspectratio' ) ;
1286
+ expect ( key ) . not . toBe ( 'scene.aspectmode' ) ;
1282
1287
} ) ;
1283
1288
} )
1284
1289
. catch ( failTest )
@@ -1329,6 +1334,7 @@ describe('Test gl3d drag and wheel interactions', function() {
1329
1334
Object . keys ( relayoutEvent ) . sort ( ) . forEach ( function ( key ) {
1330
1335
expect ( Object . keys ( events [ 0 ] ) ) . toContain ( key ) ;
1331
1336
expect ( key ) . not . toBe ( 'scene.aspectratio' ) ;
1337
+ expect ( key ) . not . toBe ( 'scene.aspectmode' ) ;
1332
1338
} ) ;
1333
1339
} )
1334
1340
. catch ( failTest )
@@ -1456,6 +1462,8 @@ describe('Test gl3d drag and wheel interactions', function() {
1456
1462
expect ( aspectratio . x ) . toBeCloseTo ( 0.816 , 3 , 'aspectratio.x' ) ;
1457
1463
expect ( aspectratio . y ) . toBeCloseTo ( 0.725 , 3 , 'aspectratio.y' ) ;
1458
1464
expect ( aspectratio . z ) . toBeCloseTo ( 1.269 , 3 , 'aspectratio.z' ) ;
1465
+
1466
+ expect ( relayoutEvent [ 'scene.aspectmode' ] ) . toBe ( 'manual' ) ;
1459
1467
} )
1460
1468
. then ( function ( ) {
1461
1469
// select a point
0 commit comments