summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-05-31 14:43:02 +0200
committerMiklos Vajna <vmiklos@suse.cz>2012-05-31 14:45:56 +0200
commitb54499c33323000cab5e779a512c69c8fc8af626 (patch)
treeb0831c02200c95caeb289f4d6153c340e95c0b4c /sw
parent6e770b161959e909edf600ee2a7f84ba138e6955 (diff)
n#764005 testcase
Change-Id: I76f7cb8aa5b15ac03786e7294ef03ad62741987c
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/extras/ooxmltok/data/n764005.docxbin0 -> 13088 bytes
-rw-r--r--sw/qa/extras/ooxmltok/ooxmltok.cxx19
2 files changed, 19 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmltok/data/n764005.docx b/sw/qa/extras/ooxmltok/data/n764005.docx
new file mode 100644
index 000000000000..1c0dd9d077e9
--- /dev/null
+++ b/sw/qa/extras/ooxmltok/data/n764005.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmltok/ooxmltok.cxx b/sw/qa/extras/ooxmltok/ooxmltok.cxx
index 67d18cef180e..6dd79277b92e 100644
--- a/sw/qa/extras/ooxmltok/ooxmltok.cxx
+++ b/sw/qa/extras/ooxmltok/ooxmltok.cxx
@@ -62,6 +62,7 @@ public:
void testN750255();
void testN652364();
void testN760764();
+ void testN764005();
CPPUNIT_TEST_SUITE(Test);
#if !defined(MACOSX) && !defined(WNT)
@@ -78,6 +79,7 @@ public:
CPPUNIT_TEST(testN750255);
CPPUNIT_TEST(testN652364);
CPPUNIT_TEST(testN760764);
+ CPPUNIT_TEST(testN764005);
#endif
CPPUNIT_TEST_SUITE_END();
@@ -424,6 +426,23 @@ void Test::testN760764()
CPPUNIT_ASSERT_EQUAL(8.f, fValue);
}
+void Test::testN764005()
+{
+ load("n764005.docx");
+
+ uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
+ uno::Reference<container::XIndexAccess> xDraws(xDrawPageSupplier->getDrawPage(), uno::UNO_QUERY);
+ uno::Reference<beans::XPropertySet> xPropertySet(xDraws->getByIndex(0), uno::UNO_QUERY);
+
+ // The picture in the header wasn't absolutely positioned and wasn't in the background.
+ text::TextContentAnchorType eValue;
+ xPropertySet->getPropertyValue("AnchorType") >>= eValue;
+ CPPUNIT_ASSERT(eValue != text::TextContentAnchorType_AS_CHARACTER);
+ sal_Bool bValue = sal_True;
+ xPropertySet->getPropertyValue("Opaque") >>= bValue;
+ CPPUNIT_ASSERT_EQUAL(sal_False, bValue);
+}
+
CPPUNIT_TEST_SUITE_REGISTRATION(Test);
CPPUNIT_PLUGIN_IMPLEMENT();