summaryrefslogtreecommitdiff
path: root/unotest
AgeCommit message (Collapse)AuthorFilesLines
2015-04-01simplifyStephan Bergmann1-5/+1
Change-Id: Ib88ccd6ea430791f18571ad7d6a34d7432477050
2015-03-31MacrosTest::loadFromDesktop: use comphelper::containerToSequence()Miklos Vajna1-19/+18
Change-Id: I91e385a6a7fe88251ec11ed90b61a3f61768ff5a
2015-03-30WaE: passing [...] by value, rather pass by referenceTor Lillqvist1-8/+8
Change-Id: Ic733f9b5dcb55bb8120c3652a60300914fab04ea
2015-03-30Unit tests for SkipImagesLászló Németh1-1/+14
SkipImages filter option skips image loading during DOC and DOCX imports, but it keeps the text of textboxes and custom shapes. Change-Id: Ia0ab3b350b9da22d9375787883678cc357a704b3
2015-03-29The --nofirststartwizard option is a no-opTor Lillqvist3-4/+3
Change-Id: Id481af38ebb51224f4f8493cccfb4eb4fd1e268f
2015-03-19convert SFX_FILTER_ constants to enum classNoel Grandin1-2/+2
Change-Id: I7e53cfc90cefd9da7d6ecd795b09214bd44b1613
2015-03-18create new 'enum class' SotClipboardFormatId to unify typesNoel Grandin1-2/+2
of which there are several. There are some issues here I am unsure of - the SW and SC and CHART2 modules essentially ignore the enum values and assign their own ids Perhaps I should change them to use the common values and create new enum values where necessary? - the sc/qa/ and sq/qa/ and starmath/qa/ code was doing some dodgy stuff. I translated the code to pass down the stuff numeric values to the underlying code, but perhaps further fixing is necessary? Change-Id: Ic06d723e404481e3f1bca67c43b70321b764d923
2015-02-23unotest: unobootstrapprotector needs runtime dependency on unorcMichael Stahl1-0/+5
Change-Id: Ie6ed784bb9676b9de8a51762aa58d0c75e071cfd
2015-02-09Adapt file URL hackery to WindowsStephan Bergmann1-1/+4
Change-Id: Icee10aae97e9bcef7a3db7e966c1c4ef6780fc1d
2015-02-05convert all remaining BOOST_STATIC_ASSERT to static_assertCaolán McNamara1-2/+1
and we can include a few less headers Change-Id: Id742849ff4c1c37a2b861aa3d6ab823f00ea87f8
2015-02-03copy test file to workdir to avoid overwritingLionel Elie Mamane1-0/+11
Change-Id: I2acc5cd6a57bb6a18f3f20177b3bcf2b8469a834 Reviewed-on: https://gerrit.libreoffice.org/14272 Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu> Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
2015-01-12java: simplify sleeping and waiting in testsNoel Grandin1-4/+2
- remove the SHORT_WAIT test parameter, no-one is using it - inline the various independent shortWait() methods - use the util.utils.shortWait() utility method everywhere Change-Id: I93cd4a2580172a1441d2ff3d390f52b9505e2721
2015-01-05java: remove more dead codeNoel Grandin3-5/+5
found by looking for unused parameters (in Eclipse) Change-Id: I03cf9bc8312e59747b2d0ac153ee2fc8d76be893
2015-01-05java: remove dead codeNoel Grandin5-192/+4
found by UCDetector Change-Id: I6b0f49529379072da566e927b86815f173e7a90b
2014-12-18unotest: Use appropriate OUString functions on string constantsStephan Bergmann5-16/+8
Change-Id: I449587dd8e6e625e886e4ffc6419c612adffcfde
2014-12-11java: reduce visibility of fields and methodsNoel Grandin3-7/+7
found by PMD Change-Id: Id6737916b68ccbdbdeec5d314747a38410923ac6 Reviewed-on: https://gerrit.libreoffice.org/13409 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-19tweak the assert message so its readable when an errors happensCaolán McNamara1-1/+2
Change-Id: Ib4f262f4c8cffc9790001618ce8050eda75ae559
2014-11-18java: make fields final where possibleNoel Grandin2-4/+4
found by PMD Change-Id: I87780366119c141cd2dafe6ca1bf2d9798b10aec
2014-11-05markup with event type not checker typeCaolán McNamara1-1/+1
Change-Id: I14c0c5d90b67000cb4fe9e6be647854abfe784da
2014-10-30document array_vs_singleton dismissalsCaolán McNamara1-0/+1
Change-Id: I8d7eb4c01197e885abca717c7814c61a7641ac9d
2014-10-22framework, unotest: do not override UserInstallation from environmentMichael Stahl1-9/+0
The PythonTest_dbaccess_python may fail in incremental builds because of stale JVM path in workdir/unittest/user/config/javasettings_Linux_X86_64.xml so it's better to use the fresh UserInstallation that is already passed in from PythonTest.mk. To make that work, tolerate non-existing path in SubstitutePathVariables::SetPredefinedPathVariables() at least when running in the build environment, which is probably better than effectively running with "/" as UserInstallation anyway... This partially reverts commit 6dbb6275ebd1a4299099c3b6bc82ec4ee0e1fb86. Change-Id: I4d42d53c049056590662828360c4ce5a29af0f4b
2014-10-07fdo84315: add integration test for basic LibreOffice Base functionalityBjoern Michaelsen1-0/+25
Thanks to Stephan for helping with the test environment setup: sbergman@redhat.com: Do the same "set UserInstallation to user profile dir in test/user-template" in UnoInProcess's setUp as is done in test::BootstrapFixtureBase::setUp (unotest/source/cpp/bootstrapfixturebase.cxx) for CppunitTests. That way, these tests all use the workdir/unittest/ UserInstallation concurrently, but they at least do not run into the gotcha in SubstitutePathVariables::SetPredefinedPathVariables (framework/source/services/substitutepathvars.cxx) to only set the PREDEFVAR_USERPATH if PATH_EXISTS. Change-Id: Iad058098a4c69cb567e2d3222af3c7d4ba993271
2014-10-01unotest: the assigned value is never usedRobert Antoni Buj i Gelonch1-2/+1
Change-Id: I73c4945dec1db4c206948f27ba3d19fa08eedd46 Reviewed-on: https://gerrit.libreoffice.org/11742 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-01fdo#82577: Handle TimeNoel Grandin1-1/+1
Put the TOOLS Time class in the tools namespace. Avoids clash with the X11 Time typedef. Change-Id: Iac57d5aef35e81ace1ee0d5e6d76cb278f8ad866 Reviewed-on: https://gerrit.libreoffice.org/11684 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-09-29unotest: remove import from the same packageRobert Antoni Buj i Gelonch1-2/+0
Change-Id: I00b0f5624f5b03d53ff01660ca96dc355238b10c Reviewed-on: https://gerrit.libreoffice.org/11685 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-08-20java: remove unnecessary constructor declarationsNoel Grandin1-3/+0
in the absence of any other constructors, the compiler will automatically generate a public no-arg constructor Change-Id: I70eca507cd8e16e33580b3398d41d70690bc2909
2014-08-19java: no need to instantiate String objects directlyNoel Grandin1-1/+1
Change-Id: I7610774c94bf673ed3b574ffce04c4ee6ca93c03
2014-08-19java: use 'Integer.valueOf' instead of 'new Integer'Noel Grandin1-1/+1
Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
2014-08-12java: remove useless javadoc tagsNoel Grandin1-2/+0
that are not conveying any useful information Change-Id: Ic37934b8cc376fcdcb3d295232452f411dfd43b1
2014-08-12java: add @Override annotation to overriding methodsNoel Grandin1-0/+2
Change-Id: I086964c6f6ce52c60c52b6dbc445d3c21d22c80a
2014-08-08java: remove exceptions from throws clauses that are notNoel Grandin1-2/+2
.. actually thrown Change-Id: Ia326ac7f82e11b948ed0f34e20908a96e7adcd10
2014-08-08java: remove unnecessary semi-colonsNoel Grandin4-4/+4
Change-Id: Ibeeefc6e6ee8f7bed97a02f569f239ff035d38c4
2014-06-17improve the inlinesimplememberfunctions clang pluginNoel Grandin1-4/+0
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
2014-06-13loplugin:staticcallStephan Bergmann1-2/+1
Change-Id: Ib04cadafab0f3d0cd9e6bb550d846a3a1ca8ea76
2014-06-04Demystify magic poniesStephan Bergmann1-1/+1
Change-Id: I7e619daf8743d3471ece72d81f6cf1bb61741646
2014-05-29Detach all DocBasicItem objects upon process termination.Kohei Yoshida2-0/+3
To prevent rogue DocBasicItem objects (which are global objects) from attempting to stop listening after the main app is dead. Change-Id: I68a667137ca4e0eff18278f4d2d5dd67466eaf34
2014-05-23remove boilerplate in UNO Exception constructor callsNoel Grandin1-13/+10
Now that we have default values for Exception constructor params, remove lots of boilerplate code. Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
2014-04-12macros_test: use "css" short formTomaž Vajngerl1-9/+8
Change-Id: I2e8d8773703df67d090059be8bd9f3c7c7335f78
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann2-2/+2
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-02-26Remove visual noise from unotestAlexander Wilms1-2/+2
Change-Id: I34d98f086d1a041516174a26cbf37fc3d75da155 Reviewed-on: https://gerrit.libreoffice.org/8333 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-28bool improvementsStephan Bergmann1-1/+1
Change-Id: Ic113564f9d30e59b0292d97318f15e9b04813ce3
2014-01-17test::BootstrapFixtureBase::getPathFromWorkdir not unusedMichael Stahl1-0/+8
Change-Id: I4ddad27d1e5a4de9885956b80db37f1e2f80a96e
2014-01-17removed some unused code (svx, svtools, unotest)Petr Vorel1-6/+0
Change-Id: I1250581d69423030bd0a93a1529458b8d424ce3e Reviewed-on: https://gerrit.libreoffice.org/7329 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-12-17test::FiltersTest: add support for export testsMiklos Vajna1-8/+13
For now, this is only implemented for the Writer RTF filter. Change-Id: I0c7ae5b0e544bd4738652a38474f4d262ce65661
2013-12-17Remove unnecessary use of OUString constructor in + expressionsNoel Grandin3-7/+7
Convert code like aFilename = OUString::number(nFilePostfixCount) + OUString(".bmp"); to aFilename = OUString::number(nFilePostfixCount) + ".bmp"; Change-Id: I03f513ad1c8ec8846b2afbdc67ab12525ed07e50
2013-12-13fixes for previous commitMarkus Mohrhard2-3/+8
Change-Id: Ic4f2d36ce901b88b47b43fdebba197daf8bd0373
2013-11-19remove unnecessary use of OUString constructor when assigningNoel Grandin1-1/+1
change code like aStr = OUString("xxxx"); to aStr = "xxxx"; Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
2013-11-09fail early and hardLionel Elie Mamane1-0/+2
Change-Id: Ib550126d190e9436cf77e6c51eaf869ecd75a18b
2013-11-05fixincludeguards.sh: uno*Thomas Arnhold1-2/+2
Change-Id: I8fb3c25cd583b688104a0ee8620696e7b2958ab5
2013-11-04Convert code that calls OUString::getStr()[] to use the [] operatorNoel Grandin1-1/+1
This also means that this code now gets bounds checked in debug builds. Change-Id: Id777f85eaee6a737bbcb84625e6e110abe0e0f27