summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-06-02 22:21:52 +0200
committerCarl Hetherington <cth@carlh.net>2023-06-05 00:48:55 +0200
commit742961d2c2cd446fcd96033403b35b0ae111401e (patch)
treebb7ae53ffd16d6df90bc2987189a749c97d92d84 /test
parentcc39c4f57fc48c581a25dc4c37f26adf95278914 (diff)
Give filler subtitle reels <LoadFont> nodes in SMPTE (#2547).
Diffstat (limited to 'test')
-rw-r--r--test/subtitle_font_id_test.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/subtitle_font_id_test.cc b/test/subtitle_font_id_test.cc
index 42ed8858f..ef5ed0e8c 100644
--- a/test/subtitle_font_id_test.cc
+++ b/test/subtitle_font_id_test.cc
@@ -187,3 +187,25 @@ BOOST_AUTO_TEST_CASE(make_dcp_with_subs_in_dcp_without_font_tag)
BOOST_CHECK(check_font_data.begin()->second == dcp::ArrayData(default_font_file()));
}
+
+BOOST_AUTO_TEST_CASE(filler_subtitle_reels_have_load_font_tags)
+{
+ auto const name = boost::unit_test::framework::current_test_case().full_name();
+
+ auto subs = content_factory("test/data/short.srt")[0];
+ auto video1 = content_factory("test/data/flat_red.png")[0];
+ auto video2 = content_factory("test/data/flat_red.png")[0];
+
+ auto film = new_test_film2(name, { video1, video2, subs });
+ film->set_reel_type(ReelType::BY_VIDEO_CONTENT);
+
+ make_and_verify_dcp(
+ film,
+ {
+ dcp::VerificationNote::Code::MISSING_SUBTITLE_LANGUAGE,
+ dcp::VerificationNote::Code::INVALID_SUBTITLE_FIRST_TEXT_TIME,
+ dcp::VerificationNote::Code::INVALID_SUBTITLE_SPACING,
+ dcp::VerificationNote::Code::MISSING_CPL_METADATA
+ });
+}
+