X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Frender_subtitles_test.cc;h=5774c8e9af7e111dc4d5140eb68c39fc33627b2f;hb=b8650a25a30a25e567d68f9b775579661a1828b1;hp=29c6c9963575b949c29bcbe8012aa4ff8c1f0e54;hpb=cbba9723a56d101ab1fa814cee8671a6c1f729e5;p=dcpomatic.git diff --git a/test/render_subtitles_test.cc b/test/render_subtitles_test.cc index 29c6c9963..5774c8e9a 100644 --- a/test/render_subtitles_test.cc +++ b/test/render_subtitles_test.cc @@ -20,7 +20,7 @@ /** @file test/render_text_test.cc * @brief Check markup of subtitles for rendering. - * @ingroup specific + * @ingroup feature */ #include "lib/render_text.h" @@ -43,15 +43,16 @@ add (std::list& s, std::string text, bool italic, bool bold, bool un dcp::Time (), dcp::Time (), 1, - dcp::HALIGN_LEFT, + dcp::HAlign::LEFT, 1, - dcp::VALIGN_TOP, - dcp::DIRECTION_LTR, + dcp::VAlign::TOP, + dcp::Direction::LTR, text, - dcp::NONE, + dcp::Effect::NONE, dcp::Colour (0, 0, 0), dcp::Time (), - dcp::Time () + dcp::Time (), + 0 ), 2 ) @@ -63,7 +64,7 @@ BOOST_AUTO_TEST_CASE (render_markup_test1) { std::list s; add (s, "Hello", false, false, false); - BOOST_CHECK_EQUAL (marked_up (s, 1024, 1), "Hello"); + BOOST_CHECK_EQUAL (marked_up(s, 1024, 1, ""), "Hello"); } /** Test marked_up() in render_text.cc */ @@ -71,7 +72,7 @@ BOOST_AUTO_TEST_CASE (render_markup_test2) { std::list s; add (s, "Hello", false, true, false); - BOOST_CHECK_EQUAL (marked_up (s, 1024, 1), "Hello"); + BOOST_CHECK_EQUAL (marked_up(s, 1024, 1, ""), "Hello"); } @@ -80,7 +81,7 @@ BOOST_AUTO_TEST_CASE (render_markup_test3) { std::list s; add (s, "Hello", true, true, false); - BOOST_CHECK_EQUAL (marked_up (s, 1024, 1), "Hello"); + BOOST_CHECK_EQUAL (marked_up(s, 1024, 1, ""), "Hello"); } /** Test marked_up() in render_text.cc */ @@ -88,7 +89,7 @@ BOOST_AUTO_TEST_CASE (render_markup_test4) { std::list s; add (s, "Hello", true, true, true); - BOOST_CHECK_EQUAL (marked_up (s, 1024, 1), "Hello"); + BOOST_CHECK_EQUAL (marked_up(s, 1024, 1, ""), "Hello"); } /** Test marked_up() in render_text.cc */ @@ -97,7 +98,7 @@ BOOST_AUTO_TEST_CASE (render_markup_test5) std::list s; add (s, "Hello", false, true, false); add (s, " world.", false, false, false); - BOOST_CHECK_EQUAL (marked_up (s, 1024, 1), "Hello world."); + BOOST_CHECK_EQUAL (marked_up(s, 1024, 1, ""), "Hello world."); } /** Test marked_up() in render_text.cc */ @@ -107,5 +108,5 @@ BOOST_AUTO_TEST_CASE (render_markup_test6) add (s, "Hello", true, false, false); add (s, " world ", false, false, false); add (s, "we are bold.", false, true, false); - BOOST_CHECK_EQUAL (marked_up (s, 1024, 1), "Hello world we are bold."); + BOOST_CHECK_EQUAL (marked_up(s, 1024, 1, ""), "Hello world we are bold."); }