summaryrefslogtreecommitdiff
path: root/include/test
AgeCommit message (Collapse)AuthorFilesLines
2018-03-01test: add assertXPathNSDef()Miklos Vajna1-0/+5
Partial backport of Miklos' master commit f8da775795052ad2eb879970c115d2e2a2fe8c81 without the EPUB changes. Change-Id: Ic9dd105249a59200dba03bb30eda350a95aff263 Reviewed-on: https://gerrit.libreoffice.org/50588 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-01-16test: cancel interaction on password *re-entry*Michael Stahl1-1/+10
If the password was wrong the first time, it's not going to be right if we return it a second time. Avoid infinite loops in tests. Change-Id: Ie4bf92853d0789b0114250f6c8ded1b2c3ab184d (cherry picked from commit 64592a19e5d512fb5cd09bf0a1726b9c78481e65) Reviewed-on: https://gerrit.libreoffice.org/48000 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-11-24tdf#45904 Move _XSheetAnnotationAnchor Java test to C++Jens Carl1-0/+34
Fixes #i109517 for sc.ScCellObj by adding a note/comment during the set up of the test in sccellobj.cxx and allows to re-enabled the test. Change-Id: Ic7aa6bcb2606f555a76612a6f50c200d738674db Reviewed-on: https://gerrit.libreoffice.org/44617 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2017-11-23tdf#45904 Move _XScenarioEnhanced Java test to C++Jens Carl1-0/+34
Change-Id: Ibc99dc0d50e612bc6cdebaf5f9c5f828e5af859f Reviewed-on: https://gerrit.libreoffice.org/45123 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2017-11-23tdf#45904 Move _XSheetAuditing Java tests to C++Jens Carl1-0/+38
Change-Id: I057447494ff488546d43d2d3068a65d5c0d402e0 Reviewed-on: https://gerrit.libreoffice.org/45120 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2017-11-18tdf#45904 Move _XSpreadsheetView Java tests to C++Jens Carl1-0/+33
Change-Id: I1e5346e2f014b412a2f8be08553c8eeff37920f9 Reviewed-on: https://gerrit.libreoffice.org/44840 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2017-11-15tdf#45904 Move _XScenariosSupplier Java test to C++Jens Carl1-0/+34
Change-Id: I152f6358e505d7a480e157bd49613e0bb496e163 Reviewed-on: https://gerrit.libreoffice.org/44748 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2017-11-15tdf#45904 Move _XSheetAnnotationsSupplier Java test to C++Jens Carl1-0/+34
Change-Id: I18143d96f49ea4f4b80ae89df33d2963bb20e125 Reviewed-on: https://gerrit.libreoffice.org/44747 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2017-11-13tdf#45904 Move _XLabelRange Java tests to C++Jens Carl1-0/+35
Change-Id: I707631718c30d4503ae675f3679038705371f969 Reviewed-on: https://gerrit.libreoffice.org/44672 Reviewed-by: Jens Carl <j.carl43@gmx.de> Tested-by: Jens Carl <j.carl43@gmx.de>
2017-11-13tdf#45904 Move _XLabelRanges Java test to C++Jens Carl1-0/+35
Change-Id: I32d07ba85f4a37a10eaf03d251d41b9e71d34c93 Reviewed-on: https://gerrit.libreoffice.org/44660 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2017-11-12tdf#45904 Move _XScenarios Java test to C++Jens Carl1-0/+35
Change-Id: Ie15243714464cf8343fff27507e4b257846cdebd Reviewed-on: https://gerrit.libreoffice.org/44638 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2017-11-09Adapt formatting of newly added fileStephan Bergmann1-1/+0
...from f1c97e9ff63cb6f120e618b3202260e0f8aefa0e "tdf#45904 Move Java _XSheetFilterableEx tests to C++" to the recently modified .clang-format of b536e10390c171e96b6477c04d66023a1da543c4 "Retrofit 'KeepEmptyLinesAtTheStartOfBlocks: false' into .clang-format" Change-Id: Ib383ccb04f7809b9c6421c1b6770472beb5c4dfe
2017-11-09tdf#45904 Move Java _XSheetFilterableEx tests to C++Jens Carl1-0/+36
Convert the Java _XSheetFilterableEx tests to C++ and make changes to the XSubTotalCalculatable::::testApplyRemoveSubTotals(), because XSheetFilterableEx::testCreateFilterDescriptorByObject() has to work with the same sheet. Change-Id: I89c11bc8f10ec8d2ff4b170aeb9df5a00ca98133 Reviewed-on: https://gerrit.libreoffice.org/44512 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2017-11-08Retrofit "KeepEmptyLinesAtTheStartOfBlocks: false" into .clang-formatStephan Bergmann6-6/+0
...even if that can cause reformatting of already formatted code. The problem I came across is that without this something like > namespace { > > void f1(); > > void f2(); > > } (which is quite a common style in the current code base) would be changed to > namespace > { > > void f1(); > > void f2(); > } instead of > namespace > { > void f1(); > > void f2(); > } and I found no other clang-format style option that would result in the presence or absence of an empty line be identical at the start and end of the namespace block. vmiklos asked to reformat the existing new (i.e., non-blacklisted) files at the same time, so this commit includes that. Some of those new files had not been formatted at all, so this commit includes their full reformatting changes. Change-Id: I54daf0c11098d07d02c802104cf7f56372e61f7c Reviewed-on: https://gerrit.libreoffice.org/44450 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-11-07test: avoid 'using namespace' declarations in a headerMiklos Vajna1-9/+9
Change-Id: I8dc06129360124fcaa52bc13bb9d134918b84c17
2017-11-07test: clang-format recently added xsheet testsMiklos Vajna7-37/+29
Jens says he was unhappy with the 80 cols limit, so clang-format was explicitly avoided for these new files, but now that the both the config and TEMPLATE.SOURCECODE.HEADER says 100, it's fine to reformat these to enforce consistency from now on. Change-Id: Ia6f0a65920ad2c9d7b0834a0712356568c39624e
2017-11-06loplugin:constparams in various(2)Noel Grandin2-2/+2
Change-Id: I533a7eb724b15e168a28dc92cd5962a39bc96e7c Reviewed-on: https://gerrit.libreoffice.org/44313 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-11-04Create CppUnit::assertion_traits helper fileJens Carl1-0/+72
Place the CppUnit:assertion_traits for ::table::CellAddress and ::table::CellRangeAddress into a file, so that they can be used/shared from several locations. Avoid copy/paste action. Change-Id: Ie2358ea1ac6925eef05644bea03a2ae526cd7fc6 Reviewed-on: https://gerrit.libreoffice.org/44291 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2017-11-03tdf#45904 Move Java _XSheetCellRangeContainer test to C++Jens Carl1-0/+40
Change-Id: I463fc54aa4139fbc43b6124765bf18ad8c0e6ddc Reviewed-on: https://gerrit.libreoffice.org/44247 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2017-11-03tdf#45904 Move Java _XSheetCellRange tests to C++Jens Carl1-0/+36
Change-Id: Ia4534f083a804d450ac8fdd31759f1554b684e15 Reviewed-on: https://gerrit.libreoffice.org/44245 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2017-11-03tdf#45904 Move Java _XSheetCellRanges tests to C++Jens Carl1-0/+38
Change-Id: I6f6dcbc5368ce034c25553edf8b88c6669074243 Reviewed-on: https://gerrit.libreoffice.org/44194 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2017-11-03tdf#45904 Move Java _XSheetConditionalEntries test to C++Jens Carl1-0/+42
Change-Id: I96c1b0dc8d6c6b9cc4f8e02ef8c9ca184fb4d6a4 Reviewed-on: https://gerrit.libreoffice.org/44184 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2017-11-03tdf#45904 Move Java _XSheetConditionalEntry tests to C++Jens Carl1-0/+36
Change-Id: I51924e69183260ba0eba94c3a14bde252c24cc18 Reviewed-on: https://gerrit.libreoffice.org/44182 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2017-11-03tdf#45904 Move Java _XSheetCondition tests to C++Jens Carl1-0/+39
Change-Id: I013ccd0258a567ba69d624a02a4d4daab5c7f4fa Reviewed-on: https://gerrit.libreoffice.org/44181 Reviewed-by: Jens Carl <j.carl43@gmx.de> Tested-by: Jens Carl <j.carl43@gmx.de>
2017-11-01-Werror,-Wunused-private-fieldStephan Bergmann1-3/+0
Change-Id: Ibd054f53040a95dfd9221152dea7f74015679db9
2017-10-29tdf#45904: Move Java _XSheetFilterable test to C++Jens Carl1-0/+38
Change-Id: Ib94aeb98c9c659118800b2dcc327c44a77d5fcc6 Reviewed-on: https://gerrit.libreoffice.org/44019 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-10-29tdf#45904: Move Java _XSheetFilterDescriptor tests to C++Jens Carl1-0/+36
Change-Id: If9bbef199f2c698f9ffeb3d57423b66ebd439a94 Reviewed-on: https://gerrit.libreoffice.org/43635 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-10-29tdf#45904: Move Java _XSheetLinkable tests to C++Jens Carl1-0/+40
Change-Id: I0f99c3b4a74748d7f1c73ef584170ae84b08cd9a Reviewed-on: https://gerrit.libreoffice.org/43582 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-10-29tdf#45904: Move Java _XSheetOperation tests to C++Jens Carl1-0/+37
Change-Id: I5aaeebd074882bb05a78e6d4057162e1da61d673 Reviewed-on: https://gerrit.libreoffice.org/43539 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-10-29tdf#45904: Move Java _XSheetPageBreak tests to C++Jens Carl1-0/+36
Change-Id: I29111c3495fc9767d1b2c7bab38af5f89b7840f9 Reviewed-on: https://gerrit.libreoffice.org/43399 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-10-29tdf#45904 Move Java _XSpreadsheet tests to C++Jens Carl1-0/+38
Change-Id: Idb398c87c89aa9b5613b9952bffde5929c1bc76b Reviewed-on: https://gerrit.libreoffice.org/43398 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-10-29tdf#45904 Move _XSubTotalCalculatable Java tests to C++Jens Carl1-0/+39
Change-Id: I18199a9cc79e6a109c8de0026b37a67f85cf778a Reviewed-on: https://gerrit.libreoffice.org/42265 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-10-29tdf#45904: Move _XSubTotalDescriptor Java tests to C++Jens Carl1-0/+34
Change-Id: Ie1ec8879972f77c5278992aadf9324f755859d96 Reviewed-on: https://gerrit.libreoffice.org/42096 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-10-09tdf#45904: Move _XAreaLinks Java to C++Jens Carl1-0/+39
This allows to re-activate the test and fixes #i84701. Change-Id: Ifd295e9521a04e88a68aa96fad8f9e8e32f927fa Reviewed-on: https://gerrit.libreoffice.org/41855 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-10-08tdf#45904: Move _XSubTotalField Java tests to C++Jens Carl1-0/+34
Change-Id: I64528c4e315247583e185bc3ab0defbc22bd8726 Reviewed-on: https://gerrit.libreoffice.org/41826 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-08-27tdf#45904 Move _DataPilotItem Java tests to C++Jens Carl1-0/+34
Change-Id: Ia20630f4cc187bd6f1a47bb6d747fda3c8b39e86 Reviewed-on: https://gerrit.libreoffice.org/41551 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-08-27tdf#45904: Move _DatabaseRange Java tests to C++Jens Carl1-0/+44
Change-Id: Iefe319c379ac8fffbb167b4bd4bcb235defabfa9 Reviewed-on: https://gerrit.libreoffice.org/41541 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-08-27tdf#45904 Move _CellAreaLink Java tests to C++Jens Carl1-0/+38
Change-Id: I82dac69dfed136eaf96771bf1ef2b8dfbf4e05aa Reviewed-on: https://gerrit.libreoffice.org/41488 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-08-23tdf#45904 Move Java _XUniqueCellFormatRangesSupplier test to C++Jens Carl1-0/+34
Change-Id: I66c62f1676515437197d1875600407408040ca74 Reviewed-on: https://gerrit.libreoffice.org/41445 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-08-23tdf#45904 Move Java _XAreaLink tests to C++Jens Carl1-0/+38
Change-Id: I95112555de3a5dd5a75c478edb5856cf79919db9 Reviewed-on: https://gerrit.libreoffice.org/40859 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-08-18tdf#45904 Move Java _XViewFreezable tests to C++Jens Carl1-0/+35
Change-Id: I75a0363304dbaaeb5988f2ec027d8211f4e01a4f Reviewed-on: https://gerrit.libreoffice.org/40872 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-08-08Fix for failing tests of xcellseries with ScCellRangeObj ...Jens Carl1-0/+1
... (CppunitTest_sc_cellrangeobj) introduced by commit 27cbca2c8dccbbb299621b49e5ffd836188202f0. Change-Id: I97be4f70de52abd974bf1198063d28f2ff419dbd Reviewed-on: https://gerrit.libreoffice.org/40871 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2017-08-08tdf#45904 Move Java _XUsedAreaCursor tests to C++Jens Carl1-0/+36
Change-Id: I6a288fa333d6805540156f63040468f07967c0c6 Reviewed-on: https://gerrit.libreoffice.org/40817 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-08-08tdf#45904 Move Java _XViewSplitable tests to C++Jens Carl1-0/+36
Change-Id: Ib9cf1c53947d10260673e1e1088bbfbaa30efbc9 Reviewed-on: https://gerrit.libreoffice.org/40801 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-08-07tdf#45904 Move Java _XSpreadsheets tests to C++Jens Carl1-0/+38
Change-Id: If311e2c8ca89528760b14d977bca76e14164e6e3 Reviewed-on: https://gerrit.libreoffice.org/40783 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-08-01loplugin:constparams in variousNoel Grandin2-2/+2
Change-Id: Id15f3562f42afa6c679cea3c839172557ead0395 Reviewed-on: https://gerrit.libreoffice.org/40624 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-07-13Fix wrong names for header guardJens Carl2-6/+6
Change-Id: Ief65b92d9d76d602ea529a3b44437a426c26f743 Reviewed-on: https://gerrit.libreoffice.org/39882 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-07-08tdf#45904 Move Java XSheetAnnotationShapeSupplier test to C++Jens Carl1-0/+35
Change-Id: I5a3d64fd255fb8fd1f1caba572bc00a5399a6519 Reviewed-on: https://gerrit.libreoffice.org/39550 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-07-02tdf#45904 Move Java XCellAddressable test to C++Jens Carl1-0/+35
Change-Id: Ib68c7dd8087f19bd969cf5273c3a6e8664c6bb62 Reviewed-on: https://gerrit.libreoffice.org/39348 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-06-20tdf#45904 Move remaining XCellSeries test code to C++Paul Trojahn1-0/+8
Change-Id: Ie4ee1e52157dd38ac0defee2e9d5cfa822763183 Reviewed-on: https://gerrit.libreoffice.org/38807 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>