summaryrefslogtreecommitdiff
path: root/sw/qa/extras/inc
diff options
context:
space:
mode:
authorVasily Melenchuk <vasily.melenchuk@cib.de>2016-06-17 17:29:08 +0300
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2016-06-20 23:01:01 +0000
commited5dd24cbc5d81ae20a497d02fa968fd7fc7431a (patch)
treef051e09413292c4b9512eeb562270d324b383ae8 /sw/qa/extras/inc
parentb65f46127a9a1042edd4198f4a44820d7ea357a6 (diff)
Add MS binary format validation in writer export tests
Validation is done with Microsoft Office Binary File Format Validator if it is enabled. Since currently all doc files are not passing validation, they are included into validation blacklist. Change-Id: Ia36c5c9f2248122b13401a6d2834b729dbb75d6c Reviewed-on: https://gerrit.libreoffice.org/26422 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sw/qa/extras/inc')
-rw-r--r--sw/qa/extras/inc/swmodeltestbase.hxx16
1 files changed, 15 insertions, 1 deletions
diff --git a/sw/qa/extras/inc/swmodeltestbase.hxx b/sw/qa/extras/inc/swmodeltestbase.hxx
index fca647b6b6d0..8cff2ea21660 100644
--- a/sw/qa/extras/inc/swmodeltestbase.hxx
+++ b/sw/qa/extras/inc/swmodeltestbase.hxx
@@ -644,11 +644,25 @@ protected:
// too many validation errors right now
validate(maTempFile.GetFileName(), test::OOXML);
}
- else if(aFilterName == "writer8")
+ 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")
+ {
+ validate(maTempFile.GetFileName(), test::MSBINARY);
+ }
+ else
+ {
+ OString aMessage("validation requested, but don't know how to validate ");
+ aMessage += filename;
+ aMessage += " (";
+ aMessage += OUStringToOString(aFilterName, RTL_TEXTENCODING_UTF8);
+ aMessage += ")";
+ CPPUNIT_FAIL(aMessage.getStr());
+ }
}
discardDumpedLayout();
if (mustCalcLayoutOf(filename))