We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cccff0d commit df10f70Copy full SHA for df10f70
test/jasmine/tests/modebar_test.js
@@ -756,6 +756,16 @@ describe('ModeBar', function() {
756
expect(countLogo(gd._fullLayout._modeBar)).toEqual(0);
757
});
758
759
+ it('always displays the logo if watermark config arg is true', function() {
760
+ var gd = getMockGraphInfo();
761
+ gd._context.displaylogo = false;
762
+ gd._context.displayModeBar = false;
763
+ gd._context.watermark = true;
764
+ manageModeBar(gd);
765
+ expect(countLogo(gd._fullLayout._modeBar)).toEqual(1);
766
+ expect(countButtons(gd._fullLayout._modeBar)).toEqual(1);
767
+ });
768
+
769
// gives 11 buttons in 5 groups by default
770
function setupGraphInfo() {
771
var gd = getMockGraphInfo(['x'], ['y']);
0 commit comments