summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-03-28 17:17:26 +0100
committerMiklos Vajna <vmiklos@suse.cz>2013-03-28 17:21:23 +0100
commit50c0ce4b82c8d0d298ea48fdb88b258fe971b671 (patch)
tree37bb84c0beffcc79beca9aae7501490f72682293 /sw
parent584322cbbd063e0a8d2c18a5e6a12f213af56057 (diff)
testcase for 6718482c072defe5d885030826fef5ef833732e9
Change-Id: I32643128598e584076af41d0e4a2ceb58817a4d7
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/extras/ooxmlimport/ooxmlimport.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index bf153a27f9c9..f7662ffd3f94 100644
--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
@@ -123,6 +123,7 @@ public:
void testToolsLineNumbering();
void testFdo60922();
void testFdo59273();
+ void testTableWidth();
CPPUNIT_TEST_SUITE(Test);
#if !defined(MACOSX) && !defined(WNT)
@@ -197,6 +198,7 @@ void Test::run()
{"tools-line-numbering.docx", &Test::testToolsLineNumbering},
{"fdo60922.docx", &Test::testFdo60922},
{"fdo59273.docx", &Test::testFdo59273},
+ {"table_width.docx", &Test::testTableWidth},
};
header();
for (unsigned int i = 0; i < SAL_N_ELEMENTS(aMethods); ++i)
@@ -1300,6 +1302,14 @@ void Test::testFdo59273()
CPPUNIT_ASSERT_EQUAL(sal_Int16(7499), getProperty< uno::Sequence<text::TableColumnSeparator> >(xTableRows->getByIndex(0), "TableColumnSeparators")[2].Position);
}
+void Test::testTableWidth()
+{
+ uno::Reference<text::XTextTablesSupplier> xTablesSupplier(mxComponent, uno::UNO_QUERY);
+ uno::Reference<container::XIndexAccess> xTables(xTablesSupplier->getTextTables(), uno::UNO_QUERY);
+ // Relative width wasn't recognized during import.
+ CPPUNIT_ASSERT_EQUAL(true, bool(getProperty<sal_Bool>(xTables->getByIndex(0), "IsWidthRelative")));
+}
+
CPPUNIT_TEST_SUITE_REGISTRATION(Test);
CPPUNIT_PLUGIN_IMPLEMENT();