diff options
author | Jan Holesovsky <kendy@suse.cz> | 2013-05-14 12:06:11 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2013-05-14 16:50:47 +0200 |
commit | 7f33959d0b0c57838d5752d7053cf6c102ac5bd4 (patch) | |
tree | 3fde2564a6e2a8a672334b733e774112e89250d1 /sd/qa | |
parent | 39ee11db03368a18bc1746a6312307c4cf1b4bdc (diff) |
sd unittests: Move Autofit test to the import tests.
Change-Id: I6c49345fa518f19c942ff0fd7849c689d0cd5db6
Diffstat (limited to 'sd/qa')
-rw-r--r-- | sd/qa/unit/filters-test.cxx | 20 | ||||
-rw-r--r-- | sd/qa/unit/import-tests.cxx | 20 |
2 files changed, 20 insertions, 20 deletions
diff --git a/sd/qa/unit/filters-test.cxx b/sd/qa/unit/filters-test.cxx index e51a7770b6ca..f0c361133fa0 100644 --- a/sd/qa/unit/filters-test.cxx +++ b/sd/qa/unit/filters-test.cxx @@ -52,10 +52,8 @@ public: // Ensure CVEs remain unbroken void testCVEs(); - void testN778859(); CPPUNIT_TEST_SUITE(SdFiltersTest); - CPPUNIT_TEST(testN778859); CPPUNIT_TEST(testCVEs); CPPUNIT_TEST_SUITE_END(); @@ -112,24 +110,6 @@ FileFormat aFileFormats[] = { return xDocShRef; } -void SdFiltersTest::testN778859() -{ - ::sd::DrawDocShellRef xDocShRef = loadURL(getURLFromSrc("/sd/qa/unit/data/pptx/n778859.pptx")); - CPPUNIT_ASSERT_MESSAGE( "failed to load", xDocShRef.Is() ); - CPPUNIT_ASSERT_MESSAGE( "not in destruction", !xDocShRef->IsInDestruction() ); - - SdDrawDocument *pDoc = xDocShRef->GetDoc(); - CPPUNIT_ASSERT_MESSAGE( "no document", pDoc != NULL ); - const SdrPage *pPage = pDoc->GetPage(1); - CPPUNIT_ASSERT_MESSAGE( "no page", pPage != NULL ); - { - // Get the object - SdrObject *pObj = pPage->GetObj(1); - SdrTextObj *pTxtObj = dynamic_cast<SdrTextObj *>( pObj ); - CPPUNIT_ASSERT(!pTxtObj->IsAutoFit()); - } -} - bool SdFiltersTest::load(const OUString &rFilter, const OUString &rURL, const OUString &rUserData, unsigned int nFilterFlags, unsigned int nClipboardID, unsigned int nFilterVersion) diff --git a/sd/qa/unit/import-tests.cxx b/sd/qa/unit/import-tests.cxx index 0906464057b5..df3b1de7e9ac 100644 --- a/sd/qa/unit/import-tests.cxx +++ b/sd/qa/unit/import-tests.cxx @@ -26,11 +26,13 @@ public: void testDocumentLayout(); void testSmoketest(); void testN759180(); + void testN778859(); CPPUNIT_TEST_SUITE(SdFiltersTest); CPPUNIT_TEST(testDocumentLayout); CPPUNIT_TEST(testSmoketest); CPPUNIT_TEST(testN759180); + CPPUNIT_TEST(testN778859); CPPUNIT_TEST_SUITE_END(); }; @@ -120,6 +122,24 @@ void SdFiltersTest::testN759180() } } +void SdFiltersTest::testN778859() +{ + ::sd::DrawDocShellRef xDocShRef = loadURL(getURLFromSrc("/sd/qa/unit/data/pptx/n778859.pptx")); + CPPUNIT_ASSERT_MESSAGE( "failed to load", xDocShRef.Is() ); + CPPUNIT_ASSERT_MESSAGE( "not in destruction", !xDocShRef->IsInDestruction() ); + + SdDrawDocument *pDoc = xDocShRef->GetDoc(); + CPPUNIT_ASSERT_MESSAGE( "no document", pDoc != NULL ); + const SdrPage *pPage = pDoc->GetPage(1); + CPPUNIT_ASSERT_MESSAGE( "no page", pPage != NULL ); + { + // Get the object + SdrObject *pObj = pPage->GetObj(1); + SdrTextObj *pTxtObj = dynamic_cast<SdrTextObj *>( pObj ); + CPPUNIT_ASSERT(!pTxtObj->IsAutoFit()); + } +} + CPPUNIT_TEST_SUITE_REGISTRATION(SdFiltersTest); CPPUNIT_PLUGIN_IMPLEMENT(); |