Kaydet (Commit) c2447d0b authored tarafından David Tardon's avatar David Tardon

honor lib version in import tests again

Change-Id: Idf99aab4bc136ac4a8a07945001e4f34a34a0e17
üst aa1ee198
......@@ -28,6 +28,7 @@ $(eval $(call gb_Library_use_libraries,wpftqahelper,\
cppu \
sal \
test \
tl \
ucbhelper \
unotest \
))
......
......@@ -11,6 +11,8 @@
#include <com/sun/star/document/XFilter.hpp>
#include <tools/urlobj.hxx>
#include "WpftLoader.hxx"
namespace uno = com::sun::star::uno;
......@@ -31,6 +33,16 @@ WpftFilterTestBase::WpftFilterTestBase(const rtl::OUString &rFactoryURL)
bool WpftFilterTestBase::load(const OUString &, const OUString &rURL, const OUString &,
SfxFilterFlags, SotClipboardFormatId, unsigned int)
{
if (m_pOptionalMap)
{
// first check if this test file is supported by the used version of the library
const INetURLObject aUrl(rURL);
const WpftOptionalMap_t::const_iterator it(m_pOptionalMap->find(aUrl.getName()));
if ((it != m_pOptionalMap->end()) && !it->second)
return true; // skip the file
}
const WpftLoader aLoader(rURL, m_xFilter, m_aFactoryURL, m_xDesktop, m_xTypeMap, m_xContext);
return aLoader.getDocument().is();
}
......
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