Kaydet (Commit) 54195c53 authored tarafından Markus Mohrhard's avatar Markus Mohrhard Kaydeden (comit) Markus Mohrhard

add disabled support for export validation in writer tests

Still too many validation errors to enable it.

Change-Id: I45830f6cff8ef52bc63fdda61a99985f4f7d242a
üst e896b8ec
...@@ -444,13 +444,25 @@ protected: ...@@ -444,13 +444,25 @@ protected:
uno::Reference<frame::XStorable> xStorable(mxComponent, uno::UNO_QUERY); uno::Reference<frame::XStorable> xStorable(mxComponent, uno::UNO_QUERY);
uno::Sequence<beans::PropertyValue> aArgs(1); uno::Sequence<beans::PropertyValue> aArgs(1);
aArgs[0].Name = "FilterName"; aArgs[0].Name = "FilterName";
aArgs[0].Value <<= OUString::createFromAscii(pFilter); OUString aFilterName = OUString::createFromAscii(pFilter);
aArgs[0].Value <<= aFilterName;
m_aTempFile.EnableKillingFile(); m_aTempFile.EnableKillingFile();
xStorable->storeToURL(m_aTempFile.GetURL(), aArgs); xStorable->storeToURL(m_aTempFile.GetURL(), aArgs);
uno::Reference<lang::XComponent> xComponent(xStorable, uno::UNO_QUERY); uno::Reference<lang::XComponent> xComponent(xStorable, uno::UNO_QUERY);
xComponent->dispose(); xComponent->dispose();
m_bExported = true; m_bExported = true;
mxComponent = loadFromDesktop(m_aTempFile.GetURL(), "com.sun.star.text.TextDocument"); 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) if (mpXmlBuffer)
{ {
xmlBufferFree(mpXmlBuffer); xmlBufferFree(mpXmlBuffer);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment