summaryrefslogtreecommitdiff
path: root/desktop/qa
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej@ahunt.org>2015-11-11 17:09:47 +0100
committerAndrzej Hunt <andrzej@ahunt.org>2015-11-11 20:36:17 +0000
commit0b5991e4862501f0fa8e34f1b403aca40e51436f (patch)
treec8b5455ac68ad29d5eb77d4f2be37217f62d4e6f /desktop/qa
parent981c217b125baf154897233020510fe608a07eda (diff)
lok: add Clear formatting to getStyles()
This requires client-side support too. Change-Id: I5197ed3ed2b8244b50f7faf84a1cadde6a61b2cb Reviewed-on: https://gerrit.libreoffice.org/19917 Reviewed-by: Andrzej Hunt <andrzej@ahunt.org> Tested-by: Andrzej Hunt <andrzej@ahunt.org>
Diffstat (limited to 'desktop/qa')
-rw-r--r--desktop/qa/desktop_lib/test_desktop_lib.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/desktop/qa/desktop_lib/test_desktop_lib.cxx b/desktop/qa/desktop_lib/test_desktop_lib.cxx
index f32f4bdd1ce6..2351c7bff79b 100644
--- a/desktop/qa/desktop_lib/test_desktop_lib.cxx
+++ b/desktop/qa/desktop_lib/test_desktop_lib.cxx
@@ -181,14 +181,18 @@ void DesktopLOKTest::testGetStyles()
CPPUNIT_ASSERT( aValues.size() > 0 );
for (const std::pair<std::string, boost::property_tree::ptree>& rPair : aValues)
{
- CPPUNIT_ASSERT( rPair.second.size() > 0);
+ if( rPair.first != "ClearStyle")
+ {
+ CPPUNIT_ASSERT( rPair.second.size() > 0);
+ }
if (rPair.first != "CharacterStyles" &&
rPair.first != "ParagraphStyles" &&
rPair.first != "FrameStyles" &&
rPair.first != "PageStyles" &&
rPair.first != "NumberingStyles" &&
rPair.first != "CellStyles" &&
- rPair.first != "ShapeStyles")
+ rPair.first != "ShapeStyles" &&
+ rPair.first != "ClearStyle")
{
CPPUNIT_FAIL("Unknown style family: " + rPair.first);
}