From 99061131d39f110650312d2063312815aa186af5 Mon Sep 17 00:00:00 2001 From: Rosemary Sebastian Date: Mon, 14 Aug 2017 13:54:00 +0530 Subject: Remove redline import tests for now This commit should be reverted after change-tracking import is implemented Change-Id: I9443bc6bba39556aa92706ee02d6fff547133de1 --- sw/qa/extras/odfexport/odfexport.cxx | 47 ------------------------------------ 1 file changed, 47 deletions(-) diff --git a/sw/qa/extras/odfexport/odfexport.cxx b/sw/qa/extras/odfexport/odfexport.cxx index bbebd6b24afc..bf2c823368da 100644 --- a/sw/qa/extras/odfexport/odfexport.cxx +++ b/sw/qa/extras/odfexport/odfexport.cxx @@ -304,15 +304,6 @@ DECLARE_ODFEXPORT_TEST(testOOoxmlEmbedded, "oooxml_embedded.sxw") CPPUNIT_ASSERT_EQUAL(sal_Int32(SOFFICE_FILEFORMAT_8), comphelper::OStorageHelper::GetXStorageFormat(xStorage4)); } -DECLARE_ODFEXPORT_TEST(testredlineTextFrame, "redlineTextFrame.odt") -{ - //Note this is for a crash test - //Counting the Number of Frames and checking with the expected count - uno::Reference xTextFramesSupplier(mxComponent, uno::UNO_QUERY); - uno::Reference xIndexAccess(xTextFramesSupplier->getTextFrames(), uno::UNO_QUERY); - CPPUNIT_ASSERT_EQUAL(sal_Int32(1), xIndexAccess->getCount()); -} - DECLARE_ODFEXPORT_TEST(testFdo38244, "fdo38244.odt") { // See ooxmlexport's testFdo38244(). @@ -1109,44 +1100,6 @@ DECLARE_ODFEXPORT_TEST(testWhitespace, "whitespace.odt") CPPUNIT_ASSERT_EQUAL(OUString(" X"), xPortion->getString()); CPPUNIT_ASSERT(!xPortions->hasMoreElements()); - xPara.set(getParagraphOrTable(17), uno::UNO_QUERY); - xPortions.set(xPara->createEnumeration()); - xPortion.set(xPortions->nextElement(), uno::UNO_QUERY); - CPPUNIT_ASSERT_EQUAL(OUString("Text"), getProperty(xPortion, "TextPortionType")); - CPPUNIT_ASSERT_EQUAL(OUString("X "), xPortion->getString()); - xPortion.set(xPortions->nextElement(), uno::UNO_QUERY); - CPPUNIT_ASSERT_EQUAL(OUString("Redline"), getProperty(xPortion, "TextPortionType")); - CPPUNIT_ASSERT(!getProperty(xPortion, "IsCollapsed")); - xPortion.set(xPortions->nextElement(), uno::UNO_QUERY); - CPPUNIT_ASSERT_EQUAL(OUString("Text"), getProperty(xPortion, "TextPortionType")); - CPPUNIT_ASSERT_EQUAL(OUString(" "), xPortion->getString()); - xPortion.set(xPortions->nextElement(), uno::UNO_QUERY); - CPPUNIT_ASSERT_EQUAL(OUString("Redline"), getProperty(xPortion, "TextPortionType")); - CPPUNIT_ASSERT(!getProperty(xPortion, "IsCollapsed")); - xPortion.set(xPortions->nextElement(), uno::UNO_QUERY); - CPPUNIT_ASSERT_EQUAL(OUString("Text"), getProperty(xPortion, "TextPortionType")); - CPPUNIT_ASSERT_EQUAL(OUString(" X"), xPortion->getString()); - CPPUNIT_ASSERT(!xPortions->hasMoreElements()); - - xPara.set(getParagraphOrTable(18), uno::UNO_QUERY); - xPortions.set(xPara->createEnumeration()); - xPortion.set(xPortions->nextElement(), uno::UNO_QUERY); - CPPUNIT_ASSERT_EQUAL(OUString("Text"), getProperty(xPortion, "TextPortionType")); - CPPUNIT_ASSERT_EQUAL(OUString("X "), xPortion->getString()); - xPortion.set(xPortions->nextElement(), uno::UNO_QUERY); - CPPUNIT_ASSERT_EQUAL(OUString("Redline"), getProperty(xPortion, "TextPortionType")); - CPPUNIT_ASSERT(!getProperty(xPortion, "IsCollapsed")); - xPortion.set(xPortions->nextElement(), uno::UNO_QUERY); - CPPUNIT_ASSERT_EQUAL(OUString("Text"), getProperty(xPortion, "TextPortionType")); - CPPUNIT_ASSERT_EQUAL(OUString(" "), xPortion->getString()); - xPortion.set(xPortions->nextElement(), uno::UNO_QUERY); - CPPUNIT_ASSERT_EQUAL(OUString("Redline"), getProperty(xPortion, "TextPortionType")); - CPPUNIT_ASSERT(!getProperty(xPortion, "IsCollapsed")); - xPortion.set(xPortions->nextElement(), uno::UNO_QUERY); - CPPUNIT_ASSERT_EQUAL(OUString("Text"), getProperty(xPortion, "TextPortionType")); - CPPUNIT_ASSERT_EQUAL(OUString(" X"), xPortion->getString()); - CPPUNIT_ASSERT(!xPortions->hasMoreElements()); - xPara.set(getParagraphOrTable(19), uno::UNO_QUERY); xPortions.set(xPara->createEnumeration()); xPortion.set(xPortions->nextElement(), uno::UNO_QUERY); -- cgit v1.2.3