diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-06-28 13:04:30 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-06-28 13:04:30 +0200 |
| commit | d70f72ad7b25f5b71e8c27381e8bfdce6c0fa5b4 (patch) | |
| tree | 820d05ace03e08e140f7f31e84a893b5db04e15c /test | |
| parent | 8b45384a7c9162d30309345ae863b4cab86aeda1 (diff) | |
| parent | 3dbe0b9ff88a16b938ad6adf2c26179e278fa712 (diff) | |
Merge remote-tracking branch 'origin/main' into v2.17.x
Diffstat (limited to 'test')
| m--------- | test/data | 0 | ||||
| -rw-r--r-- | test/subtitle_font_id_test.cc | 15 |
2 files changed, 15 insertions, 0 deletions
diff --git a/test/data b/test/data -Subproject 02050bb9632658f0ce85ace219302b534f81eec +Subproject 3a3b29c0f1e9e2654ddee2028be623e1e1b3a33 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 + }); +} + |
