Skip to content

Commit 2eeda5a

Browse files
committed
changed test after near clip applied in gl-axes3d
1 parent 28071db commit 2eeda5a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/jasmine/tests/gl3d_plot_interact_test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -714,15 +714,15 @@ describe('Test gl3d plots', function() {
714714
.then(done);
715715
});
716716

717-
it('@gl axis ticks should not be set when axis _length is NaN', function(done) {
717+
it('@gl should not set _length to NaN and dtick should be defined.', function(done) {
718718
Plotly.plot(gd,
719719
{
720720
data: [{
721721
type: 'scatter3d',
722722
mode: 'markers',
723723
x: [1, 2],
724724
y: [3, 4],
725-
z: [5, 6]
725+
z: [0.000000005, 0.000000006]
726726
}],
727727
layout: {
728728
scene: {
@@ -737,8 +737,8 @@ describe('Test gl3d plots', function() {
737737
)
738738
.then(function() {
739739
var zaxis = gd._fullLayout.scene.zaxis;
740-
expect(isNaN(zaxis._length)).toBe(true);
741-
expect(zaxis.dtick === undefined).toBe(true);
740+
expect(isNaN(zaxis._length)).toBe(false);
741+
expect(zaxis.dtick === undefined).toBe(false);
742742
})
743743
.catch(failTest)
744744
.then(done);

0 commit comments

Comments
 (0)