diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-04-06 22:32:14 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-04-19 12:59:37 +0200 |
| commit | 7a47f00a7ff3f95ef4013bf453340b94c8535e07 (patch) | |
| tree | 134b34a64892e470c66cc599435f28e6b8190a23 /test | |
| parent | c6387f885fd39e901189b6c73fca0a28cc9ec85b (diff) | |
Remove xmlns:xs namespace from subtitle XML (DoM #2498).
Diffstat (limited to 'test')
| -rw-r--r-- | test/data/2007.mxf | bin | 17287 -> 17243 bytes | |||
| -rw-r--r-- | test/data/2010.mxf | bin | 17287 -> 17243 bytes | |||
| -rw-r--r-- | test/data/2014.mxf | bin | 17287 -> 17243 bytes | |||
| -rw-r--r-- | test/shared_subtitle_test.cc | 8 | ||||
| -rw-r--r-- | test/smpte_subtitle_test.cc | 2 | ||||
| -rw-r--r-- | test/verify_test.cc | 4 |
6 files changed, 8 insertions, 6 deletions
diff --git a/test/data/2007.mxf b/test/data/2007.mxf Binary files differindex be085a9c..fafe7768 100644 --- a/test/data/2007.mxf +++ b/test/data/2007.mxf diff --git a/test/data/2010.mxf b/test/data/2010.mxf Binary files differindex 60f20108..29ba626d 100644 --- a/test/data/2010.mxf +++ b/test/data/2010.mxf diff --git a/test/data/2014.mxf b/test/data/2014.mxf Binary files differindex a757dc31..43d0cded 100644 --- a/test/data/2014.mxf +++ b/test/data/2014.mxf diff --git a/test/shared_subtitle_test.cc b/test/shared_subtitle_test.cc index 9c841f90..69ae2be4 100644 --- a/test/shared_subtitle_test.cc +++ b/test/shared_subtitle_test.cc @@ -51,10 +51,10 @@ #include <boost/test/unit_test.hpp> -using std::string; +using std::make_shared; using std::shared_ptr; +using std::string; using std::vector; -using std::make_shared; using boost::optional; @@ -183,9 +183,9 @@ BOOST_AUTO_TEST_CASE (format_xml_test1) fred->add_child_text("Fred"); fred->add_child("Text")->add_child_text("Jim"); fred->add_child_text("Sheila"); - BOOST_REQUIRE_EQUAL (dcp::SubtitleAsset::format_xml(doc, { {"", "fred"}, {"jim", "sheila"} }), + BOOST_REQUIRE_EQUAL (dcp::SubtitleAsset::format_xml(doc, make_pair(string{}, string{"fred"})), "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" -"<Foo xmlns=\"fred\" xmlns:jim=\"sheila\">\n" +"<Foo xmlns=\"fred\">\n" " <Empty/>\n" " <Text>Hello world</Text>\n" " <Font>\n" diff --git a/test/smpte_subtitle_test.cc b/test/smpte_subtitle_test.cc index b271b02c..f66ca055 100644 --- a/test/smpte_subtitle_test.cc +++ b/test/smpte_subtitle_test.cc @@ -722,6 +722,8 @@ BOOST_AUTO_TEST_CASE(smpte_subtitle_standard_written_correctly) dcp::SMPTESubtitleAsset test_2014; test_2014.set_issue_date(dcp::LocalTime("2020-01-01T14:00:00")); test_2014.write(out / "2014.mxf"); + std::cout << dcp::SMPTESubtitleAsset(ref / "2014.mxf").raw_xml() << "\n"; + std::cout << dcp::SMPTESubtitleAsset(out / "2014.mxf").raw_xml() << "\n"; BOOST_CHECK(dcp::SMPTESubtitleAsset(ref / "2014.mxf").raw_xml() == dcp::SMPTESubtitleAsset(out / "2014.mxf").raw_xml()); dcp::SMPTESubtitleAsset test_2010(dcp::SubtitleStandard::SMPTE_2010); diff --git a/test/verify_test.cc b/test/verify_test.cc index e182f05d..1484dfb1 100644 --- a/test/verify_test.cc +++ b/test/verify_test.cc @@ -1421,7 +1421,7 @@ BOOST_AUTO_TEST_CASE (verify_invalid_closed_caption_xml_size_in_bytes) { dcp::VerificationNote::Type::BV21_ERROR, dcp::VerificationNote::Code::INVALID_CLOSED_CAPTION_XML_SIZE_IN_BYTES, - string("419336"), + string("419292"), canonical(dir / "subs.mxf") }, { dcp::VerificationNote::Type::WARNING, dcp::VerificationNote::Code::INVALID_SUBTITLE_FIRST_TEXT_TIME }, @@ -1461,7 +1461,7 @@ verify_timed_text_asset_too_large (string name) check_verify_result ( { dir }, { - { dcp::VerificationNote::Type::BV21_ERROR, dcp::VerificationNote::Code::INVALID_TIMED_TEXT_SIZE_IN_BYTES, string("121695532"), canonical(dir / "subs.mxf") }, + { dcp::VerificationNote::Type::BV21_ERROR, dcp::VerificationNote::Code::INVALID_TIMED_TEXT_SIZE_IN_BYTES, string("121695488"), canonical(dir / "subs.mxf") }, { dcp::VerificationNote::Type::BV21_ERROR, dcp::VerificationNote::Code::INVALID_TIMED_TEXT_FONT_SIZE_IN_BYTES, string("121634816"), canonical(dir / "subs.mxf") }, { dcp::VerificationNote::Type::BV21_ERROR, dcp::VerificationNote::Code::MISSING_SUBTITLE_START_TIME, canonical(dir / "subs.mxf") }, { dcp::VerificationNote::Type::WARNING, dcp::VerificationNote::Code::INVALID_SUBTITLE_FIRST_TEXT_TIME }, |
