Skip to content

Commit

Permalink
adds test case with line-breaks in list items
Browse files Browse the repository at this point in the history
reproduces foliojs#1486
  • Loading branch information
filecage committed Dec 20, 2023
1 parent 408dc4e commit a3af02a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions tests/visual/text.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,11 @@ describe('text', function() {
doc.fillColor('#000').list(['One', 'Two', 'Three'], 100, 150);
});
});

test('list with line breaks in value', function() {
return runDocTest(function(doc) {
doc.font('tests/fonts/Roboto-Regular.ttf');
doc.list(['Foo\nBar'], [100, 150]);
})
})
});

0 comments on commit a3af02a

Please sign in to comment.