[Libreoffice-commits] core.git: sw/qa

Miklos Vajna (via logerrit) logerrit at kemper.freedesktop.org
Wed Nov 6 08:01:10 UTC 2019


 sw/qa/extras/rtfimport/rtfimport.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit a226cec52e536c46e03f57a5f1f7931abbeb0cdd
Author:     Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Tue Nov 5 22:55:40 2019 +0100
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Wed Nov 6 08:59:51 2019 +0100

    CppunitTest_sw_rtfimport: convert one testcase to use CPPUNIT_TEST_FIXTURE()
    
    Let's see if this causes any problems before doing a mass-conversion.
    
    Benefits are:
    
    - ctags can jump to the testcase if Writer-specific macros are not used
    - the Writer-specific macros just overcomplicate things for people not
      familiar with Writer
    
    Change-Id: Icc057a789acc220f5625461944dc6b8f35aad334
    Reviewed-on: https://gerrit.libreoffice.org/82109
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmiklos at collabora.com>

diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx b/sw/qa/extras/rtfimport/rtfimport.cxx
index 82f3211c612f..ba19786d4fa2 100644
--- a/sw/qa/extras/rtfimport/rtfimport.cxx
+++ b/sw/qa/extras/rtfimport/rtfimport.cxx
@@ -60,8 +60,9 @@ protected:
     AllSettings m_aSavedSettings;
 };
 
-DECLARE_RTFIMPORT_TEST(testN695479, "n695479.rtf")
+CPPUNIT_TEST_FIXTURE(Test, testN695479)
 {
+    load(mpTestDocumentPath, "n695479.rtf");
     uno::Reference<text::XTextFramesSupplier> xTextFramesSupplier(mxComponent, uno::UNO_QUERY);
     uno::Reference<container::XIndexAccess> xIndexAccess(xTextFramesSupplier->getTextFrames(),
                                                          uno::UNO_QUERY);


More information about the Libreoffice-commits mailing list