diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-06-28 16:05:30 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2018-06-30 00:21:07 +0200 |
commit | 720d53ee663edf26b3e5bb29560c89bcc42aed3a (patch) | |
tree | bf6cca5437edc7fb073248eacd026ceeffdb346d /sw/qa/extras/inc/swmodeltestbase.hxx | |
parent | 42edc8004f98c2930cd2b95576cafa97447aeb09 (diff) |
schema,sw: enable ODF validation in all sw tests
Validate every ODT file that is exported via "reload" or "save".
Change-Id: I010965191159605924b89fe21b0b3d47123c13bd
Reviewed-on: https://gerrit.libreoffice.org/56607
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sw/qa/extras/inc/swmodeltestbase.hxx')
-rw-r--r-- | sw/qa/extras/inc/swmodeltestbase.hxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sw/qa/extras/inc/swmodeltestbase.hxx b/sw/qa/extras/inc/swmodeltestbase.hxx index 40a77a8e8024..ea3ce849a623 100644 --- a/sw/qa/extras/inc/swmodeltestbase.hxx +++ b/sw/qa/extras/inc/swmodeltestbase.hxx @@ -796,7 +796,8 @@ protected: { CPPUNIT_ASSERT_MESSAGE("Password set but not requested", xInteractionHandler->wasPasswordRequested()); } - if (mustValidate(filename)) + if (mustValidate(filename) || aFilterName == "writer8" + || aFilterName == "OpenDocument Text Flat XML") { if(aFilterName == "Office Open XML Text") { @@ -806,7 +807,6 @@ protected: else if(aFilterName == "writer8" || aFilterName == "OpenDocument Text Flat XML") { - // still a few validation errors validate(maTempFile.GetFileName(), test::ODF); } else if(aFilterName == "MS Word 97") @@ -838,6 +838,12 @@ protected: if (!maFilterOptions.isEmpty()) aMediaDescriptor["FilterOptions"] <<= maFilterOptions; xStorable->storeToURL(rTempFile.GetURL(), aMediaDescriptor.getAsConstPropertyValueList()); + // TODO: for now, validate only ODF here + if (aFilterName == "writer8" + || aFilterName == "OpenDocument Text Flat XML") + { + validate(rTempFile.GetFileName(), test::ODF); + } } void finish() |