summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* expand SVM test (Mask, TextRect, TextLine) and mtfxmldumpTomaž Vajngerl2017-01-301-171/+292
| | | | | | | Change-Id: I13e0882ac7093d6d3ab46914316f303e1ab01b93 Reviewed-on: https://gerrit.libreoffice.org/33686 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
* vcl: add SVM metafile reading and writing test and extend xml dumpTomaž Vajngerl2017-01-142-23/+315
| | | | | | | Change-Id: I88ffb795a9c33ea62d05d599757a287335c7d680 Reviewed-on: https://gerrit.libreoffice.org/32914 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
* add ISECTREGIONCLIPREGION to dumperCaolán McNamara2017-01-051-0/+18
| | | | | | | | Change-Id: If60e84031cfa8aa3cbbdbb99281d784dcd9e6432 Reviewed-on: https://gerrit.libreoffice.org/32757 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* Add support for ETO_PDY in WMF/EMFMike Kaganski2016-12-291-7/+10
| | | | | | | | | | | | Currently it is implemented by making all characters different text arrays. Unit test included. Change-Id: I850bf192cf5d978a126d3f37b1084021d37bdf30 Reviewed-on: https://gerrit.libreoffice.org/32490 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
* screnshot test: Ignore error when creating directoriesSamuel Mehrbrodt2016-12-161-6/+2
| | | | | | | | | | createPath documentation advises against relying on the E_EXIST error code, so we just ignore it Change-Id: I0e842315e1fd5c661d2b504b196e320f84c58e4f Reviewed-on: https://gerrit.libreoffice.org/32081 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* cui.screenshot: Show full path when failing to create itSamuel Mehrbrodt2016-12-131-2/+3
| | | | Change-Id: Ic5196e90d7a25665cf9b5a2b039492195b0f00c2
* use SvtSysLocaleOptions::GetRealUILanguageTag(), not GetLocaleConfigString()Eike Rathke2016-12-021-1/+1
| | | | | | | | | | | Assuming that the screenshots directory suffix * should match the configured UI locale instead of the work locale * should not be empty if configuration says "Default - ..." * actually ScreenshotTest::implSaveScreenshot() explicitly tests (maCurrentLanguage == "en-US") and then sets the suffix to empty, so no other locale should exhibit the same Change-Id: Ie4561315b67c3ade20f3947772af45e471d0752f
* Postfix rather than prefix locale to directory nameKatarina Behrens2016-12-021-1/+2
| | | | | | | | | as this is what vnd.libreoffice.image:// expects for localized images Change-Id: I454ff86b86e11248f47ab65f682fb57e52d0f7e5 Reviewed-on: https://gerrit.libreoffice.org/31057 Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de> Tested-by: Katarina Behrens <Katarina.Behrens@cib.de>
* screenshots: builddir is not neccessarily same as srcdirChristian Lohmaier2016-11-261-5/+5
| | | | | | | Change-Id: Ic7d3d7854eeb5511d5e94e7329fcffa8a3ccba34 Reviewed-on: https://gerrit.libreoffice.org/31160 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
* Use ProductName as fallback for dialog titleSamuel Mehrbrodt2016-11-171-1/+2
| | | | | | | Change-Id: Iabdcc0730ccef444119f6fdb752e0470dc16fed5 Reviewed-on: https://gerrit.libreoffice.org/30915 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* Put generated screenshots in lang-dependant subdirSamuel Mehrbrodt2016-11-171-1/+5
| | | | | | | Change-Id: Ida481fcef52fa70390a539ab8f3a838a15084256 Reviewed-on: https://gerrit.libreoffice.org/30913 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* test: Allow to force a certain locale during unit testsSamuel Mehrbrodt2016-11-172-6/+16
| | | | | | | | | So that screenshots can be generated in different languages Change-Id: I486e48a49d6f3837058ec7ac93b5d7d3094be90e Reviewed-on: https://gerrit.libreoffice.org/30914 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* 'make screenshot' use-after-free fixesStephan Bergmann2016-11-101-3/+2
| | | | Change-Id: I4302d0d767a1bf50fd34a78e9aa0ad6d6b0c7a22
* convert std::unique_ptr<VclAbstractDialog> to VclPtrNoel Grandin2016-10-281-2/+2
| | | | Change-Id: Ifdd2a0599efd701def02b4a4d2a1c489cb1b27fa
* loplugin:unnecessaryoverrideNoel Grandin2016-10-131-5/+0
| | | | | | | Change-Id: I08c55a3023ec2e8990098eeb60e91cd18556e7ae Reviewed-on: https://gerrit.libreoffice.org/29656 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
* CPPUNIT_ASSERT[_DOUBLES]_EQUALStephan Bergmann2016-10-061-2/+1
| | | | Change-Id: I417cea926abcc511e74a090ee90a851c138ac0c0
* Remove _TYPED suffix from tools/link.hxx macrosStephan Bergmann2016-10-052-3/+3
| | | | | | | | | ...which was introduced with 3ead3ad52f9bb2f9d1d6cf8dfc73a0a25e6778ed "Gradually typed Link" to distinguish the new, typed versions from the old, untyped ones, but is no longer necessary since 382eb1a23c390154619c385414bdbe6f6e461173 "remove untyped Link<>" removed the old versions. Change-Id: I494025df486a16a45861fcd8192dfe0275b1103c
* Fix naming of makefile to mend make dump-deps.Michael Meeks2016-09-292-1/+1
| | | | | | | | | Also add error message to make this more clear in the future. Change-Id: Ic9e3a2c89119ef1ec3e6cc1074b7419f7ee268b7 Reviewed-on: https://gerrit.libreoffice.org/29375 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* replace sal_Size with std::size_t (or sal_uInt64 for SvStream pos)Michael Stahl2016-09-152-2/+2
| | | | | | | | ... except in include/rtl, include/sal, include/uno, where sal_Size is retained for compatibility, and where callers of rtl functions pass in pointers that are incompatible on MSVC. Change-Id: I8344453780689f5120ba0870e44965b6d292450c
* loplugin:override: No more need for the "MSVC dtor override" workaroundStephan Bergmann2016-09-131-1/+1
| | | | | | | | | | | | | | | | | The issue of 362d4f0cd4e50111edfae9d30c90602c37ed65a2 "Explicitly mark overriding destructors as 'virtual'" appears to no longer be a problem with MSVC 2013. (The little change in the rewriting code of compilerplugins/clang/override.cxx was necessary to prevent an endless loop when adding "override" to OOO_DLLPUBLIC_CHARTTOOLS virtual ~CloseableLifeTimeManager(); in chart2/source/inc/LifeTime.hxx, getting stuck in the leading OOO_DLLPUBLIC_CHARTTOOLS macro. Can't remember what that isAtEndOfImmediateMacroExpansion thing was originally necessary for, anyway.) Change-Id: I534c634504d7216b9bb632c2775c04eaf27e927e
* convert LineStyle to scoped enumNoel Grandin2016-09-051-4/+4
| | | | Change-Id: I30cfa5a0649b806604c443f55683d1f2a430983d
* convert RasterOp to scoped enumNoel Grandin2016-09-051-6/+6
| | | | Change-Id: I136423c105316c9b5b18e64d04a248fd7ac5590b
* cppcheck: Prefer prefix operatorJulien Nabet2016-09-041-1/+1
| | | | | | | Change-Id: Ie5afc17cd0a27989c11bbf1d107b95ddad1218c3 Reviewed-on: https://gerrit.libreoffice.org/28660 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
* Break test::setUpVcl into a test-setupvcl library of its ownStephan Bergmann2016-08-304-2/+40
| | | | | | | | | | | | | | | | | | ...so it can be gb_CppunitTest_use_library_objects-included in upcoming <https://gerrit.libreoffice.org/#/c/28322/> "tdf#99402: fix Metafile Font handling". Executable_pdf2xml.mk linked against test since b0da8f00a0d41f2b17639fcee4ed4956421e55c5 "Make pdf2xml usable at least from within buildenv again", but that seems unnecessary and would now cause problems when linking the pdf2xml executable on Linux, as the linker for whatever reason wouldn't find the libtest-setupvcl.so referenced from libtest.so, even though the latter has a proper DT_RPATH. Change-Id: Iba5d80266520ce1f5dafedffa520d18e853f7ec5 Reviewed-on: https://gerrit.libreoffice.org/28473 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
* Remove duplication of "set up VCL" codeStephan Bergmann2016-08-296-79/+82
| | | | | | | | | | | | The "this is called from pyuno" version in test/source/bootstrapfixture.cxx had had an empty deinitHook, but it appears to not hurt to give it the same deinitHook as the version in test/source/vclbootstrapprotector.cxx had had. Make test::setUpVcl accessible from outside module test for an upcoming use in <https://gerrit.libreoffice.org/#/c/28322/16> "tdf#99402: fix Metafile Font handling". Change-Id: I1d609445690b6ee5e331aa322cd4bf434a3de78e
* put StreamMode masks in scope of enum classJochen Nitschke2016-08-272-2/+2
| | | | | | | | Change-Id: I77682f7e289a59b986bb84edf014029a20266470 Reviewed-on: https://gerrit.libreoffice.org/28420 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* screenshots: clang plugin & tabpage usage fixesArmin Le Grand2016-08-181-2/+2
| | | | | | | | Adapted clang compiler results, made TabDialog implementaions of ScreenShot API work with real UXMLDescription names, including a solution for using multiple tabPages with the same *.ui file Change-Id: I56df878b3db3bcc18fa2b4713b7ad72d42e8eb30
* screenshots: unify dumping of dialog test batch fileArmin Le Grand2016-08-181-0/+53
| | | | Change-Id: Ia1e79216d9537c65f8b7362778a2e1ad3ec6c2c2
* screenshots: fix fallback cases for sd and scArmin Le Grand2016-08-181-8/+16
| | | | Change-Id: I27dab5552e3924df30c8b09c46994b2d645bcde9
* screenshots: fallback screenshot to ui filesArmin Le Grand2016-08-181-2/+26
| | | | | | | | | | | | | | | Besides the already existing methods to dump adapted dialogs and create and dump fallback dialogs I added a possibility to process a given input file which may contain a list of UXMLDescription files (*.ui files), one per line. This file is processed (empty lines and comment lines using '#' allowed) and for each descriptor first tries to find a known, adapted dialog. If found it gets used, else fallback is tried. Added ui-definition files for sd and sc which contain all ui-files from these dialogs. Adapted the test base class to hold the needed functionality. Change-Id: I1d4c64af8cd5d9c89a53b193951c3e49669f5852
* screenshots: Use UI string and fallback for UI-String onlyArmin Le Grand2016-08-181-43/+111
| | | | | | | | | | | | | | | Two changes in this commit: The Dialogs to be dumped are identified in their test files using their UXMLDescription to allow later to 'find' the known dialogs and use the specialized construction for these. Also added a fallback to construct a vcl Dialog based on only the UXMLDescription and the VclBuilder. This will be constructed without any active initialization/layouting, so should only be used for unknown Dialogs. Also added a dumpDialogToPath version to the tooling that can work directly with a vcl Dialog instead of a VclAbstractDialog. Change-Id: I90abb6f59c2fcc5d534907ae7e4b9a15edc2d694
* screenshots: move shared code to separate classKatarina Behrens2016-08-182-0/+103
| | | | Change-Id: I1760de221bc53d345c2bbfb4fe878c120073ea45
* new loplugin unnecessary overrideNoel Grandin2016-07-152-10/+0
| | | | | | | Change-Id: I88d3e33823d68745b98625050a8a274f9ef04bcb Reviewed-on: https://gerrit.libreoffice.org/27135 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
* loplugin:passstuffbyref also for {css::uno,rtl}::ReferenceStephan Bergmann2016-07-075-10/+10
| | | | Change-Id: If18ea216cc3416e4a7e2041e50b5a64b1e90886a
* uitest: move the uitest files to vclMarkus Mohrhard2016-06-184-164/+0
| | | | | | | This allows us to use them in vcl as well without introducing dependency problems. Change-Id: Ib97af2d559902f1a6b47f9255bb0426411670647
* uitest: some more work for the UI testingMarkus Mohrhard2016-06-182-5/+76
| | | | Change-Id: I79193190f8f614b2d6a71032f05a0518eb9d1a1d
* uitest: add groundwork for ui testing frameworkMarkus Mohrhard2016-06-184-0/+93
| | | | Change-Id: I51b81da870fd220d56b32c20b9e6c4604912a014
* Add MS binary format validator support in test fixtureVasily Melenchuk2016-06-171-1/+10
| | | | | | | | | | bffvalidator (Microsoft Office Binary File Format Validator) can now be used for verification of MS binary export tests Change-Id: Ibc65e64726a454cdd33946006b36427b9cc6fbd2 Reviewed-on: https://gerrit.libreoffice.org/26405 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
* tools: rename SvStream::Read/Write to ReadBytes/WriteBytesMichael Stahl2016-06-063-3/+3
| | | | | | | Change-Id: Ib788a30d413436aa03f813aa2fddcbc4d6cd2f9a Reviewed-on: https://gerrit.libreoffice.org/25972 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
* SVGIO: Add support for font-family in unittests and unify...Xisco Fauli2016-05-311-0/+4
| | | | | | | | | .. textsimpleportion's assert Change-Id: I97d4c76dcfaa6d3ebebfe3eebfabc8ee7799589d Reviewed-on: https://gerrit.libreoffice.org/25691 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco Faulí <anistenis@gmail.com>
* teach stylepolice plugin about ref-counted-pointer namingNoel Grandin2016-04-287-127/+127
| | | | | | | Change-Id: I6e91d22fc1826038c05ddb6fc065563c6a250752 Reviewed-on: https://gerrit.libreoffice.org/24459 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* tdf#45904 Move java XViewPane test to c++Fabio Buso2016-04-272-0/+55
| | | | | | | Change-Id: I3c99fb4c611a3b45d31412731c548b59e95d7179 Reviewed-on: https://gerrit.libreoffice.org/24285 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* Some more sal_Bool -> boolStephan Bergmann2016-04-251-1/+1
| | | | Change-Id: I4ee61f3f1d14cf4a90224199ed72e4de0890b5af
* Avoid reserved identifiersStephan Bergmann2016-04-221-1/+1
| | | | Change-Id: I3542622f6b3752f7254abd07d9f3a8141f10c3dc
* loplugin:salbool: Automatic rewrite of sal_False/TrueStephan Bergmann2016-04-203-5/+5
| | | | Change-Id: Ie66903c2aae5535a507e1549b58d892b80237842
* lok context menu: Add module specific unit testsPranav Kant2016-04-134-41/+84
| | | | | | | | | | For calc, now click on the image to have more diverse context menu with checkbuttons etc. Change-Id: Ibe2471348b2572523f2684144bd18664ab48a2bb Reviewed-on: https://gerrit.libreoffice.org/24006 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: pranavk <pranavk@collabora.com>
* tdf#94306 replace boost::noncopyable in stoc to xmlsec..Jochen Nitschke2016-04-131-2/+3
| | | | | | | | | | | | | | | Replace with C++11 delete copy-constructur and copy-assignment. Remove boost/noncopyable.hpp includes. Add missing default ctors. With this commit there should be no users of boost::noncopyable left. Change-Id: I6b1e47824912a6a80cc3f00f34938ebc048d8975 Reviewed-on: https://gerrit.libreoffice.org/24051 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
* lok context menu: unit testPranav Kant2016-04-124-0/+145
| | | | | | | Change-Id: I244fbf4b98368c7c0d66cdd865e1243639727026 Reviewed-on: https://gerrit.libreoffice.org/23985 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: pranavk <pranavk@collabora.com>
* tdf#45904 move java based api tests to c++kadertarlan2016-03-202-1/+11
| | | | | | | Change-Id: Ibd9411e844c8e42fe625ffd979e936f827099ee9 Reviewed-on: https://gerrit.libreoffice.org/22604 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* Extract Directories from BootstrapFixtureBaseStephan Bergmann2016-03-101-1/+1
| | | | | | | | | | (as some tests derive from the latter only for the Directories part, not for the setUp/tearDown overrides: those tests will be cleaned up next) Change-Id: Ib6b78eea868b8bc21d4cc6e8fd9e1d025deca05f Reviewed-on: https://gerrit.libreoffice.org/23078 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>