sw/qa/extras/rtfexport/data/fdo44174.rtf | 6 ------ sw/qa/extras/rtfexport/rtfexport.cxx | 19 ------------------- 2 files changed, 25 deletions(-)
New commits: commit 626a9e73a0ed8072a5a078dceaf1b4e2ec9ef0d5 Author: Justin Luth <jl...@mail.com> AuthorDate: Mon Jul 15 11:21:31 2024 -0400 Commit: Justin Luth <jl...@mail.com> CommitDate: Mon Jul 15 21:47:20 2024 +0200 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 <jl...@mail.com> Tested-by: Jenkins 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 @@ -{ tf1 - itlepg -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<frame::XModel> xModel(mxComponent, uno::UNO_QUERY); - uno::Reference<text::XTextViewCursorSupplier> xTextViewCursorSupplier( - xModel->getCurrentController(), uno::UNO_QUERY); - uno::Reference<beans::XPropertySet> 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]() {