Skip to content

Commit

Permalink
Add an image-based test case without ligatures
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Jul 27, 2019
1 parent 4cc171f commit 8b2052a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/referenceImages.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,18 @@ describe('reference images', function() {
describe(`with inlineSubsets:${inlineSubsets}`, function() {
for (const omitFallbacks of [true, false]) {
describe(`with omitFallbacks:${omitFallbacks}`, function() {
it('should render a simple test case without ligatures', async function() {
await expect(
'withoutLigatures',
'to render the same after subsetting',
{
inlineCss,
inlineSubsets,
omitFallbacks
}
);
});

it('should render ligatures correctly', async function() {
await expect(
'ligatures',
Expand Down
Binary file not shown.
21 changes: 21 additions & 0 deletions testdata/referenceImages/withoutLigatures/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<style>
@font-face {
font-family: roboto;
src: url(Roboto-400.woff2);
font-weight: 400;
font-style: normal;
}

p {
font-family: roboto;
font-size: 80px;
}
</style>
</head>
<body>
<p>Hello, world!"</p>
</body>
</html>

0 comments on commit 8b2052a

Please sign in to comment.