diff options
Diffstat (limited to 'test/subtitle_font_id_test.cc')
| -rw-r--r-- | test/subtitle_font_id_test.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/subtitle_font_id_test.cc b/test/subtitle_font_id_test.cc index 49ad4ea05..8ced35108 100644 --- a/test/subtitle_font_id_test.cc +++ b/test/subtitle_font_id_test.cc @@ -332,3 +332,18 @@ BOOST_AUTO_TEST_CASE(subtitle_font_ids_survive_project_save) check_dcp->check_font_ids(); } + +BOOST_AUTO_TEST_CASE(cope_with_unloaded_font_id) +{ + /* This file has a <Font> with an ID that corresponds to no <LoadFont> */ + auto subs = content_factory("test/data/unloaded_font.xml")[0]; + auto film = new_test_film2("cope_with_unloaded_font_id", { subs }); + + make_and_verify_dcp( + film, + { + dcp::VerificationNote::Code::MISSING_SUBTITLE_LANGUAGE, + dcp::VerificationNote::Code::MISSING_CPL_METADATA + }); +} + |
