diff options
Diffstat (limited to 'libreofficekit/qa/unit/tiledrendering.cxx')
-rw-r--r-- | libreofficekit/qa/unit/tiledrendering.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libreofficekit/qa/unit/tiledrendering.cxx b/libreofficekit/qa/unit/tiledrendering.cxx index a2cbe6ecc0bc..a4e552507c39 100644 --- a/libreofficekit/qa/unit/tiledrendering.cxx +++ b/libreofficekit/qa/unit/tiledrendering.cxx @@ -195,16 +195,12 @@ void TiledRenderingTest::testGetStyles( Office* pOffice ) scoped_ptr< Document> pDocument( pOffice->documentLoad( sDocPath.c_str() ) ); boost::property_tree::ptree aTree; - char* pJSON = pDocument->getCommandValues(".uno:StyleApply"); + char* pJSON = pDocument->getStyles(); std::stringstream aStream(pJSON); boost::property_tree::read_json(aStream, aTree); CPPUNIT_ASSERT( aTree.size() > 0 ); - CPPUNIT_ASSERT( aTree.get_value<std::string>("commandName") == ".uno:StyleApply" ); - - boost::property_tree::ptree aValues = aTree.get_child("commandValues"); - CPPUNIT_ASSERT( aValues.size() > 0 ); - for (const std::pair<std::string, boost::property_tree::ptree>& rPair : aValues) + for (const std::pair<std::string, boost::property_tree::ptree>& rPair : aTree) { CPPUNIT_ASSERT( rPair.second.size() > 0); if (rPair.first != "CharacterStyles" && |