sw/qa/extras/odfexport/odfexport.cxx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
New commits: commit 859df5799b683a1278e4e9fe7790a3f50c304cfa Author: Miklos Vajna <vmik...@collabora.co.uk> Date: Sun Dec 28 12:00:05 2014 +0100 CppunitTest_sw_odfexport: validate export result, except a few Change-Id: Ie555a72519b251cea3bd98cdfbd6d93295dea079 diff --git a/sw/qa/extras/odfexport/odfexport.cxx b/sw/qa/extras/odfexport/odfexport.cxx index 194fc34..77ae4ec 100644 --- a/sw/qa/extras/odfexport/odfexport.cxx +++ b/sw/qa/extras/odfexport/odfexport.cxx @@ -9,6 +9,8 @@ #include <swmodeltestbase.hxx> +#include <initializer_list> + #if !defined(MACOSX) #include <com/sun/star/awt/Gradient.hpp> #include <com/sun/star/container/XIndexReplace.hpp> @@ -33,6 +35,21 @@ public: // Only test import of .odt document return OString(filename).endsWith(".odt"); } + + bool mustValidate(const char* filename) const SAL_OVERRIDE + { + std::vector<const char*> aBlacklist = { + // These are known problems, they should be fixed one by one. + "fdo86963.odt", + "shape-relsize.odt", + "charborder.odt", + "fdo60769.odt", + "first-header-footer.odt", + "fdo38244.odt" + }; + + return std::find(aBlacklist.begin(), aBlacklist.end(), filename) == aBlacklist.end(); + } }; DECLARE_ODFEXPORT_TEST(testFdo38244, "fdo38244.odt") _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits