Skip to content

Commit

Permalink
waterfallplot integration tests using whole fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelsousa committed Oct 5, 2018
1 parent 589e368 commit c5b7416
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
16 changes: 16 additions & 0 deletions tests/proofpdf_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,19 @@ def test_fontplot2_lf_option(font_filename, glyphs):
expected_path = get_expected_path(pdf_filename)
assert differ([expected_path, save_path,
'-s', '/CreationDate', '-e', 'macroman'])


@pytest.mark.parametrize('filename', ['SourceSansPro-Black',
'SourceSansPro-BlackIt'])
def test_waterfallplot(filename):
font_filename = '{}.otf'.format(filename)
pdf_filename = '{}.pdf'.format(filename)
font_path = get_input_path(font_filename)
save_path = get_temp_file_path()
expected_path = get_expected_path(pdf_filename)
runner(['-t', 'waterfallplot',
'-o', 'o', '_{}'.format(save_path), 'dno', '-f', font_path, '-a'])
assert differ([expected_path, save_path,
'-s', '/CreationDate',
'-r', r'^BT 1 0 0 1 \d{3}\.\d+ 742\.0000 Tm', # timestamp
'-e', 'macroman'])

0 comments on commit c5b7416

Please sign in to comment.