Commit Graph
314 Commits
Author SHA1 Message Date
Stephan Bergmann 98f9b51d58 Split long-running CppunitTest_sc_opencl_test in two
At least the unrelated
<https://ci.libreoffice.org/job/gerrit_linux_clang_dbgutil/132372/> was killed
after 20 minutes of no stdout/-err activity, with CppunitTest_sc_opencl_test
still running.  From its captured state, it looks like it was indeed still
making progress rather than being stuck:  During
ScOpenCLTest::testLogicalFormulaXor, the main thread was waiting at
ScFormulaCell::InterpretFormulaGroupThreading ->
comphelper::ThreadPool::waitUntilDone, while four
comphelper::ThreadPool::ThreadWorker threads were each at

> #4  0x00007f70652f9234 in __gnu_debug::_Safe_iterator_base::_M_detach() () at /lib64/libstdc++.so.6
> #5  0x00007f7048d3e8e5 in __gnu_debug::_Safe_iterator_base::~_Safe_iterator_base() (this=0x7f703daa9f20) at /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/../../../../include/c++/7/debug/safe_base.h:100
> #6  0x00007f7048d5d709 in __gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator<mdds::mtv::base_element_block* const*, std::__cxx1998::vector<mdds::mtv::base_element_block*, std::allocator<mdds::mtv::base_element_block*> > >, std::__debug::vector<mdds::mtv::base_element_block*, std::allocator<mdds::mtv::base_element_block*> > >::~_Safe_iterator() (this=0x7f703daa9f18) at /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/../../../../include/c++/7/debug/safe_iterator.h:86
> #7  0x00007f7048d5d6cd in mdds::mtv::soa::detail::iterator_updater<mdds::mtv::soa::multi_type_vector<sc::CellStoreTraits>::const_iterator_trait>::grouped_iterator_type::~grouped_iterator_type() (this=0x7f703daa9ec8) at workdir/UnpackedTarball/mdds/include/mdds/multi_type_vector/soa/./iterator.hpp:74
> #8  0x00007f7048d5d69d in mdds::mtv::soa::detail::iterator_updater<mdds::mtv::soa::multi_type_vector<sc::CellStoreTraits>::const_iterator_trait>::~iterator_updater() (this=0x7f703daa9e98) at workdir/UnpackedTarball/mdds/include/mdds/multi_type_vector/soa/./iterator.hpp:55
> #9  0x00007f7048d5d665 in mdds::mtv::soa::detail::const_iterator_base<mdds::mtv::soa::multi_type_vector<sc::CellStoreTraits>::const_iterator_trait, mdds::mtv::soa::detail::iterator_base<mdds::mtv::soa::multi_type_vector<sc::CellStoreTraits>::iterator_trait> >::~const_iterator_base() (this=0x7f703daa9e98) at workdir/UnpackedTarball/mdds/include/mdds/multi_type_vector/soa/./iterator.hpp:309
> #10 0x00007f704900b9bd in ScValueIterator::GetThis(double&, FormulaError&) (this=0x7f703daaa078, rValue=@0x7f703daaa1f8: -18.819375178914722, rErr=@0x7f703daaa1f6: NONE) at sc/source/core/data/dociter.cxx:141
> #11 0x00007f704900c652 in ScValueIterator::GetNext(double&, FormulaError&) (this=0x7f703daaa078, rValue=@0x7f703daaa1f8: -18.819375178914722, rErr=@0x7f703daaa1f6: NONE) at sc/source/core/data/dociter.cxx:297
> #12 0x00007f70496c3619 in ScInterpreter::ScXor() (this=0x48b93a0) at sc/source/core/tool/interpr1.cxx:1525

with three of them apparently waiting in pthread_mutex_lock but one in
pthread_mutex_unlock (and thus presumably making progress).  It looks like with
a debug-mode libstdc++ these worker threads can easily compete for these
listdc++-internal debug-mode mutices.  And execution of --enable-dbgutil
CppunitTest_sc_opencl_test on my Linux laptop under load easily took 35 minutes,
so it looks plausible that that unit test was just too big.

While splitting it in two (arbitrarily taking the first and second half of the
CPPUNIT_TEST list), use the opportunity to drop the redundant "_test" from the
two new target names CppunitTest_sc_opencl-1 and CppunitTest_sc_opencl-2.

Change-Id: I9b8f148db667ff9bbf1aacdcaf150e5cb9b8ae87
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146252
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-01-27 14:28:34 +00:00
Xisco Fauli d8138eaa39 tdf#95306: move UItest to CppUnittest
Change-Id: Ic999c9d10d9a3ae16de0df70b435a5d822035193
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145471
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2023-01-13 15:37:01 +00:00
Xisco Fauli 077931c77e sc: split CppunitTest_sc_sparkline_test into two
rename SparklineTest.cxx to ucalc_sparkline.cxx
for a follow-up refactoring

Change-Id: I2a8aeec5ffbd994c27102461a71cf0c0ec13dfed
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142911
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-11-18 18:51:48 +01:00
Xisco Fauli 5cc9ab736a sc: rename these tests to ucalc_*
All inherit from the same class, just to be consistent.
this is part of a follow-up refactoring

Change-Id: I9f69ae16c9363996a95a684183d6c0e981594405
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142907
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-11-18 18:51:33 +01:00
Xisco Fauli 0eec6d44c6 sc: move CppunitTest_sc_parallelism to check
like the other classes inheriting from ScSimpleBootstrapFixture

Change-Id: Ia067bd506274f8526e6567c3f6dc395dd87c480c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142899
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-11-17 21:59:56 +01:00
Xisco Fauli 9e296065c6 sc: move CppunitTest_sc_sparkline_test to slowcheck
so it's executed in all platforms

Change-Id: I53c04cd9623e0d50b8216a135ede67f72d5d6b58
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142842
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-11-17 19:54:35 +01:00
Xisco Fauli c3ca46945a sc: factor out common code in makefiles
Change-Id: I46cce6cb332fb060a9e8f691d8f70808398b85ed
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142707
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-11-14 16:21:27 +01:00
Xisco Fauli c6660c77f9 CppunitTest_sc_anchor_test: move to slowcheck
so Jenkins executes it in all platforms
also move it out of 'extra' folder so we can change the
inheritance to ScBootstrapFixture in a follow-up commit

Change-Id: I06cb594b7f13ece2eb71c2099b6119861b4674ff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141504
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-10-18 23:28:18 +02:00
Colomban Wendling 0185ddd6d5 Add infrastructure and basic tests including slight UI interaction
This introduces a couple helper base classes for implementing
accessibility tests more easily, and includes a few tests as examples,
including basic document layout check and minimal UI interaction
through menus.

Change-Id: I8961af8be1e7d52dc55fe27c758806d9b4c3c5d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137337
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2022-08-01 17:03:40 +02:00
Xisco Fauli b170210ddf sc: remove CppunitTest_sc_chart_regression_test
it only contains one test and it does the same as
CppunitTest_chart2_xshape, so just move the test there.
I don't know whether ScChartRegressionTest::test was ever
executed but the reference needs to be adapted

Change-Id: I0447054d8692901c72a36be5f582723334d2acba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136737
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-07-02 08:49:50 +02:00
Xisco Fauli a55812aa84 CppunitTest_sc_macros_test: split it into two
The .cxx are already separated, use a different
makefile for vba-macro-test.cxx
This might help to mitigate the CppunitTest_sc_macros_test
failure happening in Jenkins on Windows

Change-Id: I5708de3527041a5fcb33287f75f0e14642a88c4e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135862
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-06-15 11:17:33 +02:00
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