Skip to content

Commit df10f70

Browse files
committed
test watermark config option
1 parent cccff0d commit df10f70

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/jasmine/tests/modebar_test.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,16 @@ describe('ModeBar', function() {
756756
expect(countLogo(gd._fullLayout._modeBar)).toEqual(0);
757757
});
758758

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+
759769
// gives 11 buttons in 5 groups by default
760770
function setupGraphInfo() {
761771
var gd = getMockGraphInfo(['x'], ['y']);

0 commit comments

Comments
 (0)