diff options
author | Mihai Varga <mihai.varga@collabora.com> | 2015-09-04 15:45:51 +0300 |
---|---|---|
committer | Mihai Varga <mihai.varga@collabora.com> | 2015-09-04 15:46:48 +0300 |
commit | 262e7be01461887202f629d1ccc57751b1a085c5 (patch) | |
tree | f382436b6975543bae27173a9d3e9d038882a791 /libreofficekit/qa/unit | |
parent | b70b4ae26a4d5256444996da46abee85a81b53be (diff) |
Revert "LOK: added a general getCommandValues method"
This reverts commit 9640dcea46dd3201aa4c27f6a3918f7419288a2a.
Diffstat (limited to 'libreofficekit/qa/unit')
-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" && |