summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-08-07 12:15:57 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-08-08 16:32:56 +0200
commitd7fb4c8cd63eb5cf7386b801acf09afe44d68f3f (patch)
tree2772005e9e82a35f66fbb2b4e8b5925dff9284a2 /sw
parente70df84352d3670508a4666c97df44f82c1ce934 (diff)
fix test after recent <w:tabs> export change
Now that empty <w:tabs> is not written out, the style's tab stops will be the default. Change-Id: I2a876ba544a58fbb82218ec9fd4d1356ea9ac12c
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
index 020bffde39a2..6615343db092 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
@@ -97,7 +97,9 @@ void Test::defaultTabStopNotInStyles()
uno::Reference< beans::XPropertySet > properties( paragraphStyles->getByName( "Standard" ), uno::UNO_QUERY );
uno::Sequence< style::TabStop > stops = getProperty< uno::Sequence< style::TabStop > >(
paragraphStyles->getByName( "Standard" ), "ParaTabStops" );
- CPPUNIT_ASSERT_EQUAL( static_cast<sal_Int32>(0), stops.getLength());
+// There actually be be one tab stop, but it will be the default.
+ CPPUNIT_ASSERT_EQUAL( static_cast<sal_Int32>(1), stops.getLength());
+ CPPUNIT_ASSERT_EQUAL( style::TabAlign_DEFAULT, stops[ 0 ].Alignment );
}
void Test::testFdo38244()