diff options
author | Artur Dorda <artur.dorda+libo@gmail.com> | 2012-06-15 16:12:52 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-07-12 03:10:12 +0200 |
commit | 817b35a9c3d69249a79ebaed291bb2d378b3a73f (patch) | |
tree | aea191dc69d3fc2c6d1a1e7501b594aa5ee642ce /sd/qa | |
parent | 3524c1a4dcdb07e8cb808ebb2311df164ab7a04b (diff) |
New test files added, tests run for the 1st time
Change-Id: I2f47d5c61f92dbf051a8509528947c2465a2d020
Diffstat (limited to 'sd/qa')
-rw-r--r-- | sd/qa/unit/data/odp/shapes-test.odp | bin | 0 -> 22694 bytes | |||
-rw-r--r-- | sd/qa/unit/data/odp/test.odp | bin | 12685 -> 0 bytes | |||
-rw-r--r-- | sd/qa/unit/data/odp/text-test.odp | bin | 0 -> 16596 bytes | |||
-rw-r--r-- | sd/qa/unit/regression-test.cxx | 16 |
4 files changed, 14 insertions, 2 deletions
diff --git a/sd/qa/unit/data/odp/shapes-test.odp b/sd/qa/unit/data/odp/shapes-test.odp Binary files differnew file mode 100644 index 000000000000..291a6fc682da --- /dev/null +++ b/sd/qa/unit/data/odp/shapes-test.odp diff --git a/sd/qa/unit/data/odp/test.odp b/sd/qa/unit/data/odp/test.odp Binary files differdeleted file mode 100644 index cfa8d95be91e..000000000000 --- a/sd/qa/unit/data/odp/test.odp +++ /dev/null diff --git a/sd/qa/unit/data/odp/text-test.odp b/sd/qa/unit/data/odp/text-test.odp Binary files differnew file mode 100644 index 000000000000..415e05c7c2d8 --- /dev/null +++ b/sd/qa/unit/data/odp/text-test.odp diff --git a/sd/qa/unit/regression-test.cxx b/sd/qa/unit/regression-test.cxx index d5e089bd03e3..e81c7e281829 100644 --- a/sd/qa/unit/regression-test.cxx +++ b/sd/qa/unit/regression-test.cxx @@ -119,6 +119,7 @@ public: private: uno::Reference<document::XFilter> m_xFilter; uno::Reference<uno::XInterface> m_xDrawComponent; + void testStuff(::sd::DrawDocShellRef xDocShRef); }; #define PPTX_FORMAT_TYPE 268959811 @@ -173,7 +174,19 @@ FileFormat aFileFormats[] = { void SdFiltersTest::test() { - ::sd::DrawDocShellRef xDocShRef = loadURL(getURLFromSrc("/sd/qa/unit/data/odp/test.odp")); + { + ::sd::DrawDocShellRef xDocShRef = loadURL(getURLFromSrc("/sd/qa/unit/data/odp/shapes-test.odp")); + testStuff(xDocShRef); + } + { + ::sd::DrawDocShellRef xDocShRef = loadURL(getURLFromSrc("/sd/qa/unit/data/odp/text-test.odp")); + testStuff(xDocShRef); + } + CPPUNIT_ASSERT(false); +} + +void SdFiltersTest::testStuff(::sd::DrawDocShellRef xDocShRef) +{ CPPUNIT_ASSERT_MESSAGE( "failed to load", xDocShRef.Is() ); CPPUNIT_ASSERT_MESSAGE( "not in destruction", !xDocShRef->IsInDestruction() ); @@ -197,7 +210,6 @@ void SdFiltersTest::test() } xDocShRef->DoClose(); } - bool SdFiltersTest::load(const rtl::OUString &rFilter, const rtl::OUString &rURL, const rtl::OUString &rUserData) { |