summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-04-05 00:27:31 +0100
committerCarl Hetherington <cth@carlh.net>2016-04-05 00:27:31 +0100
commit42f74b7980945813e1318d6d0b37b2da3a492c05 (patch)
treede3ae846f4a6998bd60291b66b72152ee57d40f1
parentbc118b663b0582cf4afdce3000beb8bac35b16ef (diff)
Add a couple of small bold tests.
-rw-r--r--test/data/subs1.xml8
-rw-r--r--test/read_interop_subtitle_test.cc2
-rw-r--r--test/write_subtitle_test.cc4
3 files changed, 8 insertions, 6 deletions
diff --git a/test/data/subs1.xml b/test/data/subs1.xml
index 515dd9f7..f4a4ded8 100644
--- a/test/data/subs1.xml
+++ b/test/data/subs1.xml
@@ -20,8 +20,10 @@
<Subtitle SpotNumber="3" TimeIn="00:00:11:094" TimeOut="00:00:13:063" FadeUpTime="1" FadeDownTime="1">
<Text VAlign="bottom" VPosition="15.0">Once belonged to the Shah</Text>
</Subtitle>
- <Subtitle SpotNumber="4" TimeIn="00:00:13:104" TimeOut="00:00:15:177" FadeUpTime="1" FadeDownTime="1">
- <Text VAlign="bottom" VPosition="15.0">And these are Roy Hattersley's jeans</Text>
- </Subtitle>
+ <Font Weight="bold">
+ <Subtitle SpotNumber="4" TimeIn="00:00:13:104" TimeOut="00:00:15:177" FadeUpTime="1" FadeDownTime="1">
+ <Text VAlign="bottom" VPosition="15.0">And these are Roy Hattersley's jeans</Text>
+ </Subtitle>
+ </Font>
</Font>
</DCSubtitle>
diff --git a/test/read_interop_subtitle_test.cc b/test/read_interop_subtitle_test.cc
index 7cbb5803..7822d47e 100644
--- a/test/read_interop_subtitle_test.cc
+++ b/test/read_interop_subtitle_test.cc
@@ -134,7 +134,7 @@ BOOST_AUTO_TEST_CASE (read_interop_subtitle_test1)
BOOST_CHECK_EQUAL (s.back(), dcp::SubtitleString (
string ("theFontId"),
false,
- false,
+ true,
dcp::Colour (255, 255, 255),
39,
1.0,
diff --git a/test/write_subtitle_test.cc b/test/write_subtitle_test.cc
index e407b81f..67bfcd4e 100644
--- a/test/write_subtitle_test.cc
+++ b/test/write_subtitle_test.cc
@@ -60,7 +60,7 @@ BOOST_AUTO_TEST_CASE (write_subtitle_test)
dcp::SubtitleString (
boost::optional<string> (),
true,
- false,
+ true,
dcp::Colour (128, 0, 64),
91,
1.0,
@@ -92,7 +92,7 @@ BOOST_AUTO_TEST_CASE (write_subtitle_test)
" <Text VAlign=\"top\" VPosition=\"80\">Hello world</Text>\n"
" </Subtitle>\n"
" </Font>\n"
- " <Font Italic=\"yes\" Color=\"FF800040\" Size=\"91\" Effect=\"border\" EffectColor=\"FF010203\" Script=\"normal\" Underlined=\"no\" Weight=\"normal\">\n"
+ " <Font Italic=\"yes\" Color=\"FF800040\" Size=\"91\" Effect=\"border\" EffectColor=\"FF010203\" Script=\"normal\" Underlined=\"no\" Weight=\"bold\">\n"
" <Subtitle SpotNumber=\"2\" TimeIn=\"05:41:00:218\" TimeOut=\"06:12:15:218\" FadeUpTime=\"930792\" FadeDownTime=\"4591834\">\n"
" <Text VAlign=\"bottom\" VPosition=\"40\">What's going on</Text>\n"
" </Subtitle>\n"