diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-02-07 22:03:28 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-02-07 22:03:28 +0000 |
| commit | 18dbb50a911612e3148ccb1479928fda74b83194 (patch) | |
| tree | 29168f1a5c576943f7183499c435e4879bc1cf09 | |
| parent | 8da9b51b24291b1043105ad4deb838d37f81e852 (diff) | |
New test.
| m--------- | test/data | 0 | ||||
| -rw-r--r-- | test/srt_subtitle_test.cc | 15 |
2 files changed, 15 insertions, 0 deletions
diff --git a/test/data b/test/data -Subproject 1b8b7430a07384a751bf7a5fd20db63c70d9a50 +Subproject 8e92ab871972fd6b19114e5783b5dfccba9a61e diff --git a/test/srt_subtitle_test.cc b/test/srt_subtitle_test.cc index 025972da8..61a38d0f6 100644 --- a/test/srt_subtitle_test.cc +++ b/test/srt_subtitle_test.cc @@ -177,6 +177,21 @@ BOOST_AUTO_TEST_CASE (srt_subtitle_test5) check_dcp ("test/data/xml_subtitle_test2", film->dir (film->dcp_name ())); } +BOOST_AUTO_TEST_CASE (srt_subtitle_test6) +{ + shared_ptr<Film> film = new_test_film2 ("srt_subtitle_test6"); + shared_ptr<TextSubtitleContent> content (new TextSubtitleContent (film, "test/data/frames.srt")); + content->subtitle->set_use (true); + content->subtitle->set_burn (false); + film->examine_and_add_content (content); + BOOST_REQUIRE (!wait_for_jobs ()); + film->make_dcp (); + BOOST_REQUIRE (!wait_for_jobs ()); + film->write_metadata (); + + check_dcp ("test/data/srt_subtitle_test6", film->dir(film->dcp_name())); +} + #if 0 /* XXX: this is disabled; there is some difference in font rendering between the test machine and others. |
