Skip to content

Commit 899b568

Browse files
committed
changes to gl3d layout test
1 parent b8da9ba commit 899b568

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/jasmine/tests/gl3dlayout_test.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)