summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorArtur Dorda <artur.dorda+libo@gmail.com>2012-06-15 16:12:52 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-07-12 03:10:12 +0200
commit817b35a9c3d69249a79ebaed291bb2d378b3a73f (patch)
treeaea191dc69d3fc2c6d1a1e7501b594aa5ee642ce /sd
parent3524c1a4dcdb07e8cb808ebb2311df164ab7a04b (diff)
New test files added, tests run for the 1st time
Change-Id: I2f47d5c61f92dbf051a8509528947c2465a2d020
Diffstat (limited to 'sd')
-rw-r--r--sd/qa/unit/data/odp/shapes-test.odpbin0 -> 22694 bytes
-rw-r--r--sd/qa/unit/data/odp/test.odpbin12685 -> 0 bytes
-rw-r--r--sd/qa/unit/data/odp/text-test.odpbin0 -> 16596 bytes
-rw-r--r--sd/qa/unit/regression-test.cxx16
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
new file mode 100644
index 000000000000..291a6fc682da
--- /dev/null
+++ b/sd/qa/unit/data/odp/shapes-test.odp
Binary files differ
diff --git a/sd/qa/unit/data/odp/test.odp b/sd/qa/unit/data/odp/test.odp
deleted file mode 100644
index cfa8d95be91e..000000000000
--- a/sd/qa/unit/data/odp/test.odp
+++ /dev/null
Binary files differ
diff --git a/sd/qa/unit/data/odp/text-test.odp b/sd/qa/unit/data/odp/text-test.odp
new file mode 100644
index 000000000000..415e05c7c2d8
--- /dev/null
+++ b/sd/qa/unit/data/odp/text-test.odp
Binary files differ
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)
{