Kaydet (Commit) 63b78e6d authored tarafından Miklos Vajna's avatar Miklos Vajna

testcase for fdo#47107

üst ea04bbd6
{\rtf1
{\fonttbl
{\f1 Symbol;}
}
\pard \fi-283\li283
{\*\pn \pnlvlbody\pndec\pnstart1
{\pntxta .}
}
{Alpha
\par
Beta
\par }
\pard \fi-283\li283
{\*\pn \pnlvlblt\pnf1\pnstart1
{\pntxtb \'b7}
}
{Alpha
\par
Beta
\par }
}
...@@ -76,6 +76,7 @@ public: ...@@ -76,6 +76,7 @@ public:
void testFdo46955(); void testFdo46955();
void testFdo45394(); void testFdo45394();
void testFdo48104(); void testFdo48104();
void testFdo47107();
CPPUNIT_TEST_SUITE(RtfModelTest); CPPUNIT_TEST_SUITE(RtfModelTest);
#if !defined(MACOSX) && !defined(WNT) #if !defined(MACOSX) && !defined(WNT)
...@@ -95,6 +96,7 @@ public: ...@@ -95,6 +96,7 @@ public:
CPPUNIT_TEST(testFdo46955); CPPUNIT_TEST(testFdo46955);
CPPUNIT_TEST(testFdo45394); CPPUNIT_TEST(testFdo45394);
CPPUNIT_TEST(testFdo48104); CPPUNIT_TEST(testFdo48104);
CPPUNIT_TEST(testFdo47107);
#endif #endif
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
...@@ -486,6 +488,18 @@ void RtfModelTest::testFdo48104() ...@@ -486,6 +488,18 @@ void RtfModelTest::testFdo48104()
CPPUNIT_ASSERT_EQUAL(2, getPages()); CPPUNIT_ASSERT_EQUAL(2, getPages());
} }
void RtfModelTest::testFdo47107()
{
load("fdo47107.rtf");
uno::Reference<style::XStyleFamiliesSupplier> xStyleFamiliesSupplier(mxComponent, uno::UNO_QUERY);
uno::Reference<container::XNameAccess> xStyles(xStyleFamiliesSupplier->getStyleFamilies(), uno::UNO_QUERY);
uno::Reference<container::XNameAccess> xNumberingStyles(xStyles->getByName(OUString(RTL_CONSTASCII_USTRINGPARAM("NumberingStyles"))), uno::UNO_QUERY);
// Make sure numbered and bullet legacy syntax is recognized, this used to throw a NoSuchElementException
xNumberingStyles->getByName("WWNum1");
xNumberingStyles->getByName("WWNum2");
}
CPPUNIT_TEST_SUITE_REGISTRATION(RtfModelTest); CPPUNIT_TEST_SUITE_REGISTRATION(RtfModelTest);
CPPUNIT_PLUGIN_IMPLEMENT(); 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