Skip to content

Commit

Permalink
test watermark config option
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinerg committed Nov 22, 2018
1 parent cccff0d commit df10f70
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/jasmine/tests/modebar_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,16 @@ describe('ModeBar', function() {
expect(countLogo(gd._fullLayout._modeBar)).toEqual(0);
});

it('always displays the logo if watermark config arg is true', function() {
var gd = getMockGraphInfo();
gd._context.displaylogo = false;
gd._context.displayModeBar = false;
gd._context.watermark = true;
manageModeBar(gd);
expect(countLogo(gd._fullLayout._modeBar)).toEqual(1);
expect(countButtons(gd._fullLayout._modeBar)).toEqual(1);
});

// gives 11 buttons in 5 groups by default
function setupGraphInfo() {
var gd = getMockGraphInfo(['x'], ['y']);
Expand Down

0 comments on commit df10f70

Please sign in to comment.