summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Rename the basegfx::tools namespace to basegfx::utilsTor Lillqvist2017-09-261-3/+3
| | | | | | | | | | | | | | 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>
* clang-tidy modernize-use-emplace in test..vbahelperNoel Grandin2017-09-141-32/+32
| | | | | | | 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>
* EPUB export: inherit text properties in spans from paragraphMiklos Vajna2017-09-081-0/+1
| | | | | | | | | | 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>
* Translate German comments/debug strings (leftovers in dirs test to uui)Johnny_M2017-09-041-1/+1
| | | | | | | | | | | | 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>
* Remove unused headerJens Carl2017-08-291-1/+0
| | | | | | | 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>
* Strength-reduce XViewSplitable::testSplitStephan Bergmann2017-08-291-2/+1
| | | | | | | | | | 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
* tdf#45904 Move _DataPilotItem Java tests to C++Jens Carl2017-08-272-0/+73
| | | | | | | Change-Id: Ia20630f4cc187bd6f1a47bb6d747fda3c8b39e86 Reviewed-on: https://gerrit.libreoffice.org/41551 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* tdf#45904: Move _DatabaseRange Java tests to C++Jens Carl2017-08-272-0/+236
| | | | | | | Change-Id: Iefe319c379ac8fffbb167b4bd4bcb235defabfa9 Reviewed-on: https://gerrit.libreoffice.org/41541 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* tdf#45904 Move _CellAreaLink Java tests to C++Jens Carl2017-08-272-0/+113
| | | | | | | Change-Id: I82dac69dfed136eaf96771bf1ef2b8dfbf4e05aa Reviewed-on: https://gerrit.libreoffice.org/41488 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* Remove spurious indent of first lineStephan Bergmann2017-08-251-1/+1
| | | | Change-Id: I02e2baec74f2b020ac1db2afb1b82928032ae036
* emfio: unit test for the EMF+ rendererPatrick Jaap2017-08-241-0/+18
| | | | | | | | | | | | | | 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>
* Consistently use OUString in test::DirectoriesStephan Bergmann2017-08-241-4/+3
| | | | | | | Change-Id: Ia5fd8af34ee9d2f37e4450ab241f6bb9a06445b2 Reviewed-on: https://gerrit.libreoffice.org/41466 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* tdf#45904 Move Java _XUniqueCellFormatRangesSupplier test to C++Jens Carl2017-08-232-0/+38
| | | | | | | Change-Id: I66c62f1676515437197d1875600407408040ca74 Reviewed-on: https://gerrit.libreoffice.org/41445 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* tdf#45904 Move Java _XAreaLink tests to C++Jens Carl2017-08-232-0/+80
| | | | | | | Change-Id: I95112555de3a5dd5a75c478edb5856cf79919db9 Reviewed-on: https://gerrit.libreoffice.org/40859 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* osl::Directory::createPath with excess slashes fails with E_INVAL on WindowsStephan Bergmann2017-08-231-2/+2
| | | | Change-Id: Ic7d8a2e9bdad9a255f984116c4fdecd0e1c0d265
* Report osl::Directory::createPath failureStephan Bergmann2017-08-231-1/+9
| | | | Change-Id: I75ede7f03edf80c00d33281afdebc3b620fb33eb
* Fix test assertion messageStephan Bergmann2017-08-221-1/+1
| | | | Change-Id: Ifd9f50a68e5dd40003cd1bd32a5b806b0282ce44
* tdf#45904 Move Java _XViewFreezable tests to C++Jens Carl2017-08-182-0/+34
| | | | | | | Change-Id: I75a0363304dbaaeb5988f2ec027d8211f4e01a4f Reviewed-on: https://gerrit.libreoffice.org/40872 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* Convert spaces to tabs in some MakefilesJens Carl2017-08-091-46/+46
| | | | | | | Change-Id: Ia65e6391cfa6a556b097555872c311bd8bcdec3f Reviewed-on: https://gerrit.libreoffice.org/40903 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* Fix for failing tests of xcellseries with ScCellRangeObj ...Jens Carl2017-08-082-7/+4
| | | | | | | | | | ... (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>
* tdf#45904 Move Java _XUsedAreaCursor tests to C++Jens Carl2017-08-083-2/+103
| | | | | | | Change-Id: I6a288fa333d6805540156f63040468f07967c0c6 Reviewed-on: https://gerrit.libreoffice.org/40817 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* tdf#45904 Move Java _XViewSplitable tests to C++Jens Carl2017-08-082-0/+44
| | | | | | | Change-Id: Ib9cf1c53947d10260673e1e1088bbfbaa30efbc9 Reviewed-on: https://gerrit.libreoffice.org/40801 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* Fix typosAndrea Gelmini2017-08-071-1/+1
| | | | | | | Change-Id: I1ba1886b47f89916be387603d5cb959ddd5f9e84 Reviewed-on: https://gerrit.libreoffice.org/40844 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
* tdf#45904 Move Java _XSpreadsheets tests to C++Jens Carl2017-08-072-0/+86
| | | | | | | Change-Id: If311e2c8ca89528760b14d977bca76e14164e6e3 Reviewed-on: https://gerrit.libreoffice.org/40783 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* move resmgr to unotoolsCaolán McNamara2017-08-012-2/+2
| | | | | | | | | and the vast majority of translations is to the ui language so default ctor with that arg and now drop OModuleResourceClient Change-Id: I3b85a560ffdfe5f019c2271ac56a5fe4a361522b
* loplugin:constparams in variousNoel Grandin2017-08-011-1/+1
| | | | | | | 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>
* loplugin:oncevarNoel Grandin2017-07-311-1/+1
| | | | | | | | | extend oncevar to any POD type Change-Id: Ia98ee0a67f183e40fb0c38477760124b2c411dc0 Reviewed-on: https://gerrit.libreoffice.org/40564 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* migrate to boost::gettextCaolán McNamara2017-07-211-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * all .ui files go from <interface> to <interface domain="MODULE"> e.g. vcl * all .src files go away and the english source strings folded into the .hrc as NC_("context", "source string") * ResMgr is dropped in favour of std::locale imbued by boost::locale::generator pointed at matching MODULE .mo files * UIConfig translations are folded into the module .mo, so e.g. UIConfig_cui goes from l10n target to normal one, so the res/lang.zips of UI files go away * translation via Translation::get(hrc-define-key, imbued-std::locale) * python can now be translated with its inbuilt gettext support (we keep the name strings.hrc there to keep finding the .hrc file uniform) so magic numbers can go away there * java and starbasic components can be translated via the pre-existing css.resource.StringResourceWithLocation mechanism * en-US res files go away, their strings are now the .hrc keys in the source code * remaining .res files are replaced by .mo files * in .res/.ui-lang-zip files, the old scheme missing translations of strings results in inserting the english original so something can be found, now the standard fallback of using the english original from the source key is used, so partial translations shrink dramatically in size * extract .hrc strings with hrcex which backs onto xgettext -C --add-comments --keyword=NC_:1c,2 --from-code=UTF-8 --no-wrap * extract .ui strings with uiex which backs onto xgettext --add-comments --no-wrap * qtz for gettext translations is generated at runtime as ascii-ified crc32 of content + "|" + msgid * [API CHANGE] remove deprecated binary .res resouce loader related uno apis com::sun::star::resource::OfficeResourceLoader com::sun::star::resource::XResourceBundleLoader com::sun::star::resource::XResourceBundle when translating strings via uno apis com.sun.star.resource.StringResourceWithLocation can continue to be used Change-Id: Ia2594a2672b7301d9c3421fdf31b6cfe7f3f8d0a
* use more OUString::operator== in test..xmlsecurityNoel Grandin2017-07-141-5/+4
| | | | | | | Change-Id: If5bdd1532be44a47ff7cc3b769be3ea585aea562 Reviewed-on: https://gerrit.libreoffice.org/39685 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* tdf#45904 Move Java XSheetAnnotationShapeSupplier test to C++Jens Carl2017-07-082-0/+42
| | | | | | | Change-Id: I5a3d64fd255fb8fd1f1caba572bc00a5399a6519 Reviewed-on: https://gerrit.libreoffice.org/39550 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* loplugin:casttovoid: testStephan Bergmann2017-07-021-3/+3
| | | | Change-Id: I7e948fe35ce26eb5a3b627ac75f579826dd5ff9d
* tdf#45904 Move Java XCellAddressable test to C++Jens Carl2017-07-022-0/+54
| | | | | | | Change-Id: Ib68c7dd8087f19bd969cf5273c3a6e8664c6bb62 Reviewed-on: https://gerrit.libreoffice.org/39348 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* loplugin:oncevar in test..toolsNoel Grandin2017-06-286-44/+28
| | | | | | | Change-Id: I7b3ccc8f227100ff7fedeaca96a12f135da60bab Reviewed-on: https://gerrit.libreoffice.org/39326 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* convert ErrCode to strong typedefNoel Grandin2017-06-211-1/+1
| | | | | | | | | | | would have preferred to re-use o3tl::strong_int, of which this is a modified copy, but there are lots of convenience accessors which are nice to define on the class. Change-Id: I301b807aaf02fbced3bf75de1e1692cde6c0340a Reviewed-on: https://gerrit.libreoffice.org/38497 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* tdf#45904 Move remaining XCellSeries test code to C++Paul Trojahn2017-06-202-35/+75
| | | | | | | Change-Id: Ie4ee1e52157dd38ac0defee2e9d5cfa822763183 Reviewed-on: https://gerrit.libreoffice.org/38807 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* tdf#45904 Move java XCellSeries test to c++Paul Trojahn2017-06-082-0/+75
| | | | | | | Change-Id: Iedc1023b67138727061c2da13bebdb75af370ec6 Reviewed-on: https://gerrit.libreoffice.org/38105 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* remove unnecessary use of OString::getStrNoel Grandin2017-05-282-8/+8
| | | | | | | Change-Id: I0490efedf459190521f4339854b3394d57765fdb Reviewed-on: https://gerrit.libreoffice.org/38058 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* remove unused uno::Reference varsNoel Grandin2017-05-122-2/+1
| | | | | | | | | found by temporarily marking Reference as SAL_WARN_UNUSED. Change-Id: I18809b62654467f890016adcc92576980ced393b Reviewed-on: https://gerrit.libreoffice.org/37511 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* Replace all OUString("") with OUString()Arnaud Versini2017-05-041-8/+8
| | | | | | | Change-Id: Ie14c4d76cb61cfbe0410103adfc1afc8ade0f3e0 Reviewed-on: https://gerrit.libreoffice.org/37146 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* loplugin:cppunitassertequals: testStephan Bergmann2017-04-2814-64/+67
| | | | Change-Id: I3357b7502fcf9a45095919157ca1530e10c14dd0
* clang-tidy readability-simplify-boolean-exprNoel Grandin2017-04-281-4/+1
| | | | | | | Change-Id: Iea7ab64683f0b29794d50d774cc482b54a00e70a Reviewed-on: https://gerrit.libreoffice.org/36450 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* vcl: move RegisterDisplay() from ErrorHandler to ErrorRegistryChris Sherlock2017-04-271-1/+1
| | | | | | | | | | | It is the error registry that should register the display, not the error handler. Move this function to the class that is responsible for it. Change-Id: I95ca1662b907a7f38a42a39ec729b35fd530bb79 Reviewed-on: https://gerrit.libreoffice.org/36853 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
* errinf.hxx moved out of tools and into vcl moduleChris Sherlock2017-04-251-1/+1
| | | | | | | | | | ErrorInfo has a hard depency on VCL, yet is in the tools package. It is more appropriate to have it reside in the VCL module. Change-Id: Ica54a46c3a7f86cf0331ed7245234bea69c05650 Reviewed-on: https://gerrit.libreoffice.org/36839 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
* gbuild: Remove MSVC 2013 legacy codeDavid Ostrovsky2017-04-214-4/+0
| | | | | | | | | Uwinapi is discontinued. Change-Id: I063b4d0d8fab2d60de168e960a63b8181158ac01 Reviewed-on: https://gerrit.libreoffice.org/23198 Reviewed-by: David Ostrovsky <david@ostrovsky.org> Tested-by: David Ostrovsky <david@ostrovsky.org>
* EnableHeadlessMode bool arg doesn't toggle headlessCaolán McNamara2017-04-121-1/+1
| | | | | | | | | | but refers if a dialog is fatal or autocancelled Change-Id: I7f15ecb26a3e29065caaacb932c7416f4cd96ff6 Reviewed-on: https://gerrit.libreoffice.org/36487 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* use actual UNO enums in test..vbahelperNoel Grandin2017-04-031-1/+1
| | | | | | | Change-Id: I2e38462045efedc31903589a3fa4e6f62d74d8de Reviewed-on: https://gerrit.libreoffice.org/36042 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* tdf#82580 tools: rename Rectangle to tools::RectangleMiklos Vajna2017-03-311-4/+4
| | | | | | | | | | | | | | | Mostly generated using make check COMPILER_EXTERNAL_TOOL=1 CCACHE_PREFIX=clang-rename-wrapper RENAME_ARGS="-qualified-name=Rectangle -new-name=tools::Rectangle" Except some modules have their own foo::tools namespace, so there have to use ::tools::Rectangle. This commit just moves the class from the global namespace, it does not update pre/postwin.h yet. Change-Id: I42b2de3c6f769fcf28cfe086f98eb31e42a305f2 Reviewed-on: https://gerrit.libreoffice.org/35923 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
* Fix typos + some German translationsAndrea Gelmini2017-03-191-1/+1
| | | | | | | Change-Id: I1c5bb725ffdf72363279436ad9bbb88064228253 Reviewed-on: https://gerrit.libreoffice.org/35406 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
* Fix MSVC hang in ThreadPool::shutdown()Michael Stahl2017-03-181-0/+3
| | | | | | | | | | | This is the vclbootstrapprotector.cxx part of 9899ffd244dd367ba69dffe1f21f4f0222064a46, which unblocks hanging unit tests on a number of VS2015 tinderbox hosts Change-Id: I6dcfd5a85c078953f0dc6fba0311d9e750f8ce5e Reviewed-on: https://gerrit.libreoffice.org/35393 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
* Revert "comphelper: fix MSVC hang in ThreadPool::shutdown()"Miklos Vajna2017-03-132-10/+0
| | | | | | | | | | | | | | As it causes "unopkg.bin: /home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/comphelper/source/misc/threadpool.cxx:96: comphelper::ThreadPool::~ThreadPool(): Assertion `mbTerminate' failed." in <https://ci.libreoffice.org/job/lo_gerrit/8283/Config=linux_clang_dbgutil_64/console> and also locally. Revert till it's clear if that assert() should be a SAL_WARN() or unopkg has to be fixed. This reverts commit 9899ffd244dd367ba69dffe1f21f4f0222064a46. Change-Id: I72902f7da410012340aa8231d84c6871a3f7b976