From 626a9e73a0ed8072a5a078dceaf1b4e2ec9ef0d5 Mon Sep 17 00:00:00 2001 From: Justin Luth Date: Mon, 15 Jul 2024 11:21:31 -0400 Subject: tdf#158977: remove obsolete rtfexport testFdo44174 Some unit tests were changed or disabled with tdf#136472 adjust ooxml import to handle first header/footer This unit test is basically the same file as rtfexport2's fdo44176.rtf except that one actually has two pages, while this one SAYS it has two pages but only actually has one. Nor are there any headers or footers involved, so it is a completely pointless test. Change-Id: I4ce90f5749ce95426f93d7d0e4fd507c7fdfe5d0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170507 Reviewed-by: Justin Luth Tested-by: Jenkins --- sw/qa/extras/rtfexport/data/fdo44174.rtf | 6 ------ sw/qa/extras/rtfexport/rtfexport.cxx | 19 ------------------- 2 files changed, 25 deletions(-) delete mode 100644 sw/qa/extras/rtfexport/data/fdo44174.rtf diff --git a/sw/qa/extras/rtfexport/data/fdo44174.rtf b/sw/qa/extras/rtfexport/data/fdo44174.rtf deleted file mode 100644 index 518619327208..000000000000 --- a/sw/qa/extras/rtfexport/data/fdo44174.rtf +++ /dev/null @@ -1,6 +0,0 @@ -{\rtf1 -\titlepg -First page has no header. -\pagebb -Second page has a header. -\par } diff --git a/sw/qa/extras/rtfexport/rtfexport.cxx b/sw/qa/extras/rtfexport/rtfexport.cxx index 849071f18e20..fb7c05a0e8a1 100644 --- a/sw/qa/extras/rtfexport/rtfexport.cxx +++ b/sw/qa/extras/rtfexport/rtfexport.cxx @@ -90,25 +90,6 @@ CPPUNIT_TEST_FIXTURE(Test, testFdo49683) verify(); } -// TODO Use case not clear! -CPPUNIT_TEST_FIXTURE(Test, testFdo44174) -{ - auto verify = [this]() { - uno::Reference xModel(mxComponent, uno::UNO_QUERY); - uno::Reference xTextViewCursorSupplier( - xModel->getCurrentController(), uno::UNO_QUERY); - uno::Reference xPropertySet(xTextViewCursorSupplier->getViewCursor(), - uno::UNO_QUERY); - OUString aValue; - xPropertySet->getPropertyValue(u"PageStyleName"_ustr) >>= aValue; - CPPUNIT_ASSERT_EQUAL(u"Standard"_ustr, aValue); - }; - createSwDoc("fdo44174.rtf"); - verify(); - saveAndReload(mpFilter); - verify(); -} - CPPUNIT_TEST_FIXTURE(Test, testFdo50087) { auto verify = [this]() { -- cgit