Skip to content

Commit 6cbdb49

Browse files
committed
Test legend title click attributes with non-default values
1 parent 2b5d2af commit 6cbdb49

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/jasmine/tests/legend_test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2879,12 +2879,12 @@ describe('legend title click', function() {
28792879
], {
28802880
legend: {
28812881
title: { text: 'Legend' },
2882-
titleclick: 'toggle',
2883-
titledoubleclick: false
2882+
titleclick: 'toggleothers',
2883+
titledoubleclick: 'toggle'
28842884
}
28852885
}).then(function() {
2886-
expect(gd._fullLayout.legend.titleclick).toBe('toggle');
2887-
expect(gd._fullLayout.legend.titledoubleclick).toBe(false);
2886+
expect(gd._fullLayout.legend.titleclick).toBe('toggleothers');
2887+
expect(gd._fullLayout.legend.titledoubleclick).toBe('toggle');
28882888
}).then(done, done.fail);
28892889
});
28902890
});

0 commit comments

Comments
 (0)