summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2018-07-09tdf#117923: handle direct formatting for numbering in .docMike Kaganski
Since commit df07d6cb9f62c0a2c4b29bd850d4efb4fcd4790b, we do for DOCX. DOC also has this problem, so set the relevant compatibility flag on import for this format, too. Change-Id: I3aef593341edffa878a06566da815cb72aa38004 Reviewed-on: https://gerrit.libreoffice.org/56812 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/57048 Tested-by: Aron Budea <aron.budea@collabora.com> Reviewed-by: Aron Budea <aron.budea@collabora.com>
2018-03-01test: add assertXPathNSDef()Miklos Vajna
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>
2017-11-24tdf#45904 Move _XSheetAnnotationAnchor Java test to C++Jens Carl
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 Carl
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 Carl
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 Carl
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 Carl
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 Carl
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 Carl
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 Carl
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 Carl
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-09tdf#45904 Move Java _XSheetFilterableEx tests to C++Jens Carl
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 Bergmann
...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: clang-format recently added xsheet testsMiklos Vajna
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 Grandin
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 Carl
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 Carl
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 Carl
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 Carl
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 Carl
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 Carl
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 Carl
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-10-30Remove obsolete headerJens Carl
Change-Id: I77ef4bd4a253d4f0722c131f49675e12c3396178 Reviewed-on: https://gerrit.libreoffice.org/44042 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-10-30Fix xsheetfilterable CppUnit assertJens Carl
Change to Logical NOT operator to make clang loplugin:simplifybool happy. Change-Id: I95af212ea6fa33be2775824322bd64f04d2ac695 Reviewed-on: https://gerrit.libreoffice.org/44039 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-10-29tdf#45904: Move Java _XSheetFilterable test to C++Jens Carl
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 Carl
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 Carl
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 Carl
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 Carl
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 Carl
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 Carl
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 Carl
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-23loplugin:includeform: testStephan Bergmann
Change-Id: Ibcbb5b002e8326c484547a825cb295d0f5158a3b
2017-10-09tdf#45904: Move _XAreaLinks Java to C++Jens Carl
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 Carl
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-10-06Process all pending events during Cppunit setUpJan-Marek Glogowski
Larger unit tests collect a lot of events, which are just processed on shutdown. But since the Scheduler is just an unsorted linked list, processing these in order is O(n^2) for lookup, which really adds up, e.g. sw_ooxmlexport8 has 35047 tasks on shutdown. So this just processes all pending events before running each unit test. Also adds missing spellchecking components to some calc tests. Change-Id: Icf12146015afc17a1f52f79c18f248b72650ad46 Reviewed-on: https://gerrit.libreoffice.org/43199 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2017-09-26Rename the basegfx::tools namespace to basegfx::utilsTor Lillqvist
Reduce potential confusion with the global tools namespace. Will hopefully make it possible to remove the annoying initial :: when referring to the global tools namespace. Unless we have even more tools subnamespaces somewhere. Thorsten said it was OK. Change-Id: Id088dfe8f4244cb79df9aa988995b31a1758c996 Reviewed-on: https://gerrit.libreoffice.org/42644 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tor Lillqvist <tml@collabora.com>
2017-09-14clang-tidy modernize-use-emplace in test..vbahelperNoel Grandin
Change-Id: Ifbe1dd7c9d5dde33f7419548670434591b1a1d82 Reviewed-on: https://gerrit.libreoffice.org/42258 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-09-08EPUB export: inherit text properties in spans from paragraphMiklos Vajna
This is similar to nested spans, but here the outer element is a paragraph. Change-Id: Ibcdfe5aac54a44797067b06d319d19d2d47d5dd1 Reviewed-on: https://gerrit.libreoffice.org/42104 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2017-09-04Translate German comments/debug strings (leftovers in dirs test to uui)Johnny_M
Translates leftovers found using a custom regex. Additionally: - A few spelling fixes Change-Id: I3772e1b914acc487d80ab14efb815cb178ca3dcb Reviewed-on: https://gerrit.libreoffice.org/41831 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2017-08-29Remove unused headerJens Carl
Change-Id: Idf069da8098ffdfc5174c161302228076a80b080 Reviewed-on: https://gerrit.libreoffice.org/41673 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2017-08-29Strength-reduce XViewSplitable::testSplitStephan Bergmann
At least my macOS build had failed CppunitTest_sc_tabviewob now, as there getSplitRow() returns 2 instead of 3. Before 0bd57d62d0f15eced0e99097d9f46a86f177e9a1 "tdf#45904 Move Java _XViewSplitable tests to C++" the original Java code only checked for non-zero, so keep it at that for now. Change-Id: Ia777bb27d0296507c73df170fff623d45cd55dca
2017-08-27tdf#45904 Move _DataPilotItem Java tests to C++Jens Carl
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 Carl
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 Carl
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-25Remove spurious indent of first lineStephan Bergmann
Change-Id: I02e2baec74f2b020ac1db2afb1b82928032ae036
2017-08-24emfio: unit test for the EMF+ rendererPatrick Jaap
Two unit tests, which test the EMF+ records DrawString and DrawLine independently. To this end, a fixed view decomposition of metafiles is implemented. The chosen primitives should be optimal, even for future extensions of the EMF+ parser. Change-Id: I12672d3b294ff0fdae63c7a5ce211517ef8f763c Reviewed-on: https://gerrit.libreoffice.org/41425 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-08-24Consistently use OUString in test::DirectoriesStephan Bergmann
Change-Id: Ia5fd8af34ee9d2f37e4450ab241f6bb9a06445b2 Reviewed-on: https://gerrit.libreoffice.org/41466 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-08-23tdf#45904 Move Java _XUniqueCellFormatRangesSupplier test to C++Jens Carl
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 Carl
Change-Id: I95112555de3a5dd5a75c478edb5856cf79919db9 Reviewed-on: https://gerrit.libreoffice.org/40859 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>