Commit Graph
303 Commits
Author SHA1 Message Date
Tomaž Vajngerl 860299fe04 sc: test Sparkline OOXML Import into Calc Sparkline doc. model
Change-Id: I513571de398be419074d54c5861374effae07709
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131490
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2022-03-15 06:31:13 +01:00
Xisco Fauli a77981ad21 uitest: sc: move external links tests to their own place
Change-Id: Ie02318a502ec9baf8c27c9a353b070ae113672f1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131531
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-03-14 15:26:38 +01:00
Luboš Luňák 0156eba766 make Calc jumbo sheets an explicit build feature
On 32bit platforms tools::Long is 32bit, which is not enough
for pixel coordinates with 1m+ Calc rows+. So do not allow jumbo
sheets for such platforms.

Change-Id: I2ebd56a051470d33fca967918af3e7d2b0172dc7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130713
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-01 10:48:13 +01:00
Stephan Bergmann ae6f414246 Revert "Disable CppunitTset_sc_*_functions_test for linux_aarch64 for now, too"
This reverts commit 6cb20e0b29, now that the test
failures have been identified as caused by -ffp-contract being enabled, and have
been addressed with 19559ebbee "Allow for a
presumably more precise result of BESSELY(80,9)",
04215f0349 "Allow for presumably more precices
results of some more Calc function calls", and
72b2561996 "For now, disable tests giving dubious
results on AArch64".

Change-Id: I78f9ddb04362d4026a272db0b8bbf4717fd75093
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126737
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2021-12-13 15:53:44 +01:00
Jan-Marek Glogowski fb308c193b Fix --disable-scripting for DESKTOP build
Unfortunatly we cannot add --disable-scripting to
sub_conf_defaults, because Java currently has no
equivalent to the PYTHON_FOR_BUILD setting.

Change-Id: I89938a17307a363f5de808200914940503312829
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126186
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2021-12-03 06:46:24 +01:00
Xisco Fauli 0a34078096 sc: split UITest_chart in two
it already has 48 tests

Change-Id: I8ce52b74d29d034531884f32ab965febcd9e266f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124282
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-10-28 11:02:54 +02:00
Xisco Fauli 6e18b96188 sc: split UITest_autofilter in two
it already has 45 tests

Change-Id: If3ec6b77bbb48c4c6042a81e047ae0aca838cfa5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124283
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-10-28 10:35:18 +02:00
Xisco Fauli 521d91bce3 sc: do not use dashes in the file names
underscores are used predominantly

Change-Id: I4a51903a2c7712f463b10a56c7466077544adfee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121408
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-09-01 11:28:43 +02:00
Xisco Fauli 6eedac6b19 uitest: sc: move textToColumns tests to their own folder
Change-Id: I20742a89544859f397c8ae45db0c91f4abe1e940
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118687
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-07-12 12:54:19 +02:00
Xisco Fauli bec391133d uitest: sc: move pasteSpecial tests to their own folder
Change-Id: I19dcb65937bb25ccc74f347788a554450fb291f7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118410
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-07-05 14:00:41 +02:00
Xisco Fauli 6661755747 uitest: sc: move csv dialog tests to their own module
Change-Id: Ib8456cb77b1c147856f378eb6198f69d380e18c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117775
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-06-24 21:51:46 +02:00
Xisco Fauli d09ba873ad sc: split subsequent modules into smaller parts
Change-Id: Iee175a064714fa1c7b40c1c450c2fffb59f4fd7c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116625
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-06-03 11:49:42 +02:00
Xisco Fauli c29f91f3d7 sc_ucalc: move formula tests to their own module
in order to split sc_ucalc monster into smaller
modules
Now, we can change CppunitTest_sc_ucalc.mk to
use the template

- Enable testExternalRefUnresolved on Linux/Mac
- Remove testFormulaHashAndTag. it was disabled in
f4dc8a869a
< the idea behind the test can't work right now >

Change-Id: I864341442ccd321c8ef4f7147db4512bcc7a6b21
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115595
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-05-17 17:48:19 +02:00
Xisco Fauli a78770c193 sc_ucalc: move copypaste tests to their own module
in order to split sc_ucalc monster into smaller
modules

While at it, fix the clang-format issues in
sc/qa/unit/ucalc_copypaste.cxx

Change-Id: Ifd3af351f4b880da29e1f48c4852ac65fcd3276e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115696
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-05-17 13:49:23 +02:00
Xisco Fauli ff2e562cd2 sc_ucalc: move conditional format tests to their own module
in order to split sc_ucalc monster into smaller
modules

While at it, remove testCopyPasteSkipEmptyConditionalFormatting
it was added already disabled in 5915d38e84
<add disabled test for conditional formatting with skip empty cells>
and it fails if it's enabled

Change-Id: I6222849b38ab288b24432dc00698d72f5bcc5c2e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115677
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-05-16 22:01:59 +02:00
Xisco Fauli f2736a462e sc_ucalc: Use a template for makefiles
Change-Id: I2146ded4c8c0eb8ba7814f76f3ec5d9030a67857
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115578
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-05-14 12:45:42 +02:00
Xisco Fauli 08905cea24 sc_ucalc: move pivot table tests to their own module
in order to split sc_ucalc monster into smaller
modules

Change-Id: I5fa1b9b7366c45414d26804a09d1b78aebc83e2d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115568
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-05-14 12:45:20 +02:00
Xisco Fauli 9da5f12be2 sc_ucalc: move shared formula tests to their own module
in order to split sc_ucalc monster into smaller
modules

Change-Id: I399daeb57dd5fba7077fef6584b0a3772df84d84
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115559
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-05-14 12:44:29 +02:00
Xisco Fauli 1f23231c56 sc_ucalc: move sort tests to their own module
in order to split sc_ucalc monster into smaller
modules
Change-Id: Ib041d1fbce51230dcc46320939257771eac0faea

Change-Id: Iae19af01de63346b2bf951ed935fccbd6bfb9d15
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115558
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-05-14 12:44:03 +02:00
Xisco Fauli 9f60094358 uitest: sc: no need to have one module for just one test
Change-Id: I2787a3bca577f8f34a9f37b25ed4bc6631bb446d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110035
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-01-27 22:51:46 +01:00
Xisco Fauli f082057bea move CppunitTest_sc_macros_test from subsequentcheck to slowcheck
this way, Jenkins executes this module on Windows and Mac as well.
Before I submitted this test, I ran
'make clean && make CppunitTest_sc_macros_test' on a Win machine

Change-Id: If84ea0ba5f7376f9cfe62836eb469e4c9e7ea44a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109994
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-01-26 22:23:31 +01:00
Xisco Fauli 9b36407b7a move CppunitTest_sc_jumbosheets_test from subsequentcheck to slowcheck
and sort the list

this way, Jenkins executes this module on Windows and Mac as well.
Before I submitted this test, I ran
'make clean && make CppunitTest_sc_uicalc' on a Win machine

Change-Id: I906255bcf82e19917036aa3e99344f9ecf2a26fe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109190
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-01-13 14:10:53 +01:00
Xisco Fauli 5360a780ed move CppunitTest_sc_uicalc from subsequentcheck to slowcheck
this way, Jenkins executes this module on Windows and Mac as well.
Before I submitted this test, I ran
'make clean && make CppunitTest_sc_uicalc' on a Win machine

Change-Id: I5bb708e3b61f16c3bd53da2222f19f2b73742819
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109106
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-01-12 15:31:32 +01:00
Xisco Fauli 713fcfae06 uitest: move all calc tests to sc/qa/uitest
and remove a few duplicated ones

Change-Id: I409ca78dcd7a67e993f6b3a1493ffa6fefd127b3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104864
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2020-10-27 15:29:59 +01:00
Xisco Fauli 40240877ee tdf#134392: sc_jumbosheets_test: Add unittest
Change-Id: Id1a63d6b7fde3f911625573ffce1bed5d2b322df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102971
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2020-09-21 07:52:00 +02:00
Stephan Bergmann 83aa172697 Disambiguate UITest_sc_options and UITest_sw_options
...that were added with the same name UITest_options in
107af09831 "uitest for bug tdf#117458" and
ec91419438 "add uitest for bug tdf#78133",
respectively

Change-Id: I31a967d2ce14f86d91951a836b694f360802c5a7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102391
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-09-10 22:35:59 +02:00
Stephan Bergmann 1842276ed4 Enable CppunitTest_sc_uicalc also for MACOSX
there appears to be no reason not to

Change-Id: Ic7c0e34e28bc67bd7b342b50f893990057b2e261
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90305
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-03-10 22:57:45 +01:00
Xisco Fauli bfee21b6c8 tdf#122232: move UItest to CppunitTest
Change-Id: I6cb9019fea4b1be5af94dcc8811a4f96fc1b6d37
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90238
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2020-03-10 10:40:20 +01:00
Jan-Marek Glogowski e81414d39b Drop needless junit and python make conditionals
JunitTest and PythonTest modules check for these themself.

Change-Id: Ia453bc99571738b01cc8f161f346cb6c37b2e429
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88832
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2020-02-17 02:45:56 +01:00
Regina Henschel f44140bebb tdf#119191 Implement SdrObjCustomShape::AdjustToMaxRect
and use in ScDrawLayer::RecalcPos and in ScDrawView::FitToCellSize().
Error was, that it was assumed, that SdObjCustomShape::SetSnapRect()
changes the shape so, that it fits into the passed rectangle. That is
true for other type of shapes, but not for custom shapes.

Change-Id: Ib00d52087509f459165000abf43c7f244980a01b
Reviewed-on: https://gerrit.libreoffice.org/84216
Tested-by: Jenkins
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
2019-12-11 23:42:39 +01:00
Jens Carl b7735d9c70 tdf#45904 Move XNamed Java tests to C++
Move XNamed Java tests to C++ for ScStyleObj.

Change-Id: Idaff7307d15ca2665005e866dff36a033aa91354
Reviewed-on: https://gerrit.libreoffice.org/81553
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
2019-10-27 06:49:18 +01:00
Artur Neumann 36088d528a UI test for #tdf121949
Test if calc crashes when copying a noncoherent range to the
clipboard

Change-Id: I64d436ffb01775df9d50eb966ea2a12040482517
Reviewed-on: https://gerrit.libreoffice.org/76348
Tested-by: Jenkins
Reviewed-by: Zdenek Crhonek <zcrhonek@gmail.com>
2019-07-26 11:24:05 +02:00
Artur Neumann 271dcc757d UI tests opening all dialogs in writer and see if it crashes
Open a dialog, close it by the given button e.g. "cancel" or "close".
If the dialog has an enabled "OK" button open the dialog again
and try to close it also using the OK button.
For every dialog a complete new document is opened to ensure test-separation,
otherwise one action could hamper the next action.

For dialogs that already have other tests a "cancel/close" test was added to
the previous test. As far as possible opening new documents was avoided in those
cases. And in some cases a simple check was added to check if the "cancel" button
does not change anything.

Simmilar tests for calc have been renamed and code dublication has been
removed by moving main part of the code to a helper file

Change-Id: I01f197cae8bc6fe0345661fe042b655f16229485
Reviewed-on: https://gerrit.libreoffice.org/75124
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Zdenek Crhonek <zcrhonek@gmail.com>
2019-07-26 08:18:22 +02:00
Artur Neumann 25bf2c5c00 UI tests opening all dialogs in calc and see if it crashes
Open a dialog, close it by the given button e.g. "cancel" or "close".
If the dialog has an enabled "OK" button open the dialog again
and try to close it also using the OK button.
For every dialog a complete new document is opened to ensure test-separation,
otherwise one action could hamper the next action.
E.g. ".uno:Protect" would hamper any edit action.

For dialogs that already have other tests a "cancel/close" test was added to
the previous test. As far as possible opening new documents was avoided in those
cases. And in some cases a simple check was added to check if the "cancel" button
does not change anything.

Change-Id: I727cad43603770245f27baf752a1985f9a754847
Reviewed-on: https://gerrit.libreoffice.org/74333
Tested-by: Jenkins
Reviewed-by: Zdenek Crhonek <zcrhonek@gmail.com>
2019-07-03 07:08:05 +02:00
Zdeněk Crhonek 92e2776fc2 uitest for bug tdf#124829
Change-Id: I5eea7de34a37270e1bdf16ede271d73f9ea05730
Reviewed-on: https://gerrit.libreoffice.org/72376
Tested-by: Jenkins
Reviewed-by: Zdenek Crhonek <zcrhonek@gmail.com>
2019-05-16 07:30:10 +02:00
Jens Carl 4931a1e5e3 tdf#45904 Move XPropertSet Java tests to C++
Move XPropertSet Java tests to C++ for ScCellSearchObj.

Change-Id: I46e55794fe0b205173c3b208ba84c90d70aa2de0
Reviewed-on: https://gerrit.libreoffice.org/71608
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
2019-05-01 09:30:00 +02:00
Jens Carl 2b307927f0 tdf#45904 Move XCellRange Java test to C++
mOve XCellRange Java test to C++ for ScTableColumnObj.

Change-Id: I165e5752fb679be6790c305a99f35da644e17d56
Reviewed-on: https://gerrit.libreoffice.org/70968
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
2019-04-20 21:41:19 +02:00
Jens Carl ee26825316 tdf#45904 Move XPropertySet Java tests to C++
Move XPropertySet Java tests to C++ for ScTableRowObj.

Change-Id: Ib448d6440cd6a285cd55297669bb19bd8aec6b07
Reviewed-on: https://gerrit.libreoffice.org/70156
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
2019-04-02 23:53:32 +02:00
Jens Carl af5f02ec27 Rename ScSubTotalDescriptorBaseObj to ScSubTotalDescriptorBase
Correct class name to mirror the name of the object we are testing
against.

Change-Id: If26dc045f67df7725043f1b0ccd0d3c8ba73f4ed
Reviewed-on: https://gerrit.libreoffice.org/70030
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
2019-04-01 08:14:30 +02:00
Jens Carl ed6a71eafa tdf#45904 Move XIndexAccess Java tests to C++
Move XIndexAccess Java tests to C++ for ScDrawPageObj.

Change-Id: I8b0c80b9213130870ce5445bcf52705df367cb0e
Reviewed-on: https://gerrit.libreoffice.org/69864
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
2019-03-27 23:53:32 +01:00
Serge Krot 87bf5a930a tdf#120161 sc: pdf export unit test
Change-Id: I42579d4d61be43318f7e2b06b3465890dd624a12
Reviewed-on: https://gerrit.libreoffice.org/69035
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2019-03-19 10:53:24 +01:00
Jens Carl ad04121efa tdf#45904 Move XNameAccess Java tests to C++
Move XNameAccess Java tests to C++ for ScAutoFormatsObj.

Change-Id: If0ce836f2d0628fa3e4a19f6a1789b74018e0229
Reviewed-on: https://gerrit.libreoffice.org/69329
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
2019-03-16 17:15:00 +01:00
Jens Carl 3407fef635 tdf#45904 Move XNameAccess Java test to C++
Move XNameAccess Java test to C++ for ScTableColumnsObj.

Change-Id: I3c9acde1b9e390c6a088bde567996728db855c2e
Reviewed-on: https://gerrit.libreoffice.org/69143
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
2019-03-13 06:39:12 +01:00
Jens Carl bb0948797d tdf#45904 Move XNameAccess Java tests to C++
Move XNameAccess Java tests to C++ for ScStyleFamilyObj.

Change-Id: Ib1e0481b4ea6fe63cb073948a444ddcc7f2eaa65
Reviewed-on: https://gerrit.libreoffice.org/69018
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
2019-03-11 02:01:49 +01:00
Jens Carl fda94f9e52 tdf#45904 Move XEnumerationAccess Java test to C++
Move XEnumerationAccess Java test to C++ for ScDataPilotFieldGroupObj.

Change-Id: I2ff5807dcf10c4a72074d528dd3275786e8ed80d
Reviewed-on: https://gerrit.libreoffice.org/68994
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
2019-03-10 17:15:53 +01:00
Jens Carl 12fb6e9e1a tdf#45904 Move XEnumerationAccess Java test to C++
Move XEnumerationAccess Java test to C++ for ScChartsObj.

Change-Id: Ia9afb9fcaa5b81b140f47f309166f09af779ca52
Reviewed-on: https://gerrit.libreoffice.org/68953
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
2019-03-10 00:23:09 +01:00
Jens Carl 71dc14936c Add XServiceInfo tests to ScDataPilotItemsObj
Change-Id: Ie6e6e0edf9815744fd8ba97e0259b409db4d8c75
Reviewed-on: https://gerrit.libreoffice.org/68607
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
2019-03-02 04:33:04 +01:00
Jens Carl f58359f8c5 tdf#45904 Move XNamed Java tests to C++
Move XNamed Java tests to C++ for ScDataPilotFieldGroupItemObj.

Change-Id: I1070f99e2e1655f72c1a6ffaf3f61618b083140e
Reviewed-on: https://gerrit.libreoffice.org/68525
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
2019-03-01 08:23:24 +01:00
Zdeněk Crhonek 3114e187e5 uitest for bug tdf#123508
Change-Id: Iab59789ce57295d204ad475cd5405bcdd1f5b9ef
Reviewed-on: https://gerrit.libreoffice.org/68164
Tested-by: Jenkins
Reviewed-by: Zdenek Crhonek <zcrhonek@gmail.com>
2019-02-22 06:39:28 +01:00
Jens Carl 7ae358f33f tdf#45904 Move XNameAccess Java tests to C++
Move XNameAccess Java tests to C++ for ScDataPilotFieldGroupsObj.

Change-Id: Ifa926bd64ac7fc7cd7df080e400ab36e084f1708
Reviewed-on: https://gerrit.libreoffice.org/67703
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
2019-02-12 02:30:35 +01:00