summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-03-08 18:28:02 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-03-08 18:31:13 +0100
commit54195c53a915b28302bf36333d2b328e57881b30 (patch)
tree1853660e065c180ba61e0c826a624331f207d98f /sw
parente896b8ecdbdf62a30c4097e283b0ad67a91ab60f (diff)
add disabled support for export validation in writer tests
Still too many validation errors to enable it. Change-Id: I45830f6cff8ef52bc63fdda61a99985f4f7d242a
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/extras/inc/swmodeltestbase.hxx14
1 files changed, 13 insertions, 1 deletions
diff --git a/sw/qa/extras/inc/swmodeltestbase.hxx b/sw/qa/extras/inc/swmodeltestbase.hxx
index 77c32c263931..a3c3decf1edb 100644
--- a/sw/qa/extras/inc/swmodeltestbase.hxx
+++ b/sw/qa/extras/inc/swmodeltestbase.hxx
@@ -444,13 +444,25 @@ protected:
uno::Reference<frame::XStorable> xStorable(mxComponent, uno::UNO_QUERY);
uno::Sequence<beans::PropertyValue> aArgs(1);
aArgs[0].Name = "FilterName";
- aArgs[0].Value <<= OUString::createFromAscii(pFilter);
+ OUString aFilterName = OUString::createFromAscii(pFilter);
+ aArgs[0].Value <<= aFilterName;
m_aTempFile.EnableKillingFile();
xStorable->storeToURL(m_aTempFile.GetURL(), aArgs);
uno::Reference<lang::XComponent> xComponent(xStorable, uno::UNO_QUERY);
xComponent->dispose();
m_bExported = true;
mxComponent = loadFromDesktop(m_aTempFile.GetURL(), "com.sun.star.text.TextDocument");
+ if(aFilterName == "Office Open XML Text")
+ {
+ // too many validation errors right now
+ // validate(m_aTempFile.GetFileName(), test::OOXML);
+ }
+ else if(aFilterName == "writer8")
+ {
+ // still a few validation errors
+ // validate(m_aTempFile.GetFileName(), test::ODF);
+ }
+
if (mpXmlBuffer)
{
xmlBufferFree(mpXmlBuffer);