diff --git a/tests/proofpdf_data/expected_output/SourceSansPro-Black.pdf b/tests/proofpdf_data/expected_output/SourceSansPro-Black.pdf new file mode 100644 index 000000000..7bdd0bd3f Binary files /dev/null and b/tests/proofpdf_data/expected_output/SourceSansPro-Black.pdf differ diff --git a/tests/proofpdf_data/expected_output/SourceSansPro-BlackIt.pdf b/tests/proofpdf_data/expected_output/SourceSansPro-BlackIt.pdf new file mode 100644 index 000000000..b8a31f049 Binary files /dev/null and b/tests/proofpdf_data/expected_output/SourceSansPro-BlackIt.pdf differ diff --git a/tests/proofpdf_data/input/SourceSansPro-Black.otf b/tests/proofpdf_data/input/SourceSansPro-Black.otf new file mode 100644 index 000000000..48412f707 Binary files /dev/null and b/tests/proofpdf_data/input/SourceSansPro-Black.otf differ diff --git a/tests/proofpdf_data/input/SourceSansPro-BlackIt.otf b/tests/proofpdf_data/input/SourceSansPro-BlackIt.otf new file mode 100644 index 000000000..b4eab324a Binary files /dev/null and b/tests/proofpdf_data/input/SourceSansPro-BlackIt.otf differ diff --git a/tests/proofpdf_test.py b/tests/proofpdf_test.py index 2ca225d8f..dee18c63b 100755 --- a/tests/proofpdf_test.py +++ b/tests/proofpdf_test.py @@ -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'])