summaryrefslogtreecommitdiff
path: root/sw/qa/extras/ooxmlexport
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-09-29 20:45:27 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-09-29 20:45:56 +0200
commit9c88837f0d8e2f679d779ebb5128ac6e15f022b9 (patch)
treec4ef0d286bbbce765d4d9065d041cd66e2198ba0 /sw/qa/extras/ooxmlexport
parent2b2246bb164ae58a39843218dcbcc425e4c38803 (diff)
SwModelTestBase: allow validating only a subset of the test files
Also, as a start, enable export validation for zoom.docx. Change-Id: I4620fbd516eeb4001770a4d69a89e7831566af92
Diffstat (limited to 'sw/qa/extras/ooxmlexport')
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport2.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport2.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport2.cxx
index 78fbb7ece004..32a63d5de784 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport2.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport2.cxx
@@ -74,6 +74,19 @@ protected:
// If the testcase is stored in some other format, it's pointless to test.
return (OString(filename).endsWith(".docx") && std::find(vBlacklist.begin(), vBlacklist.end(), filename) == vBlacklist.end());
}
+
+ /**
+ * Validation handling
+ */
+ bool mustValidate(const char* filename) const SAL_OVERRIDE
+ {
+ const char* aWhitelist[] = {
+ "zoom.docx"
+ };
+ std::vector<const char*> vWhitelist(aWhitelist, aWhitelist + SAL_N_ELEMENTS(aWhitelist));
+
+ return std::find(vWhitelist.begin(), vWhitelist.end(), filename) != vWhitelist.end();
+ }
};
#if !defined(WNT)