Skip to content

Commit

Permalink
added simple test
Browse files Browse the repository at this point in the history
  • Loading branch information
liborm85 committed Dec 24, 2024
1 parent 1e365b5 commit b1afe31
Show file tree
Hide file tree
Showing 2 changed files with 9 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.
9 changes: 9 additions & 0 deletions tests/visual/text.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,13 @@ describe('text', function() {
doc.fillColor('#000').list(['One', ['One.One', 'One.Two'], 'Three'], 100, 150, {listType: 'numbered'});
})
})

test('continued text with OpenType features', function() {
return runDocTest(function(doc) {
doc.font('tests/fonts/Roboto-Regular.ttf');
doc.text('Really simple', 100, 100, {features: ['smcp'], continued: true, lineBreak: false})
doc.text(' text', {features: [], lineBreak: false});
});
});

});

0 comments on commit b1afe31

Please sign in to comment.