Kaydet (Commit) 2c4e0aaa authored tarafından Miklos Vajna's avatar Miklos Vajna

tdf#88986 testcase

Change-Id: I90d0c76c11e44ffe18be9fde4df06ccd0ac13da9
üst ab959403
...@@ -52,6 +52,8 @@ ...@@ -52,6 +52,8 @@
#include <editeng/wghtitem.hxx> #include <editeng/wghtitem.hxx>
#include "UndoManager.hxx" #include "UndoManager.hxx"
#include <textsh.hxx>
#include <frmmgr.hxx>
#include <com/sun/star/lang/Locale.hpp> #include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/lang/XMultiServiceFactory.hpp>
...@@ -145,6 +147,7 @@ public: ...@@ -145,6 +147,7 @@ public:
void testDde(); void testDde();
void testTdf89954(); void testTdf89954();
void testTdf89720(); void testTdf89720();
void testTdf88986();
CPPUNIT_TEST_SUITE(SwUiWriterTest); CPPUNIT_TEST_SUITE(SwUiWriterTest);
CPPUNIT_TEST(testReplaceForward); CPPUNIT_TEST(testReplaceForward);
...@@ -209,6 +212,7 @@ public: ...@@ -209,6 +212,7 @@ public:
CPPUNIT_TEST(testDde); CPPUNIT_TEST(testDde);
CPPUNIT_TEST(testTdf89954); CPPUNIT_TEST(testTdf89954);
CPPUNIT_TEST(testTdf89720); CPPUNIT_TEST(testTdf89720);
CPPUNIT_TEST(testTdf88986);
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
private: private:
...@@ -2146,6 +2150,22 @@ void SwUiWriterTest::testTdf89720() ...@@ -2146,6 +2150,22 @@ void SwUiWriterTest::testTdf89720()
} }
} }
void SwUiWriterTest::testTdf88986()
{
// Create a text shell.
SwDoc* pDoc = createDoc();
SwView* pView = pDoc->GetDocShell()->GetView();
SwTextShell aShell(*pView);
// Create the item set that is normally passed to the insert frame dialog.
SwWrtShell* pWrtShell = pDoc->GetDocShell()->GetWrtShell();
SwFlyFrmAttrMgr aMgr(true, pWrtShell, FRMMGR_TYPE_TEXT);
SfxItemSet aSet = aShell.CreateInsertFrameItemSet(aMgr);
// This was missing along with the gradient and other tables.
CPPUNIT_ASSERT(aSet.HasItem(SID_COLOR_TABLE));
}
CPPUNIT_TEST_SUITE_REGISTRATION(SwUiWriterTest); CPPUNIT_TEST_SUITE_REGISTRATION(SwUiWriterTest);
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