sw/qa/extras/ooxmlimport/ooxmlimport.cxx |   10 ++++++++++
 1 file changed, 10 insertions(+)

New commits:
commit 50c0ce4b82c8d0d298ea48fdb88b258fe971b671
Author: Miklos Vajna <vmik...@suse.cz>
Date:   Thu Mar 28 17:17:26 2013 +0100

    testcase for 6718482c072defe5d885030826fef5ef833732e9
    
    Change-Id: I32643128598e584076af41d0e4a2ceb58817a4d7

diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx 
b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index bf153a2..f7662ff 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();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to