diff options
author | Serge Krot <Serge.Krot@cib.de> | 2017-10-19 17:44:37 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2017-10-19 23:40:33 +0200 |
commit | 143c482b3189cb084fbdf5e6f78f15b43f099e24 (patch) | |
tree | 0683993a10c9517f3537cf3def4a09d99d9e38cd | |
parent | db90b1aa477baacf8cb85384343aba171b91eb5c (diff) |
sw: enable ooxml export tests also for Win32
* seems they work fine these days
* also removed magic number from fdo69649 test in favour of getting the
value straight from the document
Change-Id: Ife9d96eb413740b56b771df0d23e590f44f9452f
Reviewed-on: https://gerrit.libreoffice.org/43568
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport8.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport8.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport8.cxx index 03fd2fbc7103..e7f7c9ccfdc1 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport8.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport8.cxx @@ -117,8 +117,6 @@ protected: } }; -#if !defined(_WIN32) - DECLARE_OOXMLEXPORT_TEST(testN751054, "n751054.docx") { text::TextContentAnchorType eValue = getProperty<text::TextContentAnchorType>(getShape(1), "AnchorType"); @@ -1368,8 +1366,10 @@ DECLARE_OOXMLEXPORT_TEST(testFdo69649, "fdo69649.docx") xTextCursor->gotoRange(xTextRange->getStart(),false); xTextCursor->gotoRange(xTextRange->getEnd(),true); OUString aTocString(xTextCursor->getString()); - aTocString = aTocString.copy(256); - CPPUNIT_ASSERT(aTocString.startsWithIgnoreAsciiCase( "Heading 15.1:\t15" ) ); + + // heading 15 on the 15th page + aTocString = aTocString.copy(aTocString.indexOf("Heading 15.1:\t") + strlen("Heading 15.1:\t")); + CPPUNIT_ASSERT(aTocString.startsWithIgnoreAsciiCase( "15" ) ); } DECLARE_OOXMLEXPORT_TEST(testFdo73389,"fdo73389.docx") @@ -1891,8 +1891,6 @@ DECLARE_OOXMLEXPORT_TEST(testTdf87924, "tdf87924.docx") CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(0), aGeometry["TextPreRotateAngle"].get<sal_Int32>()); } -#endif - DECLARE_OOXMLEXPORT_TEST(testIndents, "indents.docx") { //expected left margin and first line indent values |