diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-05-15 10:24:26 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-05-15 10:38:59 +0200 |
commit | 7d8077f2aea1f42ca19d5c685e64f597293f89bc (patch) | |
tree | 14de1c88c639647d9049373df12f4f1dafece77f /sw/qa | |
parent | cdf783872af1df9389353803dc64ccab0c8f033e (diff) |
n#760294 testcase
Change-Id: I52f063848c7bd63bdef73fb21eaad4256a14d128
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/ww8tok/data/n760294.doc | bin | 0 -> 26112 bytes | |||
-rw-r--r-- | sw/qa/extras/ww8tok/ww8tok.cxx | 17 |
2 files changed, 17 insertions, 0 deletions
diff --git a/sw/qa/extras/ww8tok/data/n760294.doc b/sw/qa/extras/ww8tok/data/n760294.doc Binary files differnew file mode 100644 index 000000000000..04960d060b15 --- /dev/null +++ b/sw/qa/extras/ww8tok/data/n760294.doc diff --git a/sw/qa/extras/ww8tok/ww8tok.cxx b/sw/qa/extras/ww8tok/ww8tok.cxx index 6a3ec7423c4d..dfc047ee2f42 100644 --- a/sw/qa/extras/ww8tok/ww8tok.cxx +++ b/sw/qa/extras/ww8tok/ww8tok.cxx @@ -28,8 +28,10 @@ #include "../swmodeltestbase.hxx" #include <com/sun/star/table/BorderLine2.hpp> +#include <com/sun/star/table/TableBorder.hpp> #include <com/sun/star/text/XDependentTextField.hpp> #include <com/sun/star/text/XTextFramesSupplier.hpp> +#include <com/sun/star/text/XTextTablesSupplier.hpp> #include <vcl/svapp.hxx> @@ -41,10 +43,12 @@ class Test : public SwModelTestBase { public: void testN757910(); + void testN760294(); CPPUNIT_TEST_SUITE(Test); #if !defined(MACOSX) && !defined(WNT) CPPUNIT_TEST(testN757910); + CPPUNIT_TEST(testN760294); #endif CPPUNIT_TEST_SUITE_END(); @@ -76,6 +80,19 @@ void Test::testN757910() CPPUNIT_ASSERT(aBorder.LineWidth > 0); } +void Test::testN760294() +{ + load("n760294.doc"); + + uno::Reference<text::XTextTablesSupplier> xTextTablesSupplier(mxComponent, uno::UNO_QUERY); + uno::Reference<container::XIndexAccess> xIndexAccess(xTextTablesSupplier->getTextTables(), uno::UNO_QUERY); + uno::Reference<beans::XPropertySet> xTable(xIndexAccess->getByIndex(0), uno::UNO_QUERY); + table::TableBorder aTableBorder; + xTable->getPropertyValue("TableBorder") >>= aTableBorder; + CPPUNIT_ASSERT_EQUAL(aTableBorder.TopLine.InnerLineWidth, aTableBorder.TopLine.OuterLineWidth); + CPPUNIT_ASSERT_EQUAL(aTableBorder.TopLine.InnerLineWidth, aTableBorder.TopLine.LineDistance); +} + CPPUNIT_TEST_SUITE_REGISTRATION(Test); CPPUNIT_PLUGIN_IMPLEMENT(); |