summaryrefslogtreecommitdiff
path: root/sw/qa/api
AgeCommit message (Collapse)Author
2023-08-28Fix CppunitTest_sw_apitestsStephan Bergmann
For one, a dependency was missing to avoid > [_RUN_____] (anonymous namespace)::SwXAutoTextContainer::testGetByName > standard > test/source/container/xnameaccess.cxx:30:(anonymous namespace)::SwXAutoTextContainer::testGetByName > unexpected exception caught > - Caught: unknown. > > (anonymous namespace)::SwXAutoTextContainer::testGetByName finished in: 147ms > [_RUN_____] (anonymous namespace)::SwXAutoTextContainer::testGetElementNames > standard > (anonymous namespace)::SwXAutoTextContainer::testGetElementNames finished in: 0ms > [_RUN_____] (anonymous namespace)::SwXAutoTextContainer::testHasByName > standard > test/source/container/xnameaccess.cxx:48:(anonymous namespace)::SwXAutoTextContainer::testHasByName > assertion failed > - Expression: xNA->hasByName(m_aName) > > (anonymous namespace)::SwXAutoTextContainer::testHasByName finished in: 0ms > [_RUN_____] (anonymous namespace)::SwXAutoTextContainer::testGetCount > standard > test/source/container/xindexaccess.cxx:26:(anonymous namespace)::SwXAutoTextContainer::testGetCount > equality assertion failed > - Expected: 3 > - Actual : 1 > > (anonymous namespace)::SwXAutoTextContainer::testGetCount finished in: 0ms > [_RUN_____] (anonymous namespace)::SwXAutoTextContainer::testGetByIndex > standard > test/source/container/xindexaccess.cxx:32:(anonymous namespace)::SwXAutoTextContainer::testGetByIndex > equality assertion failed > - Expected: 3 > - Actual : 1 > > (anonymous namespace)::SwXAutoTextContainer::testGetByIndex finished in: 0ms And for another, executing the XAutoTextContainer test code in SwXAutoTextContainer corrupted instdir/, testInsertNewByName creating a spurious instdir/share/autotext/en-US/crdbus50Insert.bau, and testRemoveByName removing instdir/share/autotext/en-US/crdbus50.bau, which caused subsequent runs of the CppunitTest to fail with > [_RUN_____] (anonymous namespace)::SwXAutoTextContainer::testGetCount > standard > /home/tdf/lode/jenkins/workspace/lo_tb_master_linux_dbg/test/source/container/xindexaccess.cxx:26:(anonymous namespace)::SwXAutoTextContainer::testGetCount > equality assertion failed > - Expected: 3 > - Actual : 4 > > (anonymous namespace)::SwXAutoTextContainer::testGetCount finished in: 0ms > [_RUN_____] (anonymous namespace)::SwXAutoTextContainer::testGetByIndex > standard > /home/tdf/lode/jenkins/workspace/lo_tb_master_linux_dbg/test/source/container/xindexaccess.cxx:32:(anonymous namespace)::SwXAutoTextContainer::testGetByIndex > equality assertion failed > - Expected: 3 > - Actual : 4 > > (anonymous namespace)::SwXAutoTextContainer::testGetByIndex finished in: 0ms (<https://ci.libreoffice.org//job/lo_tb_master_linux_dbg/44666/>). So this commit reverts that part of 7b999ca22824e102d283a8b7327fa2717db6568a "tdf#45904: Move _XAutoTextContainer Java tests to C++" for now. Change-Id: I46387d3fea21706846f2c1ba4c462402f9343fdc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156192 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-08-27tdf#45904: Move _Footnote Java tests to C++anfanite396
Change-Id: I1e69267a72296f55fac12326ec69d3c29e63561a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156055 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-08-27tdf#45904: Remove old SwXReferenceMarks Java testanfanite396
Change-Id: I8830e54fdba98d3cfd1e2844e7faf02e55e7d0ac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156044 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-08-26tdf#45904: Move _XFootnote Java tests to C++anfanite396
Change-Id: Ibdc28ab8818860b9c94abeac33713607dbcf8df4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155635 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-08-26tdf#45904: Move _DocumentIndexMark Java tests to C++anfanite396
Change-Id: I144d06ab3abb47134060d554a4016009246aa739 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155163 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-08-25tdf#45904: Remove old SwXFootnotes Java testanfanite396
Change-Id: I7444b8521b560c91d2908d14330a3c6d6ff420cb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156041 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-08-25tdf#45904: Remove old SwXStyleFamilies Java testanfanite396
Change-Id: I3057e4a2fcf1b057d35050bfeb7c22fbad19325b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156045 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-08-25tdf#45904: Move SwXTextField Java tests to C++anfanite396
Change-Id: I11052e68289507778767df0d69cc8924f394b4f3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156047 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-08-25tdf#45904: Move SwXTextEmbeddedObjects Java tests to C++anfanite396
Change-Id: I05ad9e264162e3fb97ebea814f59ed44bf23056a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156050 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-08-25tdf#45904: Move _XTextRangeCompare Java tests to C++anfanite396
Change-Id: I40390a8b05f0e685a9408f0c486f6129633bc5b5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155634 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-08-25tdf#45904: Move SwXTextFieldMasters Java tests to C++anfanite396
Change-Id: Ifa185b24fe49f2c88e4d3687a09ebce5987503a0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156051 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-08-25tdf#45904: Move _XAutoTextContainer Java tests to C++anfanite396
Change-Id: Ie6ebc43c52204984cb6196f539c735701d13dc22 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155627 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-08-25tdf#45904: Move _BaseIndexMark Java tests to C++anfanite396
Change-Id: Ie6c09c0cfedbad8168281af354590ab7c9dd374e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155162 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-08-25tdf#45904 Move _NumberingRules Java tests to C++anfanite396
Change-Id: I86d559767204e1e8e1fd232db63f26a5c1ce67da Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155089 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-08-23tdf#45904: Remove old SwXBookmark Java testanfanite396
Change-Id: If17818329b805a03b975e105ea97f7c6cc16d1a4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155767 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-08-23tdf#45904: Remove old SwXDocumentIndex Java testanfanite396
Change-Id: Idca41ac1aed35552a749eb62e886c06cec94b3e5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155790 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-08-23tdf#45904: Move SwXTextTables Java tests to C++anfanite396
Change-Id: I3946e68ce5c8a9611c243e427bc94c277c0a5456 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155810 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-08-23tdf#45904: Move SwXTextSections Java tests to C++anfanite396
Change-Id: I24f7098f71a126790a177715a85fcea2724cb4aa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155808 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-08-21Move SwXTextFieldTypes Java tests to C++anfanite396
Change-Id: I77ca9bc6cd0db626df826e2084514d34becf39bc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154208 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-08-14Move SwXTableCellText Java tests to C++anfanite396
Change-Id: Iea2113030bb82ee02bd84140f5def7040b4f4fcb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154087 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-08-14Move SwXReferenceMarks Java tests to C++anfanite396
Change-Id: I3d825590e60190cf95f514b5df606a83ea4193b0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154086 Tested-by: Tomaž Vajngerl <quikee@gmail.com> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-07-28tdf#146619 Remove unused #includes from C/C++ filesVenetia Furtado
Change-Id: I5746cf045fc7d3191781c2c31631db39ee81bb7d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155002 Tested-by: Jenkins Reviewed-by: Gabor Kelemen <kelemeng@ubuntu.com>
2023-07-19Move SwXReferenceMark Java tests to C++anfanite396
Change-Id: I95777931fd039b22983218d7472c3f7037e6c62d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154085 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-07-19Move SwXParagraphEnumeration Java tests to C++anfanite396
Change-Id: I8315d52e75ddbe3b4f844fcb645f857da3d12acb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154084 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-07-14Move SwXNumberingRules Java tests to C++anfanite396
Change-Id: I3f5b1b6ce5ed475ef923f2c605c6ada7d29e0439 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154336 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-07-14Move SwXFrames Java tests to C++anfanite396
Change-Id: I92276f7b0b6537ebf2c5b4d554be1759c09e9544 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154299 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-07-14Move SwXFieldEnumeration Java tests to C++anfanite396
Change-Id: I6f1eb42e9284593bcc0db1934f3b14d090349d91 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154298 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-07-14Move SwXDocumentIndexes Java tests to C++anfanite396
Change-Id: Ib764152762e55ba56df765f425b0f9254113c280 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154297 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-07-12Move SwXStyleFamilies Java tests to C++anfanite396
Change-Id: I1a399f33e71d05506b86b66c5ac15a9fe1106cba Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154347 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-07-12Move SwXChapterNumbering Java tests to C++anfanite396
Change-Id: I891f74f73b18cd0ccc3b45e455913da292e558a3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154275 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-07-10Move SwXDocumentIndexMark Java tests to C++anfanite396
Change-Id: I3aa19a10af87a6a41c9538dd6d743a8656a3a0b6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153557 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-07-10Move SwXBookmarks Java tests to C++anfanite396
Change-Id: Ia640c59c97889c27f1c7b3ecf3b2630ac1d5e1f4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154231 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-07-10Move SwXAutoTextContainer Java tests to C++anfanite396
Change-Id: Ib785d9c1d143f0f51247ae73f01d9ee6d3806947 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154230 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-07-05Move SwXFootnote Java tests to C++anfanite396
Change-Id: Id78be9ba0f42a7fcc4685b188de40dcfb4ccdbf7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153589 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-07-03Move SwXHeadFootText Java tests to C++anfanite396
Change-Id: I9288d5d9835cf4559daac720c368a2d8f8222165 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153636 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-07-03Move SwXBookmark Java tests to C++anfanite396
Change-Id: I6a4b62ba6815ba6d88c9ab1b59c7e30556520a1a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153534 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-07-03Move SwXFootnotes Java tests to C++anfanite396
Change-Id: I905ed0b99d6fd6bb73b1278b62d5e06b25f410c3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153635 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-06-28Move SwXFootnoteText Java tests to C++anfanite396
Change-Id: I7f3477799f532f52993cd0add51185bfd15c7446 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153631 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-06-27Move SwXFootnotesSupplier Java tests to C++anfanite396
Change-Id: Ib6b33d33dc813400526b0d641faefbfdeea9fc0d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153610 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-06-27sw: simplify SwXTextFrame UNO API testTomaž Vajngerl
make it more inline to Calc UNO API tests Change-Id: I92e3f4f9b7286ea402cc0e869fec24ee9d2c05e6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153611 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-06-26Move SwXBodyText Java tests to C++anfanite396
Change-Id: I5d2807125fb374d8d05718d8bf5415d30f1a992a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153503 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2022-05-03Just use Any ctor instead of makeAny in swStephan Bergmann
Change-Id: I2c9023ba8d07314d23ae7a65e670e8748c5e9322 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133766 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-03-28Recheck sw/ cxx files with IWYUGabor Kelemen
See tdf#42949 for motivation Change-Id: I8a8df68946297fad517b753d73e4373203a45ed6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132150 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2021-03-05tdf#139734 Remove redundant asserts after functions loadFromDesktop and loadMoaz
MacrosTest::loadFromDesktop itself asserts on its return value. Thus, the additional checks in unit tests are redundant, and only create noise unrelated to the tested functionality. SwModelTestBase::load calls SwModelTestBase::loadURL which calls loadFromDesktop from within. Change-Id: I30061bbc6e13e05f0cfbf17a7910926070b996f3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111547 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2020-07-29Remove some unused includesMiklos Vajna
Change-Id: I9af7e2fa0a450ebe396c0f049831a20100dbdc9c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99659 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
2020-03-20Remove commented-out codeStephan Bergmann
...that had been commented out ever since the code's introduction in e18359445fabad9ba1a704600e9ee327112cc6ae "[API CHANGE] SwXTextField: no more SwModify/SwClient". (Maybe it was meant as a way to clean up after other tests, cf. 20ed81fd42cf8079c11c2b18973b9504a679e49c "Make individual tests clean up after themselves" and d833ab988bab6ca1a239c045eb236cafddda0e73 "Extract testDisposedByDesktopTerminate from CppunitTest_sw_apitests".) Change-Id: I3d2b2bbf2df793ac6c9e16c6349dd872df077ccd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90780 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-03-20Extract testDisposedByDesktopTerminate from CppunitTest_sw_apitestsStephan Bergmann
It is not guaranteed that SwXTextTable runs last during CppunitTest_sw_apitests, and e.g. building with --enable-lto on Linux caused SwXTextField to be run after SwXTextTable. But then testDisposedByDesktopTerminate had already shut down all the relevant global state, so the SwXTextField tests would fail. TerminateTest is a faithful copy of the original SwXTextTable testDisposedByDesktopTerminate behavior, but I do not know how much of that (if anything at all) is actually test-worthy. (For example, parts of TerminateTest::init may not be relevant, or the original SwXTextTable testDisposedByDesktopTerminate may even only have been there to clean up after other tests and not to actually test anything by itself, cf. 20ed81fd42cf8079c11c2b18973b9504a679e49c "Make individual tests clean up after themselves".) Change-Id: Ib95b7fa6888f55a27236a779c453a6d04122a527 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90774 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-03-20Make individual tests clean up after themselvesStephan Bergmann
...instead of relying on the final SwXTextTable testDisposedByDesktopTerminate to dispose all opened documents Change-Id: Ia0f44ab96e8ee2ee8fc6479fa23403ab8abf52da Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90768 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-02-07test: move component context from subclasses to BootstrapFixtureMiklos Vajna
To avoid duplication. Change-Id: I0ee7c26d5d55bd868ead04c77e7f4ef2582f90e2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88138 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2019-10-03loplugin:unusedfieldsNoel Grandin
and filter out the weld fields, since we're not touching them yet Change-Id: I3cc23c46d2650f13cb29c7d381687939d23e2882 Reviewed-on: https://gerrit.libreoffice.org/80104 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>