summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2018-07-09Fix typoTor Lillqvist1-1/+1
Change-Id: I73b808f7dc34f1bdd4b84086b79cf56541e5072c
2018-07-08tdf#45904 Move _XSheetCellCursor Java tests to C++Jens Carl2-2/+141
Change-Id: I9d12f9a13d3e0c59b7a28ff91563878efde22b68 Reviewed-on: https://gerrit.libreoffice.org/45067 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-07-08loplugin:passstuffbyrefNoel Grandin1-2/+1
Change-Id: I6e6c47020073ec183c6c8ff9cd026a0bec23b177 Reviewed-on: https://gerrit.libreoffice.org/57088 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-07-02tdf#117923: handle direct formatting for numbering in .docMike Kaganski1-1/+6
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>
2018-06-29schema: ODF 1.3 + libreoffice extensions schemaMichael Stahl1-1/+3
Build this with RelaxNG <include> feature instead of a complete schema. This isn't bad but could work better if the schema were a little more modular... In order to track down all the uses of extension namespaces like loext, invoke the validator without "-e". Change-Id: I92a666fc54c25d66cea38decdc188d60de2a0b74 Reviewed-on: https://gerrit.libreoffice.org/56488 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
2018-06-29test: invoke ODF validator with custom schemasMichael Stahl1-3/+14
This requires a new validator jar for the -m flag to specify MathML schema. Change-Id: If99cf70f386a16a90ba676f8f5ff65a537c9ce56 Reviewed-on: https://gerrit.libreoffice.org/56487 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
2018-06-29tdf#45904 Move _XDocumentAuditing Java test to C++Jens Carl2-0/+142
Change-Id: Ic03e42c9c2ff27579b442dc8d1408deaea839ec4 Reviewed-on: https://gerrit.libreoffice.org/56644 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-06-14tdf#45904 Move _XFormulaQuery Java tests to C++Jens Carl2-0/+67
Enable tests for ScTableSheetObj and fixes #i86793. Change-Id: Ic9914fd74a70034e4adc7e55203c92935a472f9d Reviewed-on: https://gerrit.libreoffice.org/55782 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-06-13tdf#45904 Move remaining _XCellRangeReferrer Java tests to C++Jens Carl1-6/+4
Move remaining _XCellRangeReferrer tests to C++ and partly fix #i84656. Change-Id: I77cc8550888f460a6ae265816907a19a81cbe871 Reviewed-on: https://gerrit.libreoffice.org/55732 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-06-12tdf#45904 Move _XCellRangeData Java test to C++Jens Carl1-11/+34
Move the remaining tests to C++ and also enable/fix #i84671 by creating test cases for ScTableSheetObj. Change-Id: I9412fe7a1947b9afb4343a8f5726eccf9ea371a3 Reviewed-on: https://gerrit.libreoffice.org/55657 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-06-08look for unnecessary calls to Reference::is() after an UNO_QUERY_THROWNoel Grandin13-23/+0
Since the previous call would throw if there was nothing to be assigned to the value. Idea from tml. Used the following script to find places: git grep -A3 -n UNO_QUERY_THROW | grep -B3 -F 'is()' Change-Id: I36ba7b00bcd014bdf16c0455ab91056f82194969 Reviewed-on: https://gerrit.libreoffice.org/55417 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tor Lillqvist <tml@collabora.com> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2018-06-01loplugin: look for CPPUNIT_ASSERT_EQUALS with params swappedNoel Grandin2-6/+6
idea originally from either tml or moggi, can't remember which Change-Id: Id78d75035036d3aa1666e33469c6eeb38f9e624d Reviewed-on: https://gerrit.libreoffice.org/55126 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-05-30use BitmapEx in the screenshot stuffNoel Grandin1-3/+3
part of the process of moving Bitmap usage to BitmapEx Change-Id: I4f02f8aa60d19a3639d623a998491447adf79e15 Reviewed-on: https://gerrit.libreoffice.org/55031 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-05-12make Bitmap/BitmapEx constructors explicitNoel Grandin1-1/+1
and add BitmapEx::operator=(Bitmap const &) Image::Image(Bitmap const &) to lessen the fallout Change-Id: Iff5fab88d167a7be739c370c9933d36c297bc61c Reviewed-on: https://gerrit.libreoffice.org/54162 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-05-11test: force EnableHeadlessMode() for PythonTestMichael Stahl2-3/+3
Clearly this should be on, but we can't easily pass in a command line argument like is done in CppunitTest because that doesn't end up in rtl_getAppCommandArg(), which is empty since it's the python.bin process, so we'd have to find a way to get the argv from python first... Change-Id: I9321a9f933f388a659643898e0dc38f295f2068c Reviewed-on: https://gerrit.libreoffice.org/54083 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
2018-05-09extend property tester - add optional variants and colorTomaž Vajngerl1-3/+47
Change-Id: Iad72470b5f1fc5405673d2d7781bc59002a3a44a Reviewed-on: https://gerrit.libreoffice.org/53988 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2018-05-09move unoapi_property_tester to include so it can be used outsideTomaž Vajngerl6-126/+4
Change-Id: Id6eebba7d80aa287274e921fdd872d37d0e09ef0 Reviewed-on: https://gerrit.libreoffice.org/53986 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2018-05-08fix make screenshotCaolán McNamara1-1/+6
Change-Id: I781dfbc7bb09afd0c2325bcc9fd98e31ec5c4f39 Reviewed-on: https://gerrit.libreoffice.org/53983 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-05-07Make screenshot folders = ALL_LANGSOlivier Hallot1-3/+1
Makes it easier to copy to help media files. Change-Id: I0f0c9272fbc0f8df826af74ff79bfbb171a17a65 Reviewed-on: https://gerrit.libreoffice.org/53903 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2018-05-05Fix typosAndrea Gelmini2-2/+2
Change-Id: I92078fdece135754744d85424956dbb071f3899e Reviewed-on: https://gerrit.libreoffice.org/53638 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2018-04-26xml diff - report what attribute values actually differTomaž Vajngerl1-2/+30
Change-Id: I16bc122e3f2cce94a5eb8454b528bf484210a4ae Reviewed-on: https://gerrit.libreoffice.org/53369 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2018-04-18tdf#45904 Move _XScenario Java tests to C++Jens Carl2-0/+44
Change-Id: Ic12eebe62de5132dce26ec46c62501f90200b909 Reviewed-on: https://gerrit.libreoffice.org/52180 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-04-17tdf#45904 Move _SheetSortDescriptor Java tests to C++Jens Carl2-0/+122
The C++ tests are now located in sheetsortdescriptor2.(hxx|cxx), because this is the latest implementation of the UNO API interface (SheetSortDescriptor2.idl). Change-Id: I5b11a38f6cd0473714c4d57ee92889bfd7605e83 Reviewed-on: https://gerrit.libreoffice.org/52930 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-04-17loplugin:constparamsNoel Grandin2-25/+26
Change-Id: I3d1b88dbd0ff73fddc08d52f50e0efb42daab89b Reviewed-on: https://gerrit.libreoffice.org/52756 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-04-15tdf#45904 Move _FunctionDescription Java tests to C++Jens Carl2-0/+87
Change-Id: Ib4baf75dddb3b63bab25ab13967a20c65d692ce2 Reviewed-on: https://gerrit.libreoffice.org/52613 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-04-06tdf#45904 Move _XCellRangeMovement Java tests to C++Jens Carl2-1/+125
Change-Id: I8d3697b9c409e4fd9f9d28b8598b8807b91c5363 Reviewed-on: https://gerrit.libreoffice.org/52485 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-04-03tdf#45904 Move _XCellRangeFormula Java tests to C++Jens Carl2-0/+42
Change-Id: Iff5ca30e47a3a3eee704ad9aefdf61b3fcd72f5d Reviewed-on: https://gerrit.libreoffice.org/52286 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-04-02tdf#45904 Move _XArrayFormulaRange Java tests to C++Jens Carl2-0/+55
Change-Id: I87b6e52507428537fcc574842c2da9c36fbd672b Reviewed-on: https://gerrit.libreoffice.org/52247 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-04-02tdf#45904 Move _XActivationBroadcaster Java tests to C++Jens Carl2-0/+70
Change-Id: If8f44b24e58663bacb1cf6b2a1ec533e87fb8a38 Reviewed-on: https://gerrit.libreoffice.org/52216 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-04-01tdf#45904 Move _CaptionShape Java tests to C++Abhyudaya Sharma2-0/+179
Change-Id: I66fd554a542912784cf730e28cc223591ad5c723 Reviewed-on: https://gerrit.libreoffice.org/51575 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-03-30Add UNO API property tester for common read-only properties.Jens Carl2-6/+123
Add UNO API property tester for read-only properties 'double', 'long', 'short' and 'string'. Change-Id: I7177e133972058b0272a3cf8493521fbfbcade32 Reviewed-on: https://gerrit.libreoffice.org/52142 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-03-30Improve documentationJens Carl1-4/+4
Change-Id: I1c8daa5544806e7d646d7e2c9bbf57d78b7091fb Reviewed-on: https://gerrit.libreoffice.org/52141 Reviewed-by: Jens Carl <j.carl43@gmx.de> Tested-by: Jens Carl <j.carl43@gmx.de>
2018-03-28tdf#45904 Move _XCalculatable Java test to C++Jens Carl2-0/+75
Change-Id: Ib1fac049d2a135074de45c17fbaa78b0af2bec91 Reviewed-on: https://gerrit.libreoffice.org/51929 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-03-27tdf#45904 Move _XDDELink Java test to C++Jens Carl2-0/+46
Change-Id: Ic7a23088ee10f2d92d05354131e3066ec098a7b9 Reviewed-on: https://gerrit.libreoffice.org/51850 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-03-23Fix typoAndrea Gelmini1-1/+1
Change-Id: I278098108a8120b1b7a8115d8e5abc6d1ea57321 Reviewed-on: https://gerrit.libreoffice.org/51784 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2018-03-22tdf#45904 Move _SpreadsheetDocumentSettings Java test to C++Jens Carl2-0/+191
Change-Id: Ic6bde95d0d4255e082a60e41a117365422b22aa8 Reviewed-on: https://gerrit.libreoffice.org/51724 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-03-22Add UNO API property tester for double and read-only boolean.Jens Carl2-0/+57
Change-Id: I85ec413aa34bdc563294dc71520742515849fbca Reviewed-on: https://gerrit.libreoffice.org/51722 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-03-21Move UNO API property testers header fileJens Carl5-2/+73
Move the header file form the global include path include/test to the module-specific path test/inc. Change-Id: I72c1f3b420bc387f4f5b9ab75f30f0e8462c1b75 Reviewed-on: https://gerrit.libreoffice.org/51682 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-03-20Fix error with default argumentsJens Carl1-2/+2
Change-Id: Id645d43ad63b7d91d3c47898c22594dc58333cd2 Reviewed-on: https://gerrit.libreoffice.org/51622 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-03-18tdf#45904 Move _Spreadsheet Java tests to C++Jens Carl2-0/+91
Change-Id: Ic540d06899def77313d6dc7e0a5241e1f9eeea54 Reviewed-on: https://gerrit.libreoffice.org/51491 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-03-18Create UNO API property testers for common typesJens Carl2-0/+103
Create UNO API property testers for common, so it's possible to share/use them between all the UNO API service property tests. Testers are available for the types 'boolean', 'long', 'short', and 'string'. Change-Id: Ia36dba98c774695b3ba6ac9d9917af9fb20efdba Reviewed-on: https://gerrit.libreoffice.org/51259 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-03-09tdf#45904 Move _SheetLink Java tests to C++Jens Carl2-0/+68
Change-Id: I33813be65bcb44c11a35bc97d963057418a28d9e Reviewed-on: https://gerrit.libreoffice.org/50984 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-03-06Normalize computation of directory and file-in-directory URLsStephan Bergmann1-6/+6
There are occasional failures of Jenkins "Daily Screenshot Build on Windows" like <https://ci.libreoffice.org/job/lo_tb_master_win_screenshot/324/console> and <https://ci.libreoffice.org/job/lo_tb_master_win_screenshot/332/console>, always failing with > C:/cygwin/home/tdf/lode/jenkins/workspace/lo_tb_master_win_screenshot/test/source/screenshot_test.cxx(84) : error : Assertion > Test name: ReportdesignDialogsTest::openAnyDialog > assertion failed > - Expression: aNew.IsOpen() > - Failed to open <C:/cygwin/home/tdf/lode/jenkins/workspace/lo_tb_master_win_screenshot/workdir/screenshots/modules/dbreport/ui/condformatdialog/CondFormat.png>: 796 (where 796 is ERRCODE_IO_NOTEXISTSPATH). Beats me how that can happen, when ScreenshotTest::implSaveScreenshot first creates the dir and then the file-in- dir (and it is rather unlikely that something else deletes the dir in the meantime, for various builds of that Jenkins bot, always for the same dir workdir/screenshots/modules/dbreport/ui/condformatdialog/), and why it always happens for exactly the same file, workdir/screenshots/modules/dbreport/ui/condformatdialog/CondFormat.png during CppunitTest_reportdesign_dialogs_test. However, one curiosity was that the dir's URL was computed with m_directories.getURLFromWorkdir(aDirname); (without a leading slash inserted before aDirname) while the file's pathname was computed with m_directories.getPathFromWorkdir("/" + aDirname + ...) (with a leading slash inserted before aDirname). Turns out that SvFileStream accepts a URL as well as a pathname, so normalize the computation of the dir's and the file's URL. Maybe that will give a clue why that Jenkins bot sometimes fails. Change-Id: I53b59b51ffc4355c45aa0ca72f6e187cf2010f92
2018-03-04tdf#45904: Move _Shape Java tests to C++Jens Carl2-0/+96
Change-Id: If0bfa9fb465f37e0ccce5b2fa4e909baaac1df50 Reviewed-on: https://gerrit.libreoffice.org/50722 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-02-28ensure [Message]Dialog dispose order on direct .ui hackeryCaolán McNamara1-2/+13
Change-Id: I31f190a1232331dd2076cdb8583e2036887f4f9f Reviewed-on: https://gerrit.libreoffice.org/50441 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-02-27tdf#45904: Move _SheetFilterDescriptor Java tests to C++Jens Carl2-0/+152
Change-Id: I894b2e2534efeb5369c491053caf56f67dc56618 Reviewed-on: https://gerrit.libreoffice.org/50411 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-02-14Fix random range for XFunctionDescriptions::testGetByIdStephan Bergmann1-2/+2
...regression introduced with eff70347190a6642fd62a9e0b20e4366c39fbc7a "tdf#45904 Move _XFunctionDescriptions Java test to C++" (where java.util.Random.nextInt(n) returned a value 0 <= x < n), apparently causing sporadic failures of CppunitTest_sc_functionlistobj like <https:// ci.libreoffice.org/job/lo_gerrit/27696/Config=linux_clang_dbgutil_64/console> > ##Failure Location unknown## : Error > Test name: sc_apitest::ScFunctionListObj::testGetById > An uncaught exception of type com.sun.star.lang.IndexOutOfBoundsException Also verify that nCount is not negative, so that the requirements of the std::uniform_int_distribution ctor are guaranteed to be satisfied. Change-Id: I90a5dc234fdd07f52fea69ae1d406f0818efb007
2018-02-12EPUB export, fixed layout: fix validation error with imagesMiklos Vajna1-0/+27
The "xlink" prefix for the "xlink:href" attribute on the "image" element was not bound. Change-Id: I473a0b1612b4842cf84a264960bb28a9f19600e5 Reviewed-on: https://gerrit.libreoffice.org/49612 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2018-02-02tdf#45904 Move _SheetCellRanges Java tests to C++Jens Carl2-0/+144
Change-Id: If391071a7e44c2fbeaaa0fa46f6043f30e777cec Reviewed-on: https://gerrit.libreoffice.org/49125 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-02-02tdf#45904 Move _SheetCellRange Java tests to C++Jens Carl2-0/+168
Change-Id: Ia4ebe9d0418e33d245437a49c7ce9551b4a06e82 Reviewed-on: https://gerrit.libreoffice.org/49124 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>