summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2021-07-20 20:17:32 +0200
committerMiklos Vajna <vmiklos@collabora.com>2021-07-21 08:37:00 +0200
commit8286014d9d3b96cd69e462a19d666488f66a89c9 (patch)
tree6c013e1c94ece9cf8ceec3e06cafc2f59b477f3d /sw
parentadd4f7732840d362cb703ee3a894edfe2fd0eac3 (diff)
CppunitTest_sw_ooxmlexport3: 1 removal of DECLARE_OOXMLEXPORT_EXPORTONLY_TEST
It shows that this is doable, but it also shows that we probably need some kind of loadAndSave() oneliner before a mass-conversion. Change-Id: Ia37423a2d84b4a155cfd5fa57b14b11f25fdd3eb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119291 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport3.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx
index e7daad0b0240..30bc65297c09 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx
@@ -155,8 +155,12 @@ DECLARE_OOXMLEXPORT_TEST(testCharacterBorder, "charborder.odt")
}
}
-DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testStyleInheritance, "style-inheritance.docx")
+CPPUNIT_TEST_FIXTURE(Test, testStyleInheritance)
{
+ load(mpTestDocumentPath, "style-inheritance.docx");
+ save("Office Open XML Text", maTempFile);
+ mbExported = true;
+
// Check that now styleId's are more like what MSO produces
xmlDocUniquePtr pXmlStyles = parseExport("word/styles.xml");
// the 1st style always must be Normal