Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0f5c33c

Browse files
committed
update splom tests
1 parent bb70db7 commit 0f5c33c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

test/jasmine/tests/splom_test.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -537,9 +537,10 @@ describe('Test splom trace defaults:', function() {
537537

538538
var fullLayout = gd._fullLayout;
539539
expect(fullLayout.xaxis.matches).toBe('y');
540-
expect(fullLayout.yaxis.matches).toBe('x');
541540
expect(fullLayout.xaxis2.matches).toBe('y2');
542-
expect(fullLayout.yaxis2.matches).toBe('x2');
541+
// not necessary to set y axes matching x, since x already matches y
542+
expect(fullLayout.yaxis.matches).toBe(undefined);
543+
expect(fullLayout.yaxis2.matches).toBe(undefined);
543544

544545
var groups = fullLayout._axisMatchGroups;
545546
expect(groups.length).toBe(2);
@@ -562,7 +563,7 @@ describe('Test splom trace defaults:', function() {
562563
expect(fullLayout.xaxis).toBe(undefined);
563564
expect(fullLayout.yaxis.matches).toBe(undefined);
564565
expect(fullLayout.xaxis2.matches).toBe('y2');
565-
expect(fullLayout.yaxis2.matches).toBe('x2');
566+
expect(fullLayout.yaxis2.matches).toBe(undefined);
566567
expect(fullLayout.xaxis3.matches).toBe(undefined);
567568
expect(fullLayout.yaxis3).toBe(undefined);
568569

@@ -586,7 +587,7 @@ describe('Test splom trace defaults:', function() {
586587
expect(fullLayout.xaxis.matches).toBe(undefined);
587588
expect(fullLayout.yaxis).toBe(undefined);
588589
expect(fullLayout.xaxis2.matches).toBe('y2');
589-
expect(fullLayout.yaxis2.matches).toBe('x2');
590+
expect(fullLayout.yaxis2.matches).toBe(undefined);
590591
expect(fullLayout.xaxis3).toBe(undefined);
591592
expect(fullLayout.yaxis3.matches).toBe(undefined);
592593

@@ -608,7 +609,7 @@ describe('Test splom trace defaults:', function() {
608609

609610
var fullLayout = gd._fullLayout;
610611
expect(fullLayout.xaxis.matches).toBe('y');
611-
expect(fullLayout.yaxis.matches).toBe('x');
612+
expect(fullLayout.yaxis.matches).toBe(undefined);
612613
expect(fullLayout.xaxis2.matches).toBe('x');
613614
expect(fullLayout.yaxis2.matches).toBe('x2');
614615

0 commit comments

Comments
 (0)