Kaydet (Commit) 26ce47ba authored tarafından Miklos Vajna's avatar Miklos Vajna

bnc#816593 WW8 import testcase

This always worked, but I almost broke it with
8fe8bd6c.

Change-Id: I6b7817830da23afea758d1eb90395aeb01e32f67
üst 95d8fa0b
This diff was suppressed by a .gitattributes entry.
......@@ -31,6 +31,7 @@ public:
void testFdo59530();
void testI120158();
void testN816603();
void testN816593();
CPPUNIT_TEST_SUITE(Test);
#if !defined(MACOSX) && !defined(WNT)
......@@ -55,6 +56,7 @@ void Test::run()
{"fdo59530.doc", &Test::testFdo59530},
{"i120158.doc", &Test::testI120158},
{"n816603.doc", &Test::testN816603},
{"n816593.doc", &Test::testN816593},
};
header();
for (unsigned int i = 0; i < SAL_N_ELEMENTS(aMethods); ++i)
......@@ -260,6 +262,15 @@ void Test::testN816603()
CPPUNIT_ASSERT(getPages() > 1);
}
void Test::testN816593()
{
uno::Reference<text::XTextTablesSupplier> xTextTablesSupplier(mxComponent, uno::UNO_QUERY);
uno::Reference<container::XIndexAccess> xIndexAccess(xTextTablesSupplier->getTextTables(), uno::UNO_QUERY);
// Make sure that even if we import the two tables as non-floating, we
// still consider them different, and not merge them.
CPPUNIT_ASSERT_EQUAL(sal_Int32(2), xIndexAccess->getCount());
}
CPPUNIT_TEST_SUITE_REGISTRATION(Test);
CPPUNIT_PLUGIN_IMPLEMENT();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment