diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-09-25 08:58:18 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-09-25 09:58:42 +0200 |
commit | 7ea71eb8a28c4b41949299ff7d4b391486c90eea (patch) | |
tree | 007a616bc5eb723727f93546e1f538fcaf33ecca /sw | |
parent | 73bd937420b9a99e1e35950e3f9dcbcfd874876d (diff) |
n#780853 testcase
Change-Id: I5b5d5c16722d66cd3a583f9cc5d6d6bdc6da5047
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/ooxmlimport/data/n780853.docx | bin | 0 -> 9261 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlimport/ooxmlimport.cxx | 15 |
2 files changed, 15 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlimport/data/n780853.docx b/sw/qa/extras/ooxmlimport/data/n780853.docx Binary files differnew file mode 100644 index 000000000000..fed8276fbb2a --- /dev/null +++ b/sw/qa/extras/ooxmlimport/data/n780853.docx diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx index 34581e54fe83..f7c75c5eab99 100644 --- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx +++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx @@ -93,6 +93,7 @@ public: void testN779627(); void testFdo55187(); void testN780563(); + void testN780853(); CPPUNIT_TEST_SUITE(Test); #if !defined(MACOSX) && !defined(WNT) @@ -132,6 +133,7 @@ public: CPPUNIT_TEST(testN779627); CPPUNIT_TEST(testFdo55187); CPPUNIT_TEST(testN780563); + CPPUNIT_TEST(testN780853); #endif CPPUNIT_TEST_SUITE_END(); @@ -907,6 +909,19 @@ void Test::testN780563() CPPUNIT_ASSERT_EQUAL(sal_Int32(1), xTables->getCount( )); } +void Test::testN780853() +{ + /* + * The problem was that the table was not imported. + * + * xray ThisComponent.TextTables.Count 'was 0 + */ + load("n780853.docx"); + uno::Reference<text::XTextTablesSupplier> xTextTablesSupplier(mxComponent, uno::UNO_QUERY); + uno::Reference<container::XIndexAccess> xIndexAccess(xTextTablesSupplier->getTextTables(), uno::UNO_QUERY); + CPPUNIT_ASSERT_EQUAL(sal_Int32(1), xIndexAccess->getCount()); +} + CPPUNIT_TEST_SUITE_REGISTRATION(Test); CPPUNIT_PLUGIN_IMPLEMENT(); |