summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* test: check validator exit code *after* checking validator outputMichael Stahl2019-07-221-3/+3
| | | | | | | | | | | | | | | ODF validator may now actually exit with non-0 since commit b14e2f6c63c18894286c99ee8dde9070e24b41c2 - look for validation errors in this case too. Change-Id: I36f4437c54d9a60afee0663a0b9be206773c5378 Reviewed-on: https://gerrit.libreoffice.org/75964 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de> (cherry picked from commit ecce69dc554429e42bf3fc67d75ac86cf2120714) Reviewed-on: https://gerrit.libreoffice.org/76083 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* fix assert in make screenshotCaolán McNamara2019-06-111-1/+3
| | | | | | | | Change-Id: Ie6cea9a97205a54f806c7e56561f712f8a106fb9 Reviewed-on: https://gerrit.libreoffice.org/73808 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* Fix typosAndrea Gelmini2019-05-191-1/+1
| | | | | | | Change-Id: If0747801d2b955718aa96b97816307ce14cb11a1 Reviewed-on: https://gerrit.libreoffice.org/72547 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
* Resolves: tdf#69042 - Add a "What's New" infobarheiko tietze2019-05-171-0/+3
| | | | | | | | | | | | Shows an infobar with a link to the respective wiki page Adds a button to the About dialog Replaces If6eb1542d2ad310226f76850f480f2f99070b803 Change-Id: I1eeb504994a6364feb90cfa447029875e0ec1969 Reviewed-on: https://gerrit.libreoffice.org/72218 Tested-by: Jenkins Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com> Tested-by: Heiko Tietze <tietze.heiko@gmail.com>
* fix wrong SET/QUERY flags passed to uno::ReferenceNoel Grandin2019-05-1331-78/+78
| | | | | | | | | | | By creating deleted methods for the wrong calls. Avoids the compiler needing to construct a temporary Change-Id: I3b8c648d6bb22d22827bf74f21ea5a2a17fc0f6a Reviewed-on: https://gerrit.libreoffice.org/72103 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* tdf#45904 Move XComponent Java tests to C++Jens Carl2019-05-041-0/+10
| | | | | | | | | Move XComponent Java tests to C++ for ScShapeObj. Change-Id: Ib692827729dbe38eaceb76aa042d76e14d9614f8 Reviewed-on: https://gerrit.libreoffice.org/71787 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
* improve assert message in XMLDiffNoel Grandin2019-05-031-13/+25
| | | | | | | Change-Id: I561dca23621075753185d7ea2afc5fd174cd2b3d Reviewed-on: https://gerrit.libreoffice.org/71728 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* Enable testing of multiple service namesJens Carl2019-05-031-2/+2
| | | | | | | | | | Enable testing of multiple service names of the object supports this, by storing all possible names in a vector. Change-Id: Iff2c974cc30a0729cb26b07002582e0786a4de44 Reviewed-on: https://gerrit.libreoffice.org/71713 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
* Use hasElements to check Sequence emptiness in [t-u]*Arkadiy Illarionov2019-05-0215-20/+16
| | | | | | | | | Similar to clang-tidy readability-container-size-empty Change-Id: Idefe55e37f5c837c889548ffe7c5711400012a4d Reviewed-on: https://gerrit.libreoffice.org/71667 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* tdf#45904 Move XReplaceDescriptor Java tests to C++Jens Carl2019-05-022-0/+38
| | | | | | | | | Move XReplaceDescriptor Java tests to C++ for ScCellSearchObj. Change-Id: Ica5042ce8b5eac3663a0fb5f66ae0a2830c89d93 Reviewed-on: https://gerrit.libreoffice.org/71645 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
* tdf#45904 Move SearchDescriptor Java tests to C++Jens Carl2019-05-022-0/+66
| | | | | | | | | Move SearchDescriptor Java tests to C++ for ScCellSearchObj. Change-Id: I3c9ffbfc80c7fdc39d0e67fe8aae12605a8d04f5 Reviewed-on: https://gerrit.libreoffice.org/71644 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
* tdf#45904 Move XSearchDescriptor Java tests to C++Jens Carl2019-05-022-0/+37
| | | | | | | | | Move XSearchDescriptor Java tests to C++ for ScCellSearchObj. Change-Id: I1ae50bb586fd742b7cc19f71bcae018ca42139e6 Reviewed-on: https://gerrit.libreoffice.org/71643 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
* Make getXPathPosition assert on requested child foundMike Kaganski2019-05-012-2/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, for an XML like this: <sharedItems> <d v="2017-07-10T09:11:02"/> <d v="2017-07-10T09:11:03"/> <m/> </sharedItems> the call like int pos = getXPathPosition(pDoc, "/x:sharedItems", "absent"); gave 3. That could result in mistakes, when a test would assert on position "3" for a child element which name is mistyped. I made such a mistake when creating a unit test trying to assert on a position of the last element, and writing its name as "x:m", like in rXPath itself; the return was 3, and I initially wrongly assumed that the return is 1-based (like in xpath bracketed expressions). rChildName made const OString&, for consistency with rXPath, or with rAttribute in getXPath: child name is just a part of a longer xpath. Change-Id: I7ba9c4466c75b1b10fce1ccf26ef3b56b4e11e87 Reviewed-on: https://gerrit.libreoffice.org/71614 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
* assertXPath: disallow passing rAttribute without rExpectedValueMike Kaganski2019-04-251-0/+5
| | | | | | | Change-Id: I7fb59039429361dad04fb68507f40545f9c4dd6d Reviewed-on: https://gerrit.libreoffice.org/71290 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
* tdf#45904 Move TableColumn Java tests to C++Jens Carl2019-04-252-0/+56
| | | | | | | | | Move TableColumn Java tests to C++ for ScTableColumnObj. Change-Id: I3f17fa1f25c2676124b56c384364e36736fac849 Reviewed-on: https://gerrit.libreoffice.org/71261 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
* Improve error messagesJens Carl2019-04-251-2/+7
| | | | | | | Change-Id: I08d5b060b6756a89972eeec57c1f9c85e6f65500 Reviewed-on: https://gerrit.libreoffice.org/71262 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
* tdf#45904 Move XChartData Java tests to C++Jens Carl2019-04-192-0/+94
| | | | | | | | | Fix tdf#43309: Move XChartData Java tests to C++ for ScCellRangeObj. Change-Id: I6b57db53fdddab2ff382354d32809404224a2e1e Reviewed-on: https://gerrit.libreoffice.org/70956 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
* Add a test to check XPath testing facilities in XmlTestToolsMike Kaganski2019-04-183-0/+71
| | | | | | | | | | ... to guarantee that e.g. getXPath will always fail for non-empty non-existing attribute Change-Id: I22cf932eda020abf16608341fcd1769b35478883 Reviewed-on: https://gerrit.libreoffice.org/70891 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
* tdf#45904 Move XTextField Java tests to C++Jens Carl2019-04-171-5/+18
| | | | | | | | | | Move XTextField Java tests to C++ for ScEditFieldObj_Header (formerly ScHeaderFieldObj). Change-Id: I36b723945d9306720846b4a4e2d3eaddb1a1c063 Reviewed-on: https://gerrit.libreoffice.org/70841 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
* loplugin:sequentialassign in test..toolsNoel Grandin2019-04-153-6/+3
| | | | | | | Change-Id: I3a6c5807c3262dde6756551e9e955c4ceae09b4f Reviewed-on: https://gerrit.libreoffice.org/70732 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* tdf#45904 Move TextContent Java tests to C++Jens Carl2019-04-122-0/+69
| | | | | | | | | | Move TextContent Java tests to C++ for ScEditFieldObj_Cell and ScEditFieldObj_Header (formerly ScCellFieldObj). Change-Id: Ieed5cdbc128490e66d1797c817d998a932317dd4 Reviewed-on: https://gerrit.libreoffice.org/70615 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
* Fix deadlocks of `make screenshot` testsStephan Bergmann2019-04-111-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | ...like CppunitTest_sw_dialogs_test after a1700d52a47184ee07b91b461a846dc5435f0022 "tdf#124238 - Show a Tip-Of-The-Day dialog on startup" (see my comment from today at <https://gerrit.libreoffice.org/#/c/69498/> "tdf#124238 - Show a Tip-Of-The-Day dialog on startup"). As it is unlikely that any test would actually want the Tip-Of-The-Day dialog to appear, just set the corresponding configuration property to false so that all tests using gb_CppunitTest_use_unittest_configuration no longer show it. (<https://gerrit.libreoffice.org/#/c/69498/21..22/sfx2/source/view/viewfrm.cxx> had added the --nofirststartwizard resp. later --nologo hack to SfxViewFrame::Notify in sfx2/source/view/viewfrm.cxx, in response to <https://gerrit.libreoffice.org/#/c/69498/21> failing in UITest_hide_cols. However, that hack is not obsoleted by this change, as those UITest apparently don't use gb_CppunitTest_use_unittest_configuration.) Change-Id: I365e04eb1a3ec0b50f64d5846fc985f601a2750e Reviewed-on: https://gerrit.libreoffice.org/70595 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* XmlTestTools::getXPath now asserts that non-empty attribute existsMike Kaganski2019-04-111-0/+3
| | | | | | | | | | | | | | It turns out that this change revealed unit tests written incorrectly (and untested), or maybe which became broken (not testing) because of some previous assertXPath change? They incorrectly used 3-arg form of it to check node content equality to passed string, while in fact, an attribute was looked for with that name, and its empty return tested to match default empty 4th argument. Change-Id: If24e18518543102d115a22a6282e4cca9cf694e2 Reviewed-on: https://gerrit.libreoffice.org/70581 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
* tdf#45904 Move XCellRange Java tests to C++Jens Carl2019-04-032-0/+57
| | | | | | | | | Move XCellRange Java tests to C++ for ScTableRowObj. Change-Id: I2735779cae777c5af4e622bc1b538df2d8bf70df Reviewed-on: https://gerrit.libreoffice.org/70163 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
* tdf#45904 Move TableRow Java tests to C++Jens Carl2019-04-032-0/+44
| | | | | | | | | Move TableRow Java tests to C++ for ScTableRowObj. Change-Id: I72cd8006b8ad932bab56681de9aac66fb40542fe Reviewed-on: https://gerrit.libreoffice.org/70159 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
* tdf#124329 Keep ResizeWithCell value when anchoring to a different cellSamuel Mehrbrodt2019-04-021-0/+7
| | | | | | | Change-Id: I62010b4882268aae135a406eb27634c3335d72cf Reviewed-on: https://gerrit.libreoffice.org/70118 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* Split large test method in twoSamuel Mehrbrodt2019-04-021-1/+7
| | | | | | | Change-Id: If1b915f721a5768b682c63dc9c08b708ba37a705 Reviewed-on: https://gerrit.libreoffice.org/70116 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* tdf#124329 Test setting ResizeWithCell via UNO APISamuel Mehrbrodt2019-04-021-0/+18
| | | | | | | Change-Id: Iab8733e5a5df2b189197df89c3e08cd3463f2ec7 Reviewed-on: https://gerrit.libreoffice.org/70111 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* Improve sc shape testSamuel Mehrbrodt2019-04-021-35/+24
| | | | | | | | | Actually test anchoring the shape to a cell and to a page again Change-Id: I2d625b9a4f04aaf61dd8c1e8d10c639cbb4f0da5 Reviewed-on: https://gerrit.libreoffice.org/70110 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* tdf#45904 Move XFormLayerAccess Java tests to C++Jens Carl2019-03-303-0/+67
| | | | | | | | | Move XFormLayerAccess Java tests to C++ for ScViewPaneObj. Change-Id: I7ed6ff51d435b6f3de85daec99a13583e50a450a Reviewed-on: https://gerrit.libreoffice.org/69942 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
* Move UNO Api helper form to include/Jens Carl2019-03-295-53/+2
| | | | | | | | | | Move UNO Api helper form to include/, so it can be used outside of directory test/. Change-Id: I9392f44df8a93d2b5ee092b0458aeef12f99fc7a Reviewed-on: https://gerrit.libreoffice.org/69936 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
* tdf#45904 Move XNamed Java tests to C++Jens Carl2019-03-291-0/+14
| | | | | | | | | Move XNamed Java tests to C++ for ScSheetLinkObj. Change-Id: I64904ed6bae1b96767f8b0a65b0850a8694b10c2 Reviewed-on: https://gerrit.libreoffice.org/69907 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
* tdf#45904 Move XShapes Java tests to C++Jens Carl2019-03-292-0/+39
| | | | | | | | | Move XShapes Java tests to C++ for ScDrawPageObj. Change-Id: I1b65e8ad685c3d387a5023e8e8e9b9e06627af11 Reviewed-on: https://gerrit.libreoffice.org/69904 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
* Be consistent with namespaces and parameter order for UNO Api helpersJens Carl2019-03-283-17/+30
| | | | | | | | | | | Have this file the same namespaces as the new introduced helpers in include/test/helper/shape.hxx and also change the order of the parameter be the same to avoid confusion. Change-Id: I5614e9a79dff3ee9aca96ff2e50ddfafa83de539 Reviewed-on: https://gerrit.libreoffice.org/69870 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
* tdf#45904 Move XShapeGrouper Java tests to C++Jens Carl2019-03-282-0/+59
| | | | | | | | | Move XShapeGrouper Java tests to C++ for ScDrawPageObj. Change-Id: I4a1ed4f14f759fa4214141f0d552e35ccae28035 Reviewed-on: https://gerrit.libreoffice.org/69873 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
* Helper to create various drawing::XShapeJens Carl2019-03-272-0/+79
| | | | | | | | | | This ports SOfficeFactory::createShape() from file qadevOOo/runner/util/SOfficeFactory. Change-Id: I2c7eb0304ac1d439211d3851b2debdb4843130e3 Reviewed-on: https://gerrit.libreoffice.org/69772 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
* condition always true in XSpreadsheets2::importSheetToCopyNoel Grandin2019-03-271-19/+10
| | | | | | | | | | | | leftover from commit ed45c87896de74048708d51c050ecd42c9f4a0a0 Date: Mon Oct 20 21:08:54 2014 +0200 sc: fix temp file leak in ScTableSheetsObj Change-Id: Ic108fb36cc0caccbe57f2b47f7fcbe80156842dc Reviewed-on: https://gerrit.libreoffice.org/69749 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* Related tdf#124263 Make sure sidebar is wide enough for contentSamuel Mehrbrodt2019-03-251-2/+2
| | | | | | | | | | If panel's requested minimal size is smaller than current sidebar width, enlarge the sidebar to fit the content. Change-Id: I9baa4ef6c01d5563951d4df0d939883fce02e87b Reviewed-on: https://gerrit.libreoffice.org/69561 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* name apitest suites consistently while we still canBjoern Michaelsen2019-03-197-0/+496
| | | | | | | | | | | | | | | | | | | | | | - writer test apitest suites are now called like the UNO implementation they are testing - also mark them final for good measure - move tests to module test and try to match its conventions * BaseIndex * TextDocumentIndex * TextDocumentSettings * TextPrinterSettings * TextSettings * XDocumentIndex - also remove anonymous namespace in header, as that is a bad idea - also remove now obsolete ApiBaseTest - also remove dead code in TextPrinterSettings - remove writer xtextcontent test as it duplicates the impl in module test Change-Id: I71aa5f3755d5c90726f4ff4394117fa2391495d7 Reviewed-on: https://gerrit.libreoffice.org/69374 Tested-by: Jenkins Reviewed-by: Björn Michaelsen <bjoern.michaelsen@libreoffice.org>
* Component testBjoern Michaelsen2019-03-162-0/+72
| | | | | | | Change-Id: I03785b3126671629011d5e62925a5658ab5ec2f7 Reviewed-on: https://gerrit.libreoffice.org/69067 Tested-by: Jenkins Reviewed-by: Björn Michaelsen <bjoern.michaelsen@libreoffice.org>
* tdf#45904 Move XTableColumns Java tests to C++Jens Carl2019-03-152-0/+175
| | | | | | | | | Move XTableColumns Java tests to C++ for ScTableColumnsObj. Change-Id: Iead7ca3d7c07820086f75d86833b7bfc97978751 Reviewed-on: https://gerrit.libreoffice.org/69286 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
* tdf#45904 Move XNameReplace Java tests to C++Jens Carl2019-03-131-10/+18
| | | | | | | | | | | Move XNameReplace Java tests to C++ for ScStyleFamilyObj. Fixes i#23594 by creating a new "com.sun.star.style.CellStyle" rather then using an existing one. Change-Id: Ie42e627020aff475173af5bc014bc28d7a11ec56 Reviewed-on: https://gerrit.libreoffice.org/69140 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
* tdf#45904 Move XNameContainer Java tests to C++Jens Carl2019-03-111-7/+18
| | | | | | | | | Move XNameContainer Java tests to C++ for ScStyleFamilyObj. Change-Id: I8ff465262258ef5277d470369cc05f48bba25ce4 Reviewed-on: https://gerrit.libreoffice.org/69029 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
* tdf#45904 Move XTableCharts Java tests to C++Jens Carl2019-03-102-0/+41
| | | | | | | | | Move XTableCharts Java tests to C++ for ScChartsObj. Change-Id: Ibd08cc60d38d8ca01af9168d862a9f391c48e90a Reviewed-on: https://gerrit.libreoffice.org/68992 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
* Fix typoAndrea Gelmini2019-03-101-1/+1
| | | | | | | Change-Id: I61dd04afe8d753123eeb88e6d8eb0c76c88f5836 Reviewed-on: https://gerrit.libreoffice.org/68985 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
* tdf#45904 Move XRefreshable Java tests to C++Jens Carl2019-03-092-24/+33
| | | | | | | | | | | | | | | Move XRefreshable Java tests to C++ for ScAreaLinkObj. To make this test work, had to provide parameter aSourceArea (in this case file sc/qa/extras/testdocuments/scarealinkobj.ods). All the other depended tests of ScAreaLinkObj had to adjusted to the new test environment. Also fixes i84711, because the XRefreshable test runs independent from the other tests, as mentioned in the bug description. Change-Id: I8847813431e2fdd60ed95be0f7d115bcaeafe500 Reviewed-on: https://gerrit.libreoffice.org/68949 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
* Correct and improve test set up of ScDataPilotItemObjJens Carl2019-03-071-2/+2
| | | | | | | Change-Id: I65fb4a444e7e072004adcc9f9ad7af77a3f9f919 Reviewed-on: https://gerrit.libreoffice.org/68888 Tested-by: Jenkins Reviewed-by: Jens Carl <j.carl43@gmx.de>
* re-land "new loplugin typedefparam""Noel Grandin2019-03-051-1/+1
| | | | | | | | | | This reverts commit c9bb48386bad7d2a40e6958883328145ae439cad, and adds a bunch more fixes. Change-Id: Ib584d302a73125528eba85fa1e722cb6fc41538a Reviewed-on: https://gerrit.libreoffice.org/68680 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* Revert "new loplugin typedefparam"Noel Grandin2019-03-041-1/+1
| | | | | | | This reverts commit 9865440d217d975206a3f91612f0666312bc8fd8. This is not ready to land yet, seems like the latest update of the logic reveals a bunch more places I need to fix before it can land.
* new loplugin typedefparamNoel Grandin2019-03-041-1/+1
| | | | | | | | | | verify that parameters use the exact same typedef-names (if any) in definition and declaration Change-Id: I55d2817f599b0253904dce2d35a1a93967e15a77 Reviewed-on: https://gerrit.libreoffice.org/68439 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>