diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-08-13 02:14:00 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-08-13 02:14:00 +0100 |
| commit | cadec42b9547665ac03a7180af374ebb40df7c78 (patch) | |
| tree | fed45715e96ce2b0046fd956963efb6625407f78 /test | |
| parent | 4c987f7feb504fe4011b52ffeb231e3b25823de1 (diff) | |
Subtitles at method.
Diffstat (limited to 'test')
| -rw-r--r-- | test/tests.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/tests.cc b/test/tests.cc index b8d9ef97..cb180ec0 100644 --- a/test/tests.cc +++ b/test/tests.cc @@ -124,6 +124,9 @@ BOOST_AUTO_TEST_CASE (subtitles) BOOST_CHECK_EQUAL ((*i)->texts().size(), 1); BOOST_CHECK_EQUAL ((*i)->texts().front()->v_position(), 15); BOOST_CHECK_EQUAL ((*i)->texts().front()->text(), "And these are Roy Hattersley's jeans"); + + BOOST_CHECK_EQUAL (subs.subtitles_at (libdcp::Time (0, 0, 14, 042)).size(), 1); + BOOST_CHECK_EQUAL (subs.subtitles_at (libdcp::Time (0, 0, 14, 042)).front()->text(), "And these are Roy Hattersley's jeans"); } |
