diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-10-10 16:07:44 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-10-10 16:07:44 +0100 |
| commit | e30c30ef7bbd8413ac0c8390abe574d5dd1cf5f7 (patch) | |
| tree | f67b4a9364264d433535dbc24a19b6df6ac59049 /test | |
| parent | 863ff8cced5b7d1d36ad6761fa1f6e2dbeafcad6 (diff) | |
Adapt to new libcxml ARI. Compiles but does not pass tests.1.0-new-cxml
Diffstat (limited to 'test')
| -rw-r--r-- | test/cpl_sar_test.cc | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/test/cpl_sar_test.cc b/test/cpl_sar_test.cc index 59a91c84..ca2e3693 100644 --- a/test/cpl_sar_test.cc +++ b/test/cpl_sar_test.cc @@ -39,21 +39,19 @@ BOOST_AUTO_TEST_CASE (cpl_sar) { pa->set_screen_aspect_ratio (dcp::Fraction (1998, 1080)); - xmlpp::Document doc; - xmlpp::Element* el = doc.create_root_node ("Test"); + cxml::NodePtr el (new cxml::Node); + el->set_name ("Test"); pa->write_to_cpl (el, dcp::INTEROP); - cxml::Node node (el); - BOOST_CHECK_EQUAL (node.node_child("MainPicture")->string_child ("ScreenAspectRatio"), "1.85"); + BOOST_CHECK_EQUAL (el->child("MainPicture")->string_child ("ScreenAspectRatio"), "1.85"); } { pa->set_screen_aspect_ratio (dcp::Fraction (2048, 858)); - xmlpp::Document doc; - xmlpp::Element* el = doc.create_root_node ("Test"); + cxml::NodePtr el (new cxml::Node); + el->set_name ("Test"); pa->write_to_cpl (el, dcp::INTEROP); - cxml::Node node (el); - BOOST_CHECK_EQUAL (node.node_child("MainPicture")->string_child ("ScreenAspectRatio"), "2.39"); + BOOST_CHECK_EQUAL (el->child("MainPicture")->string_child ("ScreenAspectRatio"), "2.39"); } } |
