core.git: sc/Module_sc.mk

2024-01-14 Thread Thorsten Behrens (via logerrit)
 sc/Module_sc.mk |7 ++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit 580b2ecf88f7418374dff2d937c9e18f93d50381
Author: Thorsten Behrens 
AuthorDate: Sun Jan 14 01:32:29 2024 +0100
Commit: Thorsten Behrens 
CommitDate: Sun Jan 14 16:22:41 2024 +0100

Only run solver uitest if either lpsolve or coinbase is in

Change-Id: Ic03a6df33344b92dccc9bc393d718b4011aa1613
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162034
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 0c2178b7fea1..af2450d9d14d 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -270,7 +270,6 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_csv_dialog \
UITest_external_links \
UITest_statistics \
-   UITest_solver \
UITest_goalSeek \
UITest_protect \
UITest_sc_options \
@@ -292,6 +291,12 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_function_wizard \
UITest_manual_tests \
 ))
+
+ifneq ($(or $(ENABLE_LPSOLVE),$(ENABLE_COINMP)),)
+$(eval $(call gb_Module_add_uicheck_targets,sc,\
+   UITest_solver \
+))
+endif
 endif
 
 # vim: set noet sw=4 ts=4:


[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_hide_cols.mk

2023-01-13 Thread Xisco Fauli (via logerrit)
 sc/Module_sc.mk|1 
 sc/UITest_hide_cols.mk |   15 -
 sc/qa/uitest/hide_cols/tdf95306.py |   41 -
 sc/qa/unit/uicalc/uicalc.cxx   |   38 ++
 4 files changed, 38 insertions(+), 57 deletions(-)

New commits:
commit d8138eaa3934c1797422ff28cae31100c02b376c
Author: Xisco Fauli 
AuthorDate: Fri Jan 13 13:54:34 2023 +0100
Commit: Xisco Fauli 
CommitDate: Fri Jan 13 15:37:01 2023 +

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 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index c829ee0ae3ca..98d555316f9c 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -250,7 +250,6 @@ $(eval $(call gb_Module_add_screenshot_targets,sc,\
 $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_conditional_format \
UITest_range_name \
-   UITest_hide_cols \
UITest_autofilter \
UITest_autofilter2 \
UITest_search_replace \
diff --git a/sc/UITest_hide_cols.mk b/sc/UITest_hide_cols.mk
deleted file mode 100644
index b265505cec1a..
--- a/sc/UITest_hide_cols.mk
+++ /dev/null
@@ -1,15 +0,0 @@
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-
-$(eval $(call gb_UITest_UITest,hide_cols))
-
-$(eval $(call gb_UITest_add_modules,hide_cols,$(SRCDIR)/sc/qa/uitest,\
-   hide_cols/ \
-))
-# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/hide_cols/tdf95306.py 
b/sc/qa/uitest/hide_cols/tdf95306.py
deleted file mode 100644
index 222e8ee3093d..
--- a/sc/qa/uitest/hide_cols/tdf95306.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-
-from uitest.framework import UITestCase
-
-from libreoffice.calc.document import get_column
-from libreoffice.uno.propertyvalue import mkPropertyValues
-
-
-def get_column_hidden(doc, index):
-column = get_column(doc, index)
-val = column.getPropertyValue("IsVisible")
-return not val
-
-class HideDisjointColumns(UITestCase):
-
-def test_hide_columns(self):
-with self.ui_test.create_doc_in_start_center("calc") as doc:
-xTopWindow = self.xUITest.getTopFocusWindow()
-
-gridwin = xTopWindow.getChild("grid_window")
-gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "B1"}))
-gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "D1", 
"EXTEND":"true"}))
-
-self.assertFalse(get_column_hidden(doc, 1))
-self.assertFalse(get_column_hidden(doc, 3))
-self.ui_test._xUITest.executeCommand(".uno:HideColumn")
-self.assertTrue(get_column_hidden(doc, 1))
-self.assertTrue(get_column_hidden(doc, 3))
-self.ui_test._xUITest.executeCommand(".uno:Undo")
-self.assertFalse(get_column_hidden(doc, 1))
-self.assertFalse(get_column_hidden(doc, 3))
-
-
-# vim: set shiftwidth=4 softtabstop=4 expandtab:
diff --git a/sc/qa/unit/uicalc/uicalc.cxx b/sc/qa/unit/uicalc/uicalc.cxx
index 30c42f98beaa..b3cb2a6b82eb 100644
--- a/sc/qa/unit/uicalc/uicalc.cxx
+++ b/sc/qa/unit/uicalc/uicalc.cxx
@@ -1304,6 +1304,44 @@ CPPUNIT_TEST_FIXTURE(ScUiCalcTest, testTdf146994)
 CPPUNIT_ASSERT_EQUAL(OUString("Sheet1.D3:Sheet1.D4"), aMarkedAreaString);
 }
 
+CPPUNIT_TEST_FIXTURE(ScUiCalcTest, testTdf95306)
+{
+createScDoc();
+ScDocument* pDoc = getScDoc();
+
+// Use Adding Selection
+dispatchCommand(mxComponent, ".uno:StatusSelectionModeExp", {});
+Scheduler::ProcessEventsToIdle();
+
+goToCell("B1");
+dispatchCommand(mxComponent, ".uno:SelectColumn", {});
+Scheduler::ProcessEventsToIdle();
+
+dispatchCommand(mxComponent, ".uno:GoRight", {});
+dispatchCommand(mxComponent, ".uno:GoRight", {});
+
+dispatchCommand(mxComponent, ".uno:SelectColumn", {});
+Scheduler::ProcessEventsToIdle();
+
+dispatchCommand(mxComponent, ".uno:HideColumn", {});
+Scheduler::ProcessEventsToIdle();
+
+CPPUNIT_ASSERT(!pDoc->ColHidden(0, 0));
+CPPUNIT_ASSERT(pDoc->ColHidden(1, 0));
+CPPUNIT_ASSERT(!pDoc->ColHidden(2, 0));
+CPPUNIT_ASSERT(pDoc->ColHidden(3, 0));
+CPPUNIT_ASSERT(!pDoc->ColHidden(4, 0));
+
+dispatchCommand(mxComponent, ".uno:Undo", {});
+

[Libreoffice-commits] core.git: sc/Module_sc.mk

2022-11-17 Thread Xisco Fauli (via logerrit)
 sc/Module_sc.mk |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0eec6d44c65f895c6fe2172792717418627db05d
Author: Xisco Fauli 
AuthorDate: Thu Nov 17 20:33:38 2022 +0100
Commit: Xisco Fauli 
CommitDate: Thu Nov 17 21:59:56 2022 +0100

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 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index a87a84f4502a..c297527239ab 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -41,6 +41,7 @@ ifneq ($(OS),iOS)
 ifneq ($(filter SCRIPTING,$(BUILD_TYPE)),)
 $(eval $(call gb_Module_add_check_targets,sc,\
Library_scqahelper \
+   CppunitTest_sc_parallelism \
$(if $(and $(filter $(COM),MSC),$(MERGELIBS)),, \
CppunitTest_sc_ucalc) \
CppunitTest_sc_ucalc_condformat \
@@ -202,7 +203,6 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
CppunitTest_sc_namedrangesobj \
CppunitTest_sc_opencl_test \
CppunitTest_sc_outlineobj \
-   CppunitTest_sc_parallelism \
CppunitTest_sc_recentfunctionsobj \
CppunitTest_sc_recordchanges \
CppunitTest_sc_scenariosobj \


[Libreoffice-commits] core.git: sc/Module_sc.mk

2022-11-17 Thread Xisco Fauli (via logerrit)
 sc/Module_sc.mk |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9e296065c6c12ed13b28d0e21445d1fe75b54a3c
Author: Xisco Fauli 
AuthorDate: Thu Nov 17 15:37:07 2022 +0100
Commit: Xisco Fauli 
CommitDate: Thu Nov 17 19:54:35 2022 +0100

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 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 0b8cb0f49d10..a87a84f4502a 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -79,6 +79,7 @@ $(eval $(call gb_Module_add_slowcheck_targets,sc, \
CppunitTest_sc_new_cond_format_api \
CppunitTest_sc_pdf_export \
CppunitTest_sc_pivottable_filters_test \
+   CppunitTest_sc_sparkline_test \
CppunitTest_sc_subsequent_filters_test \
CppunitTest_sc_subsequent_filters_test2 \
CppunitTest_sc_subsequent_export_test \
@@ -209,7 +210,6 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
CppunitTest_sc_sheetlinkobj \
CppunitTest_sc_sheetlinksobj \
CppunitTest_sc_sortdescriptorbaseobj \
-   CppunitTest_sc_sparkline_test \
CppunitTest_sc_spreadsheetsettings \
CppunitTest_sc_spreadsheetsettingsobj \
CppunitTest_sc_styleobj \


[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_external_links.mk

2022-03-14 Thread Xisco Fauli (via logerrit)
 sc/Module_sc.mk |1 +
 sc/UITest_external_links.mk |   20 
 2 files changed, 21 insertions(+)

New commits:
commit a77981ad21aa0793f0af2ac262bd3573e0501235
Author: Xisco Fauli 
AuthorDate: Mon Mar 14 12:07:50 2022 +0100
Commit: Xisco Fauli 
CommitDate: Mon Mar 14 15:26:38 2022 +0100

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 
Reviewed-by: Xisco Fauli 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 5179c5fdb292..1c146060b3a4 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -258,6 +258,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_calc_tests4 \
UITest_calc_tests6 \
UITest_csv_dialog \
+   UITest_external_links \
UITest_statistics \
UITest_solver \
UITest_goalSeek \
diff --git a/sc/UITest_external_links.mk b/sc/UITest_external_links.mk
new file mode 100644
index ..161883227d08
--- /dev/null
+++ b/sc/UITest_external_links.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,external_links))
+
+$(eval $(call gb_UITest_add_modules,external_links,$(SRCDIR)/sc/qa/uitest,\
+   external_links/ \
+))
+
+$(eval $(call gb_UITest_set_defs,external_links, \
+TDOC="$(SRCDIR)/sc/qa/uitest/data" \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/calc_tests3/tdf114995.py 
b/sc/qa/uitest/external_links/tdf114995.py
similarity index 100%
rename from sc/qa/uitest/calc_tests3/tdf114995.py
rename to sc/qa/uitest/external_links/tdf114995.py
diff --git a/sc/qa/uitest/calc_tests3/tdf127484.py 
b/sc/qa/uitest/external_links/tdf127484.py
similarity index 100%
rename from sc/qa/uitest/calc_tests3/tdf127484.py
rename to sc/qa/uitest/external_links/tdf127484.py
diff --git a/sc/qa/uitest/calc_tests3/tdf147767.py 
b/sc/qa/uitest/external_links/tdf147767.py
similarity index 100%
rename from sc/qa/uitest/calc_tests3/tdf147767.py
rename to sc/qa/uitest/external_links/tdf147767.py
diff --git a/sc/qa/uitest/calc_tests3/tdf95217.py 
b/sc/qa/uitest/external_links/tdf95217.py
similarity index 100%
rename from sc/qa/uitest/calc_tests3/tdf95217.py
rename to sc/qa/uitest/external_links/tdf95217.py
diff --git a/sc/qa/uitest/calc_tests3/tdf96499.py 
b/sc/qa/uitest/external_links/tdf96499.py
similarity index 100%
rename from sc/qa/uitest/calc_tests3/tdf96499.py
rename to sc/qa/uitest/external_links/tdf96499.py


[Libreoffice-commits] core.git: sc/Module_sc.mk

2021-12-13 Thread Stephan Bergmann (via logerrit)
 sc/Module_sc.mk |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ae6f41424608b349b45eb3f18ee8c7cff5d6c182
Author: Stephan Bergmann 
AuthorDate: Mon Dec 13 13:31:31 2021 +0100
Commit: Stephan Bergmann 
CommitDate: Mon Dec 13 15:53:44 2021 +0100

Revert "Disable CppunitTset_sc_*_functions_test for linux_aarch64 for now, 
too"

This reverts commit 6cb20e0b298f41fe88984aebfe5454f936a0ae3a, now that the 
test
failures have been identified as caused by -ffp-contract being enabled, and 
have
been addressed with 19559ebbee160d1625d06feec7e6566772dad231 "Allow for a
presumably more precise result of BESSELY(80,9)",
04215f03492f6fce83d6bc64491749bf803c389a "Allow for presumably more precices
results of some more Calc function calls", and
72b25619960cdaa829c8ea10e27d9c0b20a2c26f "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 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index e25367cfc146..c37b37dd2a14 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -89,7 +89,7 @@ $(eval $(call gb_Module_add_slowcheck_targets,sc, \
 # point weirdness (x87, registers, compiler optimization, ... whatever),
 # disable them until someone finds a real cure.
 
-ifneq ($(filter-out linux_aarch64 linux_x86,$(PLATFORMID)),)
+ifneq ($(PLATFORMID),linux_x86)
 $(eval $(call gb_Module_add_slowcheck_targets,sc, \
CppunitTest_sc_functions_test_old \
CppunitTest_sc_database_functions_test \


[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_chart2.mk

2021-10-28 Thread Xisco Fauli (via logerrit)
 sc/Module_sc.mk |1 +
 sc/UITest_chart2.mk |   20 
 2 files changed, 21 insertions(+)

New commits:
commit 0a340780962ff93b519ff5285ccacc9c52cf17ca
Author: Xisco Fauli 
AuthorDate: Wed Oct 27 16:19:30 2021 +0200
Commit: Xisco Fauli 
CommitDate: Thu Oct 28 11:02:54 2021 +0200

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 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 5dc30cf56304..4a5d7055db29 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -265,6 +265,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_calc_tests7 \
UITest_sort \
UITest_chart \
+   UITest_chart2 \
UITest_pageFormat \
UITest_pasteSpecial \
UITest_calc_tests8 \
diff --git a/sc/UITest_chart2.mk b/sc/UITest_chart2.mk
new file mode 100644
index ..1d60c1dd06ce
--- /dev/null
+++ b/sc/UITest_chart2.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,chart2))
+
+$(eval $(call gb_UITest_add_modules,chart2,$(SRCDIR)/sc/qa/uitest,\
+   chart2/ \
+))
+
+$(eval $(call gb_UITest_set_defs,chart2, \
+TDOC="$(SRCDIR)/sc/qa/uitest/data" \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/chart/tdf101894.py b/sc/qa/uitest/chart2/tdf101894.py
similarity index 100%
rename from sc/qa/uitest/chart/tdf101894.py
rename to sc/qa/uitest/chart2/tdf101894.py
diff --git a/sc/qa/uitest/chart/tdf107097.py b/sc/qa/uitest/chart2/tdf107097.py
similarity index 100%
rename from sc/qa/uitest/chart/tdf107097.py
rename to sc/qa/uitest/chart2/tdf107097.py
diff --git a/sc/qa/uitest/chart/tdf120348.py b/sc/qa/uitest/chart2/tdf120348.py
similarity index 100%
rename from sc/qa/uitest/chart/tdf120348.py
rename to sc/qa/uitest/chart2/tdf120348.py
diff --git a/sc/qa/uitest/chart/tdf122398.py b/sc/qa/uitest/chart2/tdf122398.py
similarity index 100%
rename from sc/qa/uitest/chart/tdf122398.py
rename to sc/qa/uitest/chart2/tdf122398.py
diff --git a/sc/qa/uitest/chart/tdf123013.py b/sc/qa/uitest/chart2/tdf123013.py
similarity index 100%
rename from sc/qa/uitest/chart/tdf123013.py
rename to sc/qa/uitest/chart2/tdf123013.py
diff --git a/sc/qa/uitest/chart/tdf123231.py b/sc/qa/uitest/chart2/tdf123231.py
similarity index 100%
rename from sc/qa/uitest/chart/tdf123231.py
rename to sc/qa/uitest/chart2/tdf123231.py
diff --git a/sc/qa/uitest/chart/tdf123520.py b/sc/qa/uitest/chart2/tdf123520.py
similarity index 100%
rename from sc/qa/uitest/chart/tdf123520.py
rename to sc/qa/uitest/chart2/tdf123520.py
diff --git a/sc/qa/uitest/chart/tdf124111.py b/sc/qa/uitest/chart2/tdf124111.py
similarity index 100%
rename from sc/qa/uitest/chart/tdf124111.py
rename to sc/qa/uitest/chart2/tdf124111.py
diff --git a/sc/qa/uitest/chart/tdf124295.py b/sc/qa/uitest/chart2/tdf124295.py
similarity index 100%
rename from sc/qa/uitest/chart/tdf124295.py
rename to sc/qa/uitest/chart2/tdf124295.py
diff --git a/sc/qa/uitest/chart/tdf129587.py b/sc/qa/uitest/chart2/tdf129587.py
similarity index 100%
rename from sc/qa/uitest/chart/tdf129587.py
rename to sc/qa/uitest/chart2/tdf129587.py
diff --git a/sc/qa/uitest/chart/tdf131715.py b/sc/qa/uitest/chart2/tdf131715.py
similarity index 100%
rename from sc/qa/uitest/chart/tdf131715.py
rename to sc/qa/uitest/chart2/tdf131715.py
diff --git a/sc/qa/uitest/chart/tdf133630.py b/sc/qa/uitest/chart2/tdf133630.py
similarity index 100%
rename from sc/qa/uitest/chart/tdf133630.py
rename to sc/qa/uitest/chart2/tdf133630.py
diff --git a/sc/qa/uitest/chart/tdf134059.py b/sc/qa/uitest/chart2/tdf134059.py
similarity index 100%
rename from sc/qa/uitest/chart/tdf134059.py
rename to sc/qa/uitest/chart2/tdf134059.py
diff --git a/sc/qa/uitest/chart/tdf136011.py b/sc/qa/uitest/chart2/tdf136011.py
similarity index 100%
rename from sc/qa/uitest/chart/tdf136011.py
rename to sc/qa/uitest/chart2/tdf136011.py
diff --git a/sc/qa/uitest/chart/tdf142851.py b/sc/qa/uitest/chart2/tdf142851.py
similarity index 100%
rename from sc/qa/uitest/chart/tdf142851.py
rename to sc/qa/uitest/chart2/tdf142851.py


[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_autofilter2.mk

2021-10-28 Thread Xisco Fauli (via logerrit)
 sc/Module_sc.mk  |1 +
 sc/UITest_autofilter2.mk |   20 
 2 files changed, 21 insertions(+)

New commits:
commit 6e18b96188a454bcdd2f2780799c136be75606cd
Author: Xisco Fauli 
AuthorDate: Wed Oct 27 16:57:32 2021 +0200
Commit: Xisco Fauli 
CommitDate: Thu Oct 28 10:35:18 2021 +0200

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 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 17698421accb..5dc30cf56304 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -243,6 +243,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_range_name \
UITest_hide_cols \
UITest_autofilter \
+   UITest_autofilter2 \
UITest_search_replace \
UITest_calc_tests \
UITest_calc_tests2 \
diff --git a/sc/UITest_autofilter2.mk b/sc/UITest_autofilter2.mk
new file mode 100644
index ..387033912e1e
--- /dev/null
+++ b/sc/UITest_autofilter2.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,autofilter2))
+
+$(eval $(call gb_UITest_add_modules,autofilter2,$(SRCDIR)/sc/qa/uitest,\
+   autofilter2/ \
+))
+
+$(eval $(call gb_UITest_set_defs,autofilter2, \
+TDOC="$(SRCDIR)/sc/qa/uitest/data/autofilter" \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/autofilter/tdf101165.py 
b/sc/qa/uitest/autofilter2/tdf101165.py
similarity index 100%
rename from sc/qa/uitest/autofilter/tdf101165.py
rename to sc/qa/uitest/autofilter2/tdf101165.py
diff --git a/sc/qa/uitest/autofilter/tdf117276.py 
b/sc/qa/uitest/autofilter2/tdf117276.py
similarity index 100%
rename from sc/qa/uitest/autofilter/tdf117276.py
rename to sc/qa/uitest/autofilter2/tdf117276.py
diff --git a/sc/qa/uitest/autofilter/tdf117276_autofilter_reset.py 
b/sc/qa/uitest/autofilter2/tdf117276_autofilter_reset.py
similarity index 100%
rename from sc/qa/uitest/autofilter/tdf117276_autofilter_reset.py
rename to sc/qa/uitest/autofilter2/tdf117276_autofilter_reset.py
diff --git a/sc/qa/uitest/autofilter/tdf122260.py 
b/sc/qa/uitest/autofilter2/tdf122260.py
similarity index 100%
rename from sc/qa/uitest/autofilter/tdf122260.py
rename to sc/qa/uitest/autofilter2/tdf122260.py
diff --git a/sc/qa/uitest/autofilter/tdf126306.py 
b/sc/qa/uitest/autofilter2/tdf126306.py
similarity index 100%
rename from sc/qa/uitest/autofilter/tdf126306.py
rename to sc/qa/uitest/autofilter2/tdf126306.py
diff --git a/sc/qa/uitest/autofilter/tdf130070.py 
b/sc/qa/uitest/autofilter2/tdf130070.py
similarity index 100%
rename from sc/qa/uitest/autofilter/tdf130070.py
rename to sc/qa/uitest/autofilter2/tdf130070.py
diff --git a/sc/qa/uitest/autofilter/tdf140754.py 
b/sc/qa/uitest/autofilter2/tdf140754.py
similarity index 100%
rename from sc/qa/uitest/autofilter/tdf140754.py
rename to sc/qa/uitest/autofilter2/tdf140754.py
diff --git a/sc/qa/uitest/autofilter/tdf141559.py 
b/sc/qa/uitest/autofilter2/tdf141559.py
similarity index 100%
rename from sc/qa/uitest/autofilter/tdf141559.py
rename to sc/qa/uitest/autofilter2/tdf141559.py
diff --git a/sc/qa/uitest/autofilter/tdf141946.py 
b/sc/qa/uitest/autofilter2/tdf141946.py
similarity index 100%
rename from sc/qa/uitest/autofilter/tdf141946.py
rename to sc/qa/uitest/autofilter2/tdf141946.py
diff --git a/sc/qa/uitest/autofilter/tdf46062.py 
b/sc/qa/uitest/autofilter2/tdf46062.py
similarity index 100%
rename from sc/qa/uitest/autofilter/tdf46062.py
rename to sc/qa/uitest/autofilter2/tdf46062.py
diff --git a/sc/qa/uitest/autofilter/tdf46184.py 
b/sc/qa/uitest/autofilter2/tdf46184.py
similarity index 100%
rename from sc/qa/uitest/autofilter/tdf46184.py
rename to sc/qa/uitest/autofilter2/tdf46184.py
diff --git a/sc/qa/uitest/autofilter/tdf48025.py 
b/sc/qa/uitest/autofilter2/tdf48025.py
similarity index 100%
rename from sc/qa/uitest/autofilter/tdf48025.py
rename to sc/qa/uitest/autofilter2/tdf48025.py
diff --git a/sc/qa/uitest/autofilter/tdf68113.py 
b/sc/qa/uitest/autofilter2/tdf68113.py
similarity index 100%
rename from sc/qa/uitest/autofilter/tdf68113.py
rename to sc/qa/uitest/autofilter2/tdf68113.py
diff --git a/sc/qa/uitest/autofilter/tdf92767.py 
b/sc/qa/uitest/autofilter2/tdf92767.py
similarity index 100%
rename from sc/qa/uitest/autofilter/tdf92767.py
rename to sc/qa/uitest/autofilter2/tdf92767.py
diff --git a/sc/qa/uitest/autofilter/tdf97340.py 
b/sc/qa/uitest/autofilter2/tdf97340.py
similarity index 100%
rename from sc/qa/uitest/autofilter/tdf97340.py
rename to sc/qa/uitest/autofilter2/tdf97340.py


[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_textToColumns.mk

2021-07-12 Thread Xisco Fauli (via logerrit)
 sc/Module_sc.mk|1 +
 sc/UITest_textToColumns.mk |   20 
 sc/qa/uitest/textToColumns/tdf69981.py |7 ++-
 3 files changed, 27 insertions(+), 1 deletion(-)

New commits:
commit 6eedac6b19f3dcad46f2ca2b9ccb02b490b60ce9
Author: Xisco Fauli 
AuthorDate: Fri Jul 9 15:20:00 2021 +0200
Commit: Xisco Fauli 
CommitDate: Mon Jul 12 12:54:19 2021 +0200

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 
Reviewed-by: Xisco Fauli 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 99600f5d9838..34bbe8f9b3d2 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -258,6 +258,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_validity \
UITest_key_f4 \
UITest_textCase \
+   UITest_textToColumns \
UITest_signatureLine \
UITest_inputLine \
UITest_calc_tests7 \
diff --git a/sc/UITest_textToColumns.mk b/sc/UITest_textToColumns.mk
new file mode 100644
index ..6a448b16c987
--- /dev/null
+++ b/sc/UITest_textToColumns.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,textToColumns))
+
+$(eval $(call gb_UITest_add_modules,textToColumns,$(SRCDIR)/sc/qa/uitest,\
+   textToColumns/ \
+))
+
+$(eval $(call gb_UITest_set_defs,textToColumns, \
+TDOC="$(SRCDIR)/sc/qa/uitest/data" \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/calc_tests3/tdf143008.py 
b/sc/qa/uitest/textToColumns/tdf143008.py
similarity index 100%
rename from sc/qa/uitest/calc_tests3/tdf143008.py
rename to sc/qa/uitest/textToColumns/tdf143008.py
diff --git a/sc/qa/uitest/calc_tests2/tdf51700.py 
b/sc/qa/uitest/textToColumns/tdf51700.py
similarity index 100%
rename from sc/qa/uitest/calc_tests2/tdf51700.py
rename to sc/qa/uitest/textToColumns/tdf51700.py
diff --git a/sc/qa/uitest/calc_tests3/tdf69981.py 
b/sc/qa/uitest/textToColumns/tdf69981.py
similarity index 93%
rename from sc/qa/uitest/calc_tests3/tdf69981.py
rename to sc/qa/uitest/textToColumns/tdf69981.py
index c6dd94a42285..dc053546ac69 100644
--- a/sc/qa/uitest/calc_tests3/tdf69981.py
+++ b/sc/qa/uitest/textToColumns/tdf69981.py
@@ -35,7 +35,12 @@ class tdf69981(UITestCase):
 xtab = xDialog.getChild("tab")
 xcomma = xDialog.getChild("comma")
 xtab.executeAction("CLICK", tuple())
-xcomma.executeAction("CLICK", tuple())
+
+if get_state_as_dict(xcomma)['Selected'] == 'false':
+xcomma.executeAction("CLICK", tuple())
+
+self.assertEqual('false', get_state_as_dict(xtab)['Selected'])
+self.assertEqual('true', get_state_as_dict(xcomma)['Selected'])
 #Click Ok
 #overwrite warning come up
 #press Ok.
diff --git a/sc/qa/uitest/calc_tests3/tdf73006.py 
b/sc/qa/uitest/textToColumns/tdf73006.py
similarity index 100%
rename from sc/qa/uitest/calc_tests3/tdf73006.py
rename to sc/qa/uitest/textToColumns/tdf73006.py
diff --git a/sc/qa/uitest/calc_tests3/tdf82398.py 
b/sc/qa/uitest/textToColumns/tdf82398.py
similarity index 100%
rename from sc/qa/uitest/calc_tests3/tdf82398.py
rename to sc/qa/uitest/textToColumns/tdf82398.py
diff --git a/sc/qa/uitest/calc_tests4/tdf85403.py 
b/sc/qa/uitest/textToColumns/tdf85403.py
similarity index 100%
rename from sc/qa/uitest/calc_tests4/tdf85403.py
rename to sc/qa/uitest/textToColumns/tdf85403.py
diff --git a/sc/qa/uitest/calc_tests4/tdf85979.py 
b/sc/qa/uitest/textToColumns/tdf85979.py
similarity index 100%
rename from sc/qa/uitest/calc_tests4/tdf85979.py
rename to sc/qa/uitest/textToColumns/tdf85979.py
diff --git a/sc/qa/uitest/calc_tests4/tdf89907.py 
b/sc/qa/uitest/textToColumns/tdf89907.py
similarity index 100%
rename from sc/qa/uitest/calc_tests4/tdf89907.py
rename to sc/qa/uitest/textToColumns/tdf89907.py
diff --git a/sc/qa/uitest/calc_tests4/tdf92423.py 
b/sc/qa/uitest/textToColumns/tdf92423.py
similarity index 100%
rename from sc/qa/uitest/calc_tests4/tdf92423.py
rename to sc/qa/uitest/textToColumns/tdf92423.py
diff --git a/sc/qa/uitest/calc_tests4/textToColumns.py 
b/sc/qa/uitest/textToColumns/textToColumns.py
similarity index 100%
rename from sc/qa/uitest/calc_tests4/textToColumns.py
rename to sc/qa/uitest/textToColumns/textToColumns.py
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_pasteSpecial.mk

2021-07-05 Thread Xisco Fauli (via logerrit)
 sc/Module_sc.mk   |1 +
 sc/UITest_pasteSpecial.mk |   20 
 2 files changed, 21 insertions(+)

New commits:
commit bec391133da18e1c7c0e7f3d562bceeb6f93b497
Author: Xisco Fauli 
AuthorDate: Mon Jul 5 13:07:54 2021 +0200
Commit: Xisco Fauli 
CommitDate: Mon Jul 5 14:00:41 2021 +0200

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 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 23f87316b79c..99600f5d9838 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -264,6 +264,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_sort \
UITest_chart \
UITest_pageFormat \
+   UITest_pasteSpecial \
UITest_calc_tests8 \
UITest_calc_dialogs \
UITest_calc_tests9 \
diff --git a/sc/UITest_pasteSpecial.mk b/sc/UITest_pasteSpecial.mk
new file mode 100644
index ..6da1278138c7
--- /dev/null
+++ b/sc/UITest_pasteSpecial.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,pasteSpecial))
+
+$(eval $(call gb_UITest_add_modules,pasteSpecial,$(SRCDIR)/sc/qa/uitest,\
+   pasteSpecial/ \
+))
+
+$(eval $(call gb_UITest_set_defs,pasteSpecial, \
+TDOC="$(SRCDIR)/sc/qa/uitest/data" \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/calc_tests8/tdf114710.py 
b/sc/qa/uitest/pasteSpecial/tdf114710.py
similarity index 100%
rename from sc/qa/uitest/calc_tests8/tdf114710.py
rename to sc/qa/uitest/pasteSpecial/tdf114710.py
diff --git a/sc/qa/uitest/calc_tests8/tdf118308.py 
b/sc/qa/uitest/pasteSpecial/tdf118308.py
similarity index 100%
rename from sc/qa/uitest/calc_tests8/tdf118308.py
rename to sc/qa/uitest/pasteSpecial/tdf118308.py
diff --git a/sc/qa/uitest/calc_tests3/tdf142932.py 
b/sc/qa/uitest/pasteSpecial/tdf142932.py
similarity index 100%
rename from sc/qa/uitest/calc_tests3/tdf142932.py
rename to sc/qa/uitest/pasteSpecial/tdf142932.py
diff --git a/sc/qa/uitest/calc_tests3/tdf57274.py 
b/sc/qa/uitest/pasteSpecial/tdf57274.py
similarity index 100%
rename from sc/qa/uitest/calc_tests3/tdf57274.py
rename to sc/qa/uitest/pasteSpecial/tdf57274.py
diff --git a/sc/qa/uitest/calc_tests3/tdf62267.py 
b/sc/qa/uitest/pasteSpecial/tdf62267.py
similarity index 100%
rename from sc/qa/uitest/calc_tests3/tdf62267.py
rename to sc/qa/uitest/pasteSpecial/tdf62267.py
diff --git a/sc/qa/uitest/calc_tests3/tdf65856.py 
b/sc/qa/uitest/pasteSpecial/tdf65856.py
similarity index 100%
rename from sc/qa/uitest/calc_tests3/tdf65856.py
rename to sc/qa/uitest/pasteSpecial/tdf65856.py
diff --git a/sc/qa/uitest/calc_tests3/tdf69450.py 
b/sc/qa/uitest/pasteSpecial/tdf69450.py
similarity index 100%
rename from sc/qa/uitest/calc_tests3/tdf69450.py
rename to sc/qa/uitest/pasteSpecial/tdf69450.py
diff --git a/sc/qa/uitest/manual_tests/more_calc.py 
b/sc/qa/uitest/pasteSpecial/tdf84810.py
similarity index 100%
rename from sc/qa/uitest/manual_tests/more_calc.py
rename to sc/qa/uitest/pasteSpecial/tdf84810.py
diff --git a/sc/qa/uitest/calc_tests4/tdf86253.py 
b/sc/qa/uitest/pasteSpecial/tdf86253.py
similarity index 100%
rename from sc/qa/uitest/calc_tests4/tdf86253.py
rename to sc/qa/uitest/pasteSpecial/tdf86253.py
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_csv_dialog.mk

2021-06-24 Thread Xisco Fauli (via logerrit)
 sc/Module_sc.mk |1 +
 sc/UITest_csv_dialog.mk |   20 
 2 files changed, 21 insertions(+)

New commits:
commit 66617557476e7275fdb5ef3a7f46df89027cda4e
Author: Xisco Fauli 
AuthorDate: Thu Jun 24 12:29:20 2021 +0200
Commit: Xisco Fauli 
CommitDate: Thu Jun 24 21:51:46 2021 +0200

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 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index a75da398136f..23f87316b79c 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -249,6 +249,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_calc_tests3 \
UITest_calc_tests4 \
UITest_calc_tests6 \
+   UITest_csv_dialog \
UITest_statistics \
UITest_solver \
UITest_goalSeek \
diff --git a/sc/UITest_csv_dialog.mk b/sc/UITest_csv_dialog.mk
new file mode 100644
index ..9e1ac6ab9d08
--- /dev/null
+++ b/sc/UITest_csv_dialog.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,csv_dialog))
+
+$(eval $(call gb_UITest_add_modules,csv_dialog,$(SRCDIR)/sc/qa/uitest,\
+   csv_dialog/ \
+))
+
+$(eval $(call gb_UITest_set_defs,csv_dialog, \
+TDOC="$(SRCDIR)/sc/qa/uitest/data" \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/calc_tests9/tdf142395.py 
b/sc/qa/uitest/csv_dialog/tdf142395.py
similarity index 100%
rename from sc/qa/uitest/calc_tests9/tdf142395.py
rename to sc/qa/uitest/csv_dialog/tdf142395.py
diff --git a/sc/qa/uitest/calc_tests9/tdf57841.py 
b/sc/qa/uitest/csv_dialog/tdf57841.py
similarity index 100%
rename from sc/qa/uitest/calc_tests9/tdf57841.py
rename to sc/qa/uitest/csv_dialog/tdf57841.py
diff --git a/sc/qa/uitest/calc_tests9/tdf60468.py 
b/sc/qa/uitest/csv_dialog/tdf60468.py
similarity index 100%
rename from sc/qa/uitest/calc_tests9/tdf60468.py
rename to sc/qa/uitest/csv_dialog/tdf60468.py
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_hideShowSheet.mk

2021-01-27 Thread Xisco Fauli (via logerrit)
 sc/Module_sc.mk|1 -
 sc/UITest_hideShowSheet.mk |   20 
 2 files changed, 21 deletions(-)

New commits:
commit 9f60094358b4118840e908eca7cb134311a1224b
Author: Xisco Fauli 
AuthorDate: Wed Jan 27 21:34:31 2021 +0100
Commit: Xisco Fauli 
CommitDate: Wed Jan 27 22:51:46 2021 +0100

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 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 5e57a906a2b7..ea4fc94b8e9e 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -249,7 +249,6 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_textCase \
UITest_signatureLine \
UITest_inputLine \
-   UITest_hideShowSheet \
UITest_calc_tests7 \
UITest_sort \
UITest_chart \
diff --git a/sc/UITest_hideShowSheet.mk b/sc/UITest_hideShowSheet.mk
deleted file mode 100644
index 390c86066f3d..
--- a/sc/UITest_hideShowSheet.mk
+++ /dev/null
@@ -1,20 +0,0 @@
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-
-$(eval $(call gb_UITest_UITest,hideShowSheet))
-
-$(eval $(call gb_UITest_add_modules,hideShowSheet,$(SRCDIR)/sc/qa/uitest,\
-   hideShowSheet/ \
-))
-
-$(eval $(call gb_UITest_set_defs,hideShowSheet, \
-TDOC="$(SRCDIR)/sc/qa/uitest/data" \
-))
-
-# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/hideShowSheet/hideShowSheet.py 
b/sc/qa/uitest/calc_tests6/hideShowSheet.py
similarity index 100%
rename from sc/qa/uitest/hideShowSheet/hideShowSheet.py
rename to sc/qa/uitest/calc_tests6/hideShowSheet.py
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk

2021-01-26 Thread Xisco Fauli (via logerrit)
 sc/Module_sc.mk |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f082057bea3ef75b837bac7d201fa878389c2972
Author: Xisco Fauli 
AuthorDate: Tue Jan 26 19:58:52 2021 +0100
Commit: Xisco Fauli 
CommitDate: Tue Jan 26 22:23:31 2021 +0100

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 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 58bd568e0e00..5e57a906a2b7 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -64,6 +64,7 @@ $(eval $(call gb_Module_add_slowcheck_targets,sc, \
CppunitTest_sc_copypaste \
CppunitTest_sc_html_export_test \
CppunitTest_sc_jumbosheets_test \
+   CppunitTest_sc_macros_test \
CppunitTest_sc_new_cond_format_api \
CppunitTest_sc_pdf_export \
CppunitTest_sc_pivottable_filters_test \
@@ -178,7 +179,6 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
CppunitTest_sc_importdescriptorbaseobj \
CppunitTest_sc_labelrangeobj \
CppunitTest_sc_labelrangesobj \
-   CppunitTest_sc_macros_test \
CppunitTest_sc_modelobj \
CppunitTest_sc_namedrangeobj \
CppunitTest_sc_namedrangesobj \
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk

2021-01-12 Thread Xisco Fauli (via logerrit)
 sc/Module_sc.mk |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5360a780ed67b7625bbc0216218a16f58983c234
Author: Xisco Fauli 
AuthorDate: Mon Jan 11 16:09:11 2021 +0100
Commit: Xisco Fauli 
CommitDate: Tue Jan 12 15:31:32 2021 +0100

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: I5bb708e3b61f16c3bd53daf19f2b73742819
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109106
Tested-by: Jenkins
Reviewed-by: Xisco Fauli 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index bb378e8f378a..5d5b033711f9 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -68,6 +68,7 @@ $(eval $(call gb_Module_add_slowcheck_targets,sc, \
CppunitTest_sc_html_export_test \
CppunitTest_sc_copypaste \
CppunitTest_sc_pivottable_filters_test \
+   CppunitTest_sc_uicalc \
 ))
 
 # Various function tests fail in 32-bit linux_x86 build due to dreaded floating
@@ -208,7 +209,6 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
CppunitTest_sc_tablesheetsobj \
CppunitTest_sc_tablevalidationobj \
CppunitTest_sc_tabviewobj \
-   CppunitTest_sc_uicalc \
CppunitTest_sc_uniquecellformatsenumeration \
CppunitTest_sc_uniquecellformatsobj \
CppunitTest_sc_viewpaneobj \
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_function_wizard.mk sc/UITest_manual_tests.mk uitest/calc_tests uitest/manual_tests uitest/Module_uitest.mk uitest/test_main.py uitest/UI

2020-10-27 Thread Xisco Fauli (via logerrit)
 sc/Module_sc.mk |2 +
 sc/UITest_function_wizard.mk|   11 ++---
 sc/UITest_manual_tests.mk   |4 +--
 sc/qa/uitest/calc_tests6/gridwin.py |   17 --
 uitest/Module_uitest.mk |2 -
 uitest/calc_tests/about_test.py |   25 
 uitest/calc_tests/gridwindow.py |   43 
 uitest/calc_tests/input_window.py   |   33 ---
 uitest/test_main.py |1 
 9 files changed, 12 insertions(+), 126 deletions(-)

New commits:
commit 713fcfae066badfaa29f347a52738e9d4f1c841b
Author: Xisco Fauli 
AuthorDate: Tue Oct 27 11:18:24 2020 +0100
Commit: Xisco Fauli 
CommitDate: Tue Oct 27 15:29:59 2020 +0100

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 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 4c8ba1e49eb2..bb378e8f378a 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -257,6 +257,8 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_calc_tests8 \
UITest_calc_dialogs \
UITest_calc_tests9 \
+   UITest_function_wizard \
+   UITest_manual_tests \
 ))
 endif
 
diff --git a/uitest/UITest_calc_demo.mk b/sc/UITest_function_wizard.mk
similarity index 59%
rename from uitest/UITest_calc_demo.mk
rename to sc/UITest_function_wizard.mk
index 9869300a0675..220fa6d36e21 100644
--- a/uitest/UITest_calc_demo.mk
+++ b/sc/UITest_function_wizard.mk
@@ -7,9 +7,14 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 #
 
-$(eval $(call gb_UITest_UITest,calc_demo))
+$(eval $(call gb_UITest_UITest,function_wizard))
 
-$(eval $(call gb_UITest_add_modules,calc_demo,$(SRCDIR)/uitest,\
-   calc_tests/ \
+$(eval $(call gb_UITest_add_modules,function_wizard,$(SRCDIR)/sc/qa/uitest,\
+   function_wizard/ \
 ))
+
+$(eval $(call gb_UITest_set_defs,function_wizard, \
+TDOC="$(SRCDIR)/sc/qa/uitest/data" \
+))
+
 # vim: set noet sw=4 ts=4:
diff --git a/uitest/UITest_manual_tests.mk b/sc/UITest_manual_tests.mk
similarity index 80%
rename from uitest/UITest_manual_tests.mk
rename to sc/UITest_manual_tests.mk
index 187ab8317b5f..94089544d98e 100644
--- a/uitest/UITest_manual_tests.mk
+++ b/sc/UITest_manual_tests.mk
@@ -9,12 +9,12 @@
 
 $(eval $(call gb_UITest_UITest,manual_tests))
 
-$(eval $(call gb_UITest_add_modules,manual_tests,$(SRCDIR)/uitest,\
+$(eval $(call gb_UITest_add_modules,manual_tests,$(SRCDIR)/sc/qa/uitest,\
manual_tests/ \
 ))
 
 $(eval $(call gb_UITest_set_defs,manual_tests, \
-TDOC="$(SRCDIR)/uitest/manual_tests/data" \
+TDOC="$(SRCDIR)/sc/qa/uitest/data" \
 ))
 
 # vim: set noet sw=4 ts=4:
diff --git a/uitest/calc_tests/gridwin.py b/sc/qa/uitest/calc_tests6/gridwin.py
similarity index 67%
rename from uitest/calc_tests/gridwin.py
rename to sc/qa/uitest/calc_tests6/gridwin.py
index 7c9c87de0b03..9a0f241989ec 100644
--- a/uitest/calc_tests/gridwin.py
+++ b/sc/qa/uitest/calc_tests6/gridwin.py
@@ -12,23 +12,6 @@ from uitest.framework import UITestCase
 
 class GridWinTest(UITestCase):
 
-def test_select_object(self):
-
-self.ui_test.create_doc_in_start_center("calc")
-xCalcDoc = self.xUITest.getTopFocusWindow()
-xGridWindow = xCalcDoc.getChild("grid_window")
-
-selectProps = mkPropertyValues({"CELL": "B10"})
-xGridWindow.executeAction("SELECT", selectProps)
-
-xGridWindow.executeAction("SELECT", mkPropertyValues({"OBJECT": 
"Object 1"}))
-
-xGridWindow.executeAction("ACTIVATE", tuple())
-
-xGridWindow.executeAction("DESELECT", tuple())
-
-self.ui_test.close_doc()
-
 def test_select_sheet(self):
 
 self.ui_test.create_doc_in_start_center("calc")
diff --git a/uitest/calc_tests/tdf117987.py 
b/sc/qa/uitest/calc_tests7/tdf117987.py
similarity index 100%
rename from uitest/calc_tests/tdf117987.py
rename to sc/qa/uitest/calc_tests7/tdf117987.py
diff --git a/uitest/calc_tests/create_chart.py 
b/sc/qa/uitest/chart/create_chart.py
similarity index 100%
rename from uitest/calc_tests/create_chart.py
rename to sc/qa/uitest/chart/create_chart.py
diff --git a/uitest/calc_tests/edit_chart.py b/sc/qa/uitest/chart/edit_chart.py
similarity index 100%
rename from uitest/calc_tests/edit_chart.py
rename to sc/qa/uitest/chart/edit_chart.py
diff --git a/uitest/manual_tests/data/cell_recalc.ods 
b/sc/qa/uitest/data/cell_recalc.ods
similarity index 100%
rename from uitest/manual_tests/data/cell_recalc.ods
rename to sc/qa/uitest/data/cell_recalc.ods
diff --git a/uitest/calc_tests/function_wizard.py 
b/sc/qa/uitest/function_wizard/function_wizard.py
similarity index 100%
rename from uitest/calc_tests/function_wizard.py
rename to sc/qa/uitest/function_wizard/function_wizard.py
diff --git 

[Libreoffice-commits] core.git: sc/Module_sc.mk sc/UITest_options.mk sc/UITest_sc_options.mk sw/Module_sw.mk sw/UITest_options.mk sw/UITest_sw_options.mk

2020-09-10 Thread Stephan Bergmann (via logerrit)
 sc/Module_sc.mk |2 +-
 sc/UITest_sc_options.mk |6 +++---
 sw/Module_sw.mk |2 +-
 sw/UITest_sw_options.mk |6 +++---
 4 files changed, 8 insertions(+), 8 deletions(-)

New commits:
commit 83aa172697c11a9550c27a28f8e62b523ec7086d
Author: Stephan Bergmann 
AuthorDate: Thu Sep 10 16:26:52 2020 +0200
Commit: Stephan Bergmann 
CommitDate: Thu Sep 10 22:35:59 2020 +0200

Disambiguate UITest_sc_options and UITest_sw_options

...that were added with the same name UITest_options in
107af098311beafaadb343c5a3634389f56006a0 "uitest for bug tdf#117458" and
ec914194382654aa4b0ad9973acc0eed15a4ab43 "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 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 8a6f8411faff..730023c476a6 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -242,7 +242,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_solver \
UITest_goalSeek \
UITest_protect \
-   UITest_options \
+   UITest_sc_options \
UITest_validity \
UITest_key_f4 \
UITest_textCase \
diff --git a/sc/UITest_options.mk b/sc/UITest_sc_options.mk
similarity index 72%
rename from sc/UITest_options.mk
rename to sc/UITest_sc_options.mk
index 2869fb4a510e..c5a7656bf79f 100644
--- a/sc/UITest_options.mk
+++ b/sc/UITest_sc_options.mk
@@ -7,13 +7,13 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 #
 
-$(eval $(call gb_UITest_UITest,options))
+$(eval $(call gb_UITest_UITest,sc_options))
 
-$(eval $(call gb_UITest_add_modules,options,$(SRCDIR)/sc/qa/uitest,\
+$(eval $(call gb_UITest_add_modules,sc_options,$(SRCDIR)/sc/qa/uitest,\
options/ \
 ))
 
-$(eval $(call gb_UITest_set_defs,options, \
+$(eval $(call gb_UITest_set_defs,sc_options, \
 TDOC="$(SRCDIR)/sc/qa/uitest/calc_tests/data" \
 ))
 
diff --git a/sw/Module_sw.mk b/sw/Module_sw.mk
index 7087d76806e9..ec6e73fd2779 100644
--- a/sw/Module_sw.mk
+++ b/sw/Module_sw.mk
@@ -170,7 +170,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sw,\
UITest_sw_findSimilarity \
UITest_chapterNumbering \
UITest_librelogo \
-   UITest_options \
+   UITest_sw_options \
UITest_sw_ui_fmtui \
UITest_classification \
UITest_writer_macro_tests \
diff --git a/sw/UITest_options.mk b/sw/UITest_sw_options.mk
similarity index 66%
rename from sw/UITest_options.mk
rename to sw/UITest_sw_options.mk
index 1168becf1901..8567c058490f 100644
--- a/sw/UITest_options.mk
+++ b/sw/UITest_sw_options.mk
@@ -5,12 +5,12 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 #
 
-$(eval $(call  gb_UITest_UITest,options))
+$(eval $(call  gb_UITest_UITest,sw_options))
 
-$(eval $(call gb_UITest_add_modules,options,$(SRCDIR)/sw/qa/uitest,\
+$(eval $(call gb_UITest_add_modules,sw_options,$(SRCDIR)/sw/qa/uitest,\
options/ \
 ))
 
-$(eval $(call gb_UITest_set_defs,options, \
+$(eval $(call gb_UITest_set_defs,sw_options, \
 TDOC="$(SRCDIR)/sw/qa/uitest/writer_tests/data" \
 ))
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk

2020-03-10 Thread Stephan Bergmann (via logerrit)
 sc/Module_sc.mk |4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 1842276ed4785ff5198bdbc4ce6fe752315c8657
Author: Stephan Bergmann 
AuthorDate: Tue Mar 10 21:23:48 2020 +0100
Commit: Stephan Bergmann 
CommitDate: Tue Mar 10 22:57:45 2020 +0100

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 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 8438b3455cba..8a6f8411faff 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -207,12 +207,10 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
CppunitTest_sc_tablesheetsobj \
CppunitTest_sc_tablevalidationobj \
CppunitTest_sc_tabviewobj \
+   CppunitTest_sc_uicalc \
CppunitTest_sc_uniquecellformatsenumeration \
CppunitTest_sc_uniquecellformatsobj \
CppunitTest_sc_viewpaneobj \
-$(if $(filter-out MACOSX,$(OS)), \
-CppunitTest_sc_uicalc \
-) \
 ))
 
 $(eval $(call gb_Module_add_perfcheck_targets,sc,\
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_calc_tests9.mk

2019-07-26 Thread Artur Neumann (via logerrit)
 sc/Module_sc.mk   |1 +
 sc/UITest_calc_tests9.mk  |   20 
 sc/qa/uitest/calc_tests9/tdf121949.py |   30 ++
 3 files changed, 51 insertions(+)

New commits:
commit 36088d528a3df82b3fcdf9a8685e53ba2f1cbd16
Author: Artur Neumann 
AuthorDate: Fri Jul 26 12:59:48 2019 +0545
Commit: Zdenek Crhonek 
CommitDate: Fri Jul 26 11:24:05 2019 +0200

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 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 50fc8c3d7b8c..1b2ca6bfc399 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -254,6 +254,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_pageFormat \
UITest_calc_tests8 \
UITest_calc_dialogs \
+   UITest_calc_tests9 \
 ))
 endif
 
diff --git a/sc/UITest_calc_tests9.mk b/sc/UITest_calc_tests9.mk
new file mode 100644
index ..9935977d66c0
--- /dev/null
+++ b/sc/UITest_calc_tests9.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,calc_tests9))
+
+$(eval $(call gb_UITest_add_modules,calc_tests9,$(SRCDIR)/sc/qa/uitest,\
+   calc_tests9/ \
+))
+
+$(eval $(call gb_UITest_set_defs,calc_tests9, \
+TDOC="$(SRCDIR)/sc/qa/uitest/calc_tests/data" \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/calc_tests9/tdf121949.py 
b/sc/qa/uitest/calc_tests9/tdf121949.py
new file mode 100644
index ..92dd66866510
--- /dev/null
+++ b/sc/qa/uitest/calc_tests9/tdf121949.py
@@ -0,0 +1,30 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+from uitest.framework import UITestCase
+from libreoffice.uno.propertyvalue import mkPropertyValues
+
+class tdf121949 (UITestCase):
+
+def test_tdf121949_copy_block_with_single_cell_not_included(self):
+self.ui_test.create_doc_in_start_center("calc")
+xCalcDoc = self.xUITest.getTopFocusWindow()
+gridwin = xCalcDoc.getChild("grid_window")
+
+# mark a range with a single cell left our and copy to clipboard
+gridwin.executeAction("SELECT", mkPropertyValues({"RANGE": "A1:A3"}))
+gridwin.executeAction("SELECT", mkPropertyValues({"RANGE": "B1:B1", 
"EXTEND":"1"}))
+gridwin.executeAction("SELECT", mkPropertyValues({"RANGE": "B3:B3", 
"EXTEND":"1"}))
+gridwin.executeAction("SELECT", mkPropertyValues({"RANGE": "C1:C3", 
"EXTEND":"1"}))
+self.ui_test.execute_dialog_through_command(".uno:Copy")
+xDialog = self.xUITest.getTopFocusWindow()
+xOKBtn = xDialog.getChild("ok")
+self.ui_test.close_dialog_through_button(xOKBtn)
+
+self.ui_test.close_doc()
+
+# vim: set shiftwidth=4 softtabstop=4 expandtab:
+
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_calc_dialogs.mk sc/UITest_dialogs.mk sw/Module_sw.mk sw/qa sw/UITest_writer_dialogs.mk uitest/uitest uitest/writer_tests

2019-07-26 Thread Artur Neumann (via logerrit)
 sc/Module_sc.mk   |2 
 sc/UITest_calc_dialogs.mk |8 -
 sc/qa/uitest/calc_dialogs/openDialogs.py  |   26 
 sw/Module_sw.mk   |1 
 sw/UITest_writer_dialogs.mk   |   20 +++
 sw/qa/uitest/writer_dialogs/openDialogs.py|  137 ++
 sw/qa/uitest/writer_tests3/insertFootEndnote.py   |6 
 sw/qa/uitest/writer_tests3/insertSignatureLine.py |   14 ++
 sw/qa/uitest/writer_tests5/columns.py |2 
 sw/qa/uitest/writer_tests5/titlePage.py   |7 +
 uitest/uitest/uihelper/testDialog.py  |   39 ++
 uitest/writer_tests/goToPage.py   |8 +
 uitest/writer_tests/insertBreakDialog.py  |   13 ++
 uitest/writer_tests/insertTableDialog.py  |9 +
 uitest/writer_tests/pageDialog.py |   10 +
 15 files changed, 272 insertions(+), 30 deletions(-)

New commits:
commit 271dcc757d536718795f8c24a686a75424e90f23
Author: Artur Neumann 
AuthorDate: Fri Jul 5 15:36:30 2019 +0545
Commit: Zdenek Crhonek 
CommitDate: Fri Jul 26 08:18:22 2019 +0200

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 
Reviewed-by: Zdenek Crhonek 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 3b4cf0aa687f..50fc8c3d7b8c 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -253,7 +253,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_chart \
UITest_pageFormat \
UITest_calc_tests8 \
-   UITest_dialogs \
+   UITest_calc_dialogs \
 ))
 endif
 
diff --git a/sc/UITest_dialogs.mk b/sc/UITest_calc_dialogs.mk
similarity index 68%
rename from sc/UITest_dialogs.mk
rename to sc/UITest_calc_dialogs.mk
index 9498a6cb9488..42ed785b6000 100644
--- a/sc/UITest_dialogs.mk
+++ b/sc/UITest_calc_dialogs.mk
@@ -7,13 +7,13 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 #
 
-$(eval $(call gb_UITest_UITest,dialogs))
+$(eval $(call gb_UITest_UITest,calc_dialogs))
 
-$(eval $(call gb_UITest_add_modules,dialogs,$(SRCDIR)/sc/qa/uitest,\
-   dialogs/ \
+$(eval $(call gb_UITest_add_modules,calc_dialogs,$(SRCDIR)/sc/qa/uitest,\
+   calc_dialogs/ \
 ))
 
-$(eval $(call gb_UITest_set_defs,dialogs, \
+$(eval $(call gb_UITest_set_defs,calc_dialogs, \
 TDOC="$(SRCDIR)/sc/qa/uitest/calc_tests/data" \
 ))
 
diff --git a/sc/qa/uitest/dialogs/openDialogs.py 
b/sc/qa/uitest/calc_dialogs/openDialogs.py
similarity index 90%
rename from sc/qa/uitest/dialogs/openDialogs.py
rename to sc/qa/uitest/calc_dialogs/openDialogs.py
index 341a9e1f9998..94a7ca916c14 100644
--- a/sc/qa/uitest/dialogs/openDialogs.py
+++ b/sc/qa/uitest/calc_dialogs/openDialogs.py
@@ -7,7 +7,7 @@
 
 from uitest.framework import UITestCase
 import unittest
-from uitest.uihelper.common import get_state_as_dict
+from uitest.uihelper.testDialog import testDialog
 
 dialogs = [
 {"command": ".uno:OpenRemote", "closeButton": "cancel"},
@@ -165,29 +165,7 @@ def load_tests(loader, tests, pattern):
 # the test only checks if calc crashes by opening the dialog, see e.g. 
tdf#120227, tdf#125985, tdf#125982
 class openDialogs(UITestCase):
 def check(self, dialog):
-calc_doc = self.ui_test.create_doc_in_start_center("calc")
-self.ui_test.execute_dialog_through_command(dialog['command'])
-xDialog = self.xUITest.getTopFocusWindow()
-xCloseBtn = xDialog.getChild(dialog['closeButton'])
-if 'skipTestOK' in dialog and dialog['skipTestOK'] == True:
-xOKBtn = None
-else:
-try:
-xOKBtn = xDialog.getChild("ok")
-if (get_state_as_dict(xOKBtn)["Enabled"] != "true"):
-xOKBtn = None
-except:
-xOKBtn = None
-
-self.ui_test.close_dialog_through_button(xCloseBtn)
-if (xOKBtn != None):
-print("check also OK button")
-self.ui_test.execute_dialog_through_command(dialog['command'])
-xDialog = 

[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_calc_tests8.mk

2019-05-15 Thread Zdeněk Crhonek (via logerrit)
 sc/Module_sc.mk|1 
 sc/UITest_calc_tests8.mk   |   20 ++
 sc/qa/uitest/calc_tests/data/tdf124829.ods |binary
 sc/qa/uitest/calc_tests8/tdf124829.py  |   41 +
 4 files changed, 62 insertions(+)

New commits:
commit 92e2776fc24ea5a13239f7f753e7d50e0c901295
Author: Zdeněk Crhonek 
AuthorDate: Wed May 15 20:09:39 2019 +0200
Commit: Zdenek Crhonek 
CommitDate: Thu May 16 07:30:10 2019 +0200

uitest for bug tdf#124829

Change-Id: I5eea7de34a37270e1bdf16ede271d73f9ea05730
Reviewed-on: https://gerrit.libreoffice.org/72376
Tested-by: Jenkins
Reviewed-by: Zdenek Crhonek 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 0b424cd0a381..7d4928f41599 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -252,6 +252,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_sort \
UITest_chart \
UITest_pageFormat \
+   UITest_calc_tests8 \
 ))
 endif
 
diff --git a/sc/UITest_calc_tests8.mk b/sc/UITest_calc_tests8.mk
new file mode 100644
index ..b1c8dcbfcbdb
--- /dev/null
+++ b/sc/UITest_calc_tests8.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,calc_tests8))
+
+$(eval $(call gb_UITest_add_modules,calc_tests8,$(SRCDIR)/sc/qa/uitest,\
+   calc_tests8/ \
+))
+
+$(eval $(call gb_UITest_set_defs,calc_tests8, \
+TDOC="$(SRCDIR)/sc/qa/uitest/calc_tests/data" \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/calc_tests/data/tdf124829.ods 
b/sc/qa/uitest/calc_tests/data/tdf124829.ods
new file mode 100644
index ..280d349cf73a
Binary files /dev/null and b/sc/qa/uitest/calc_tests/data/tdf124829.ods differ
diff --git a/sc/qa/uitest/calc_tests8/tdf124829.py 
b/sc/qa/uitest/calc_tests8/tdf124829.py
new file mode 100644
index ..b2aa6d3647e5
--- /dev/null
+++ b/sc/qa/uitest/calc_tests8/tdf124829.py
@@ -0,0 +1,41 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+from uitest.framework import UITestCase
+from uitest.uihelper.common import get_state_as_dict
+from uitest.uihelper.common import select_pos
+from uitest.uihelper.calc import enter_text_to_cell
+from libreoffice.calc.document import get_sheet_from_doc
+from libreoffice.calc.conditional_format import 
get_conditional_format_from_sheet
+from uitest.debug import sleep
+from libreoffice.calc.document import get_cell_by_position
+from libreoffice.uno.propertyvalue import mkPropertyValues
+import org.libreoffice.unotest
+import pathlib
+
+def get_url_for_data_file(file_name):
+return 
pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
+
+#Bug 124829 - CRASH: cutting and undoing a sheet with external links
+
+class tdf124829(UITestCase):
+def test_tdf124829_Crash_cutting_undo_sheet_external_links(self):
+#numberingformatpage.ui
+calc_doc = 
self.ui_test.load_file(get_url_for_data_file("tdf124829.ods"))
+xCalcDoc = self.xUITest.getTopFocusWindow()
+gridwin = xCalcDoc.getChild("grid_window")
+document = self.ui_test.get_component()
+
+self.xUITest.executeCommand(".uno:SelectAll")
+self.xUITest.executeCommand(".uno:Cut")
+for i in range(40):
+self.xUITest.executeCommand(".uno:Undo")
+
+#verify; no crashes
+self.assertEqual(get_cell_by_position(document, 5, 0, 0).getString(), 
"First Name")
+
+self.ui_test.close_doc()
+# vim: set shiftwidth=4 softtabstop=4 expandtab:
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_pageFormat.mk

2019-02-21 Thread Libreoffice Gerrit user
 sc/Module_sc.mk|1 
 sc/UITest_pageFormat.mk|   20 +
 sc/qa/uitest/calc_tests/data/tdf123508.ods |binary
 sc/qa/uitest/pageFormat/tdf123508.py   |   64 +
 4 files changed, 85 insertions(+)

New commits:
commit 3114e187e5abd34207f220b6d9f42b63b4fe0bd8
Author: Zdeněk Crhonek 
AuthorDate: Thu Feb 21 16:34:51 2019 +0100
Commit: Zdenek Crhonek 
CommitDate: Fri Feb 22 06:39:28 2019 +0100

uitest for bug tdf#123508

Change-Id: Iab59789ce57295d204ad475cd5405bcdd1f5b9ef
Reviewed-on: https://gerrit.libreoffice.org/68164
Tested-by: Jenkins
Reviewed-by: Zdenek Crhonek 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 15455b6fe7da..8104af4cd6c1 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -239,6 +239,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_calc_tests7 \
UITest_sort \
UITest_chart \
+   UITest_pageFormat \
 ))
 endif
 
diff --git a/sc/UITest_pageFormat.mk b/sc/UITest_pageFormat.mk
new file mode 100644
index ..1cb0e0f9174f
--- /dev/null
+++ b/sc/UITest_pageFormat.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,pageFormat))
+
+$(eval $(call gb_UITest_add_modules,pageFormat,$(SRCDIR)/sc/qa/uitest,\
+   pageFormat/ \
+))
+
+$(eval $(call gb_UITest_set_defs,pageFormat, \
+TDOC="$(SRCDIR)/sc/qa/uitest/calc_tests/data" \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/calc_tests/data/tdf123508.ods 
b/sc/qa/uitest/calc_tests/data/tdf123508.ods
new file mode 100644
index ..a91951b08c97
Binary files /dev/null and b/sc/qa/uitest/calc_tests/data/tdf123508.ods differ
diff --git a/sc/qa/uitest/pageFormat/tdf123508.py 
b/sc/qa/uitest/pageFormat/tdf123508.py
new file mode 100644
index ..c99ec01eaa2a
--- /dev/null
+++ b/sc/qa/uitest/pageFormat/tdf123508.py
@@ -0,0 +1,64 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+from uitest.framework import UITestCase
+from uitest.uihelper.common import get_state_as_dict
+from uitest.uihelper.common import select_pos
+from uitest.uihelper.calc import enter_text_to_cell
+from libreoffice.calc.document import get_cell_by_position
+from libreoffice.uno.propertyvalue import mkPropertyValues
+from uitest.uihelper.common import get_state_as_dict, type_text
+import org.libreoffice.unotest
+import pathlib
+
+def get_url_for_data_file(file_name):
+return 
pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
+
+#Bug 123508 - "Fit print range(s) to width/height" value falls back to default 
when window closes
+
+class tdf123508(UITestCase):
+   def test_tdf123508_format_page_scale(self):
+calc_doc = self.ui_test.load_file(get_url_for_data_file("tdf123508.ods"))
+xCalcDoc = self.xUITest.getTopFocusWindow()
+gridwin = xCalcDoc.getChild("grid_window")
+document = self.ui_test.get_component()
+#open "Format > Page - Sheet > Scale
+self.ui_test.execute_dialog_through_command(".uno:PageFormatDialog")
+xDialog = self.xUITest.getTopFocusWindow()
+xTabs = xDialog.getChild("tabcontrol")
+select_pos(xTabs, "6")  #tab Scale
+scalingMode = xDialog.getChild("comboLB_SCALEMODE")
+spinEDSCALEPAGEWIDTH = xDialog.getChild("spinED_SCALEPAGEWIDTH")
+spinEDSCALEPAGEHEIGHT = xDialog.getChild("spinED_SCALEPAGEHEIGHT")
+#select "Fit print range(s) to width/height"  from the scale mode 
drop-down list
+props = {"TEXT": "Fit print range(s) to width/height"}
+actionProps = mkPropertyValues(props)
+scalingMode.executeAction("SELECT", actionProps)
+#define a value for the page, e.g.: width   2; height  2
+spinEDSCALEPAGEWIDTH.executeAction("UP", tuple())
+spinEDSCALEPAGEHEIGHT.executeAction("UP", tuple())
+
+xOKBtn = xDialog.getChild("ok")
+self.ui_test.close_dialog_through_button(xOKBtn)
+
+#verify
+self.ui_test.execute_dialog_through_command(".uno:PageFormatDialog")
+xDialog = self.xUITest.getTopFocusWindow()
+xTabs = xDialog.getChild("tabcontrol")
+select_pos(xTabs, "6")  #tab Scale
+scalingMode = xDialog.getChild("comboLB_SCALEMODE")
+spinEDSCALEPAGEWIDTH = xDialog.getChild("spinED_SCALEPAGEWIDTH")
+spinEDSCALEPAGEHEIGHT = xDialog.getChild("spinED_SCALEPAGEHEIGHT")
+
+self.assertEqual(get_state_as_dict(scalingMode)["SelectEntryText"], "Fit 
print range(s) to width/height")
+

[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_chart.mk

2019-01-03 Thread Libreoffice Gerrit user
 sc/Module_sc.mk   |1 
 sc/UITest_chart.mk|   20 +++
 sc/qa/uitest/calc_tests/data/tdf99069.ods |binary
 sc/qa/uitest/chart/tdf99069.py|   78 ++
 4 files changed, 99 insertions(+)

New commits:
commit dd2972d4c323afddc1eca90c88fe6240f40685dd
Author: Zdeněk Crhonek 
AuthorDate: Thu Jan 3 16:23:13 2019 +0100
Commit: Zdenek Crhonek 
CommitDate: Thu Jan 3 18:32:52 2019 +0100

uitest for bug tdf#99069

Change-Id: Ic117937629b465227c564158b7c24270997cce78
Reviewed-on: https://gerrit.libreoffice.org/65839
Tested-by: Jenkins
Reviewed-by: Zdenek Crhonek 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index a80e9419b513..84ab0d759596 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -232,6 +232,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_hideShowSheet \
UITest_calc_tests7 \
UITest_sort \
+   UITest_chart \
 ))
 endif
 
diff --git a/sc/UITest_chart.mk b/sc/UITest_chart.mk
new file mode 100644
index ..3e380391924b
--- /dev/null
+++ b/sc/UITest_chart.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,chart))
+
+$(eval $(call gb_UITest_add_modules,chart,$(SRCDIR)/sc/qa/uitest,\
+   chart/ \
+))
+
+$(eval $(call gb_UITest_set_defs,chart, \
+TDOC="$(SRCDIR)/sc/qa/uitest/calc_tests/data" \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/calc_tests/data/tdf99069.ods 
b/sc/qa/uitest/calc_tests/data/tdf99069.ods
new file mode 100644
index ..9c4fbda4a488
Binary files /dev/null and b/sc/qa/uitest/calc_tests/data/tdf99069.ods differ
diff --git a/sc/qa/uitest/chart/tdf99069.py b/sc/qa/uitest/chart/tdf99069.py
new file mode 100644
index ..e3530c8c1920
--- /dev/null
+++ b/sc/qa/uitest/chart/tdf99069.py
@@ -0,0 +1,78 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+from uitest.framework import UITestCase
+from uitest.uihelper.common import get_state_as_dict
+from uitest.uihelper.common import select_pos
+from uitest.uihelper.calc import enter_text_to_cell
+from libreoffice.calc.document import get_cell_by_position
+from libreoffice.uno.propertyvalue import mkPropertyValues
+from uitest.uihelper.common import get_state_as_dict, type_text
+from uitest.debug import sleep
+import org.libreoffice.unotest
+import pathlib
+
+def get_url_for_data_file(file_name):
+return 
pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
+
+
+#Bug 99069 - assertion "SolarMutex not locked" from  Data Ranges dialog
+
+class tdf99069(UITestCase):
+   def test_tdf99069_chart_cancel_data_ranges_dialog(self):
+calc_doc = self.ui_test.load_file(get_url_for_data_file("tdf99069.ods"))
+xCalcDoc = self.xUITest.getTopFocusWindow()
+gridwin = xCalcDoc.getChild("grid_window")
+document = self.ui_test.get_component()
+#(1) Download and open example.ods attached to tdf#97266  with cell B1 
active.
+#(2) In tool bar, click the chart icon.  Program presents Chart Wizard.
+self.ui_test.execute_dialog_through_command(".uno:InsertObjectChart")
+xDialog = self.xUITest.getTopFocusWindow()
+#(3) In Chart Wizard, click .  The program closes the wizard;
+# the chart shows a border with handles on each side and at each corner.
+xFinishBtn = xDialog.getChild("finish")
+self.ui_test.close_dialog_through_button(xFinishBtn)
+for _ in range(0,5):
+#(4) Click outside the chart, for example in cell C23.  The borders
+#disappear from the chart and the program restores the menubar to
+#the window.  (Yes, this step is necessary to the crash.)
+gridwin.executeAction("DESELECT", mkPropertyValues({"OBJECT": ""}))
+gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "C23"}))
+#(5) Double-click on the chart.  The program shows a border around the
+# chart.  (It may be necessary to do this a second time before the
+# pop-up menu will offer "Data Ranges...".
+gridwin.executeAction("SELECT", mkPropertyValues({"OBJECT": "Object 
1"}))
+gridwin.executeAction("ACTIVATE", tuple())
+xChartMainTop = self.xUITest.getTopFocusWindow()
+xChartMain = xChartMainTop.getChild("chart_window")
+
+#(6) Right-click on the chart; from the pop-up menu select "Data
+# Ranges...".  The program presents dialog "Data Ranges", tab "Data 
Range".
+   

[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_sort.mk

2018-12-31 Thread Libreoffice Gerrit user
 sc/Module_sc.mk   |1 
 sc/UITest_sort.mk |   20 
 sc/qa/uitest/calc_tests/data/tdf49531.ods |binary
 sc/qa/uitest/sort/tdf49531.py |   67 ++
 4 files changed, 88 insertions(+)

New commits:
commit b22d08827c0d42890cf1e45d084dc3e08bc48aa9
Author: Zdeněk Crhonek 
AuthorDate: Mon Dec 31 15:37:03 2018 +0100
Commit: Zdenek Crhonek 
CommitDate: Mon Dec 31 16:35:34 2018 +0100

uitest for bug tdf#49531 tdf#49520

Change-Id: Ief075273f6a1331ca5290e0e21386e4e6e16f54e
Reviewed-on: https://gerrit.libreoffice.org/65773
Tested-by: Jenkins
Reviewed-by: Zdenek Crhonek 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 97a5e17bca3b..a80e9419b513 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -231,6 +231,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_inputLine \
UITest_hideShowSheet \
UITest_calc_tests7 \
+   UITest_sort \
 ))
 endif
 
diff --git a/sc/UITest_sort.mk b/sc/UITest_sort.mk
new file mode 100644
index ..c3514771572f
--- /dev/null
+++ b/sc/UITest_sort.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,sort))
+
+$(eval $(call gb_UITest_add_modules,sort,$(SRCDIR)/sc/qa/uitest,\
+   sort/ \
+))
+
+$(eval $(call gb_UITest_set_defs,sort, \
+TDOC="$(SRCDIR)/sc/qa/uitest/calc_tests/data" \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/calc_tests/data/tdf49531.ods 
b/sc/qa/uitest/calc_tests/data/tdf49531.ods
new file mode 100644
index ..26fe76d3cb90
Binary files /dev/null and b/sc/qa/uitest/calc_tests/data/tdf49531.ods differ
diff --git a/sc/qa/uitest/sort/tdf49531.py b/sc/qa/uitest/sort/tdf49531.py
new file mode 100644
index ..d88633c4ed60
--- /dev/null
+++ b/sc/qa/uitest/sort/tdf49531.py
@@ -0,0 +1,67 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+from uitest.framework import UITestCase
+from uitest.uihelper.common import get_state_as_dict
+from uitest.uihelper.common import select_pos
+from uitest.uihelper.calc import enter_text_to_cell
+from libreoffice.calc.document import get_cell_by_position
+from libreoffice.uno.propertyvalue import mkPropertyValues
+import org.libreoffice.unotest
+import pathlib
+
+#Bug 49531 - EDITING: Sort rows for will sort columns
+#Bug 49520 - EDITING: CRASH when undo sort with chart
+def get_url_for_data_file(file_name):
+return 
pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
+
+class tdf49531(UITestCase):
+def test_td49531_sort_undo_crash(self):
+calc_doc = 
self.ui_test.load_file(get_url_for_data_file("tdf49531.ods"))
+xCalcDoc = self.xUITest.getTopFocusWindow()
+gridwin = xCalcDoc.getChild("grid_window")
+document = self.ui_test.get_component()
+#select A3:C147
+gridwin.executeAction("SELECT", mkPropertyValues({"RANGE": "A3:C147"}))
+
+#Menu 'Data -> Sort -> Top to bottom - all otheroptions unchecked
+#Column B - Ascending' 
+self.ui_test.execute_dialog_through_command(".uno:DataSort")
+xDialog = self.xUITest.getTopFocusWindow()
+xTabs = xDialog.getChild("tabcontrol")
+select_pos(xTabs, "1")
+xNatural = xDialog.getChild("naturalsort")
+xtopdown = xDialog.getChild("topdown")
+xHeader = xDialog.getChild("header")
+if (get_state_as_dict(xNatural)["Selected"]) == "true":
+xNatural.executeAction("CLICK", tuple())
+if (get_state_as_dict(xHeader)["Selected"]) == "true":
+xHeader.executeAction("CLICK", tuple())
+xtopdown.executeAction("CLICK", tuple())
+select_pos(xTabs, "0")
+xSortKey1 = xDialog.getChild("sortlb")
+xAsc = xDialog.getChild("up")
+props = {"TEXT": "Column B"}
+actionProps = mkPropertyValues(props)
+xSortKey1.executeAction("SELECT", actionProps)
+xAsc.executeAction("CLICK", tuple())
+xOk = xDialog.getChild("ok")
+self.ui_test.close_dialog_through_button(xOk)
+#Verify
+self.assertEqual(get_cell_by_position(document, 0, 0, 0).getString(), 
"x")
+self.assertEqual(get_cell_by_position(document, 0, 0, 1).getString(), 
"0")
+self.assertEqual(get_cell_by_position(document, 0, 2, 2).getValue(), 
111)
+self.assertEqual(get_cell_by_position(document, 0, 2, 3).getValue(), 
48)
+# 

[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_calc_tests7.mk

2018-12-10 Thread Libreoffice Gerrit user
 sc/Module_sc.mk   |1 
 sc/UITest_calc_tests7.mk  |   20 +
 sc/qa/uitest/calc_tests/data/tdf91425.ods |binary
 sc/qa/uitest/calc_tests7/tdf91425.py  |   43 ++
 4 files changed, 64 insertions(+)

New commits:
commit 489775e72fbfb1636eafd431cf40e50705ae80ec
Author: Zdeněk Crhonek 
AuthorDate: Mon Dec 10 16:38:52 2018 +0100
Commit: Zdenek Crhonek 
CommitDate: Mon Dec 10 19:56:01 2018 +0100

uitest for bug tdf#91425

Change-Id: I95057eb6a8db1bd141bfa53ff955cd72c2b20cd4
Reviewed-on: https://gerrit.libreoffice.org/64883
Tested-by: Jenkins
Reviewed-by: Zdenek Crhonek 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 46f3ff9ad25f..a4fa70eb4abd 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -228,6 +228,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_signatureLine \
UITest_inputLine \
UITest_hideShowSheet \
+   UITest_calc_tests7 \
 ))
 endif
 
diff --git a/sc/UITest_calc_tests7.mk b/sc/UITest_calc_tests7.mk
new file mode 100644
index ..65ff569a40f9
--- /dev/null
+++ b/sc/UITest_calc_tests7.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,calc_tests7))
+
+$(eval $(call gb_UITest_add_modules,calc_tests7,$(SRCDIR)/sc/qa/uitest,\
+   calc_tests7/ \
+))
+
+$(eval $(call gb_UITest_set_defs,calc_tests7, \
+TDOC="$(SRCDIR)/sc/qa/uitest/calc_tests/data" \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/calc_tests/data/tdf91425.ods 
b/sc/qa/uitest/calc_tests/data/tdf91425.ods
new file mode 100644
index ..5a72f162d29b
Binary files /dev/null and b/sc/qa/uitest/calc_tests/data/tdf91425.ods differ
diff --git a/sc/qa/uitest/calc_tests7/tdf91425.py 
b/sc/qa/uitest/calc_tests7/tdf91425.py
new file mode 100644
index ..cacd96726646
--- /dev/null
+++ b/sc/qa/uitest/calc_tests7/tdf91425.py
@@ -0,0 +1,43 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+from uitest.framework import UITestCase
+from libreoffice.uno.propertyvalue import mkPropertyValues
+from uitest.uihelper.common import get_state_as_dict, type_text
+from libreoffice.calc.document import get_cell_by_position
+import time
+from uitest.debug import sleep
+import org.libreoffice.unotest
+import pathlib
+
+
+#Bug 91425 - CRASH - Calc Insert Columns Left
+
+def get_url_for_data_file(file_name):
+return 
pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
+
+class tdf91425(UITestCase):
+   def test_tdf91425_insert_columns_left(self):
+calc_doc = 
self.ui_test.load_file(get_url_for_data_file("tdf91425.ods"))
+xCalcDoc = self.xUITest.getTopFocusWindow()
+gridwin = xCalcDoc.getChild("grid_window")
+document = self.ui_test.get_component()
+#1) Open test file provided in report
+#2) Move mouse pointer over Column A header, the right mouse button 
click
+gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "A1"}))
+#3) Insert columns left
+self.xUITest.executeCommand(".uno:InsertColumnsBefore")
+#verify
+self.assertEqual(get_cell_by_position(document, 0, 3, 0).getString(), 
"C")
+#undo
+self.xUITest.executeCommand(".uno:Undo")
+self.assertEqual(get_cell_by_position(document, 0, 2, 0).getString(), 
"C")
+#redo
+self.xUITest.executeCommand(".uno:Redo")
+self.assertEqual(get_cell_by_position(document, 0, 3, 0).getString(), 
"C")
+
+self.ui_test.close_doc()
+# vim: set shiftwidth=4 softtabstop=4 expandtab:
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_hideShowSheet.mk

2018-11-15 Thread Libreoffice Gerrit user
 sc/Module_sc.mk |1 
 sc/UITest_hideShowSheet.mk  |   20 ++
 sc/qa/uitest/hideShowSheet/hideShowSheet.py |   56 
 3 files changed, 77 insertions(+)

New commits:
commit f830d83b3c47e89f06c573d0c0eaf2a89e782c23
Author: Zdeněk Crhonek 
AuthorDate: Wed Nov 14 20:44:58 2018 +0100
Commit: Zdenek Crhonek 
CommitDate: Fri Nov 16 08:22:16 2018 +0100

uitest Calc Show sheet dialog

Change-Id: I27e97e6b0664f20d93cbf6588403d7db85ef7ecf
Reviewed-on: https://gerrit.libreoffice.org/63384
Tested-by: Jenkins
Reviewed-by: Zdenek Crhonek 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 9a3edafeb975..141234c6750a 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -205,6 +205,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_textCase \
UITest_signatureLine \
UITest_inputLine \
+   UITest_hideShowSheet \
 ))
 endif
 
diff --git a/sc/UITest_hideShowSheet.mk b/sc/UITest_hideShowSheet.mk
new file mode 100644
index ..ebd4af538086
--- /dev/null
+++ b/sc/UITest_hideShowSheet.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,hideShowSheet))
+
+$(eval $(call gb_UITest_add_modules,hideShowSheet,$(SRCDIR)/sc/qa/uitest,\
+   hideShowSheet/ \
+))
+
+$(eval $(call gb_UITest_set_defs,hideShowSheet, \
+TDOC="$(SRCDIR)/sc/qa/uitest/calc_tests/data" \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/hideShowSheet/hideShowSheet.py 
b/sc/qa/uitest/hideShowSheet/hideShowSheet.py
new file mode 100644
index ..da8feb166fe0
--- /dev/null
+++ b/sc/qa/uitest/hideShowSheet/hideShowSheet.py
@@ -0,0 +1,56 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+from uitest.framework import UITestCase
+from uitest.uihelper.common import get_state_as_dict
+from uitest.uihelper.common import select_pos
+from uitest.uihelper.calc import enter_text_to_cell
+from libreoffice.calc.document import get_cell_by_position
+from libreoffice.uno.propertyvalue import mkPropertyValues
+#uitest sc / Show sheet dialog
+
+class hideShowSheet(UITestCase):
+def test_hide_show_sheet(self):
+writer_doc = self.ui_test.create_doc_in_start_center("calc")
+xCalcDoc = self.xUITest.getTopFocusWindow()
+gridwin = xCalcDoc.getChild("grid_window")
+document = self.ui_test.get_component()
+#insert sheet
+self.ui_test.execute_dialog_through_command(".uno:Insert")
+current_dialog = self.xUITest.getTopFocusWindow()
+xOkButton = current_dialog.getChild("ok")
+self.ui_test.close_dialog_through_button(xOkButton)
+#select sheet
+gridwin.executeAction("SELECT", mkPropertyValues({"TABLE":"1"}))
+#hide sheet
+self.xUITest.executeCommand(".uno:Hide")
+#show sheet Dialog
+self.ui_test.execute_dialog_through_command(".uno:Show")
+xDialog = self.xUITest.getTopFocusWindow()
+treeview = xDialog.getChild("treeview")
+self.assertEqual(get_state_as_dict(treeview)["Children"], "1")
+xcancel = xDialog.getChild("cancel")
+self.ui_test.close_dialog_through_button(xcancel)
+#insert 2nd sheet
+self.ui_test.execute_dialog_through_command(".uno:Insert")
+current_dialog = self.xUITest.getTopFocusWindow()
+xOkButton = current_dialog.getChild("ok")
+self.ui_test.close_dialog_through_button(xOkButton)
+#select sheet
+gridwin.executeAction("SELECT", mkPropertyValues({"TABLE":"2"}))
+#hide sheet
+self.xUITest.executeCommand(".uno:Hide")
+#show sheet Dialog
+self.ui_test.execute_dialog_through_command(".uno:Show")
+xDialog = self.xUITest.getTopFocusWindow()
+treeview = xDialog.getChild("treeview")
+self.assertEqual(get_state_as_dict(treeview)["Children"], "2")
+xcancel = xDialog.getChild("cancel")
+self.ui_test.close_dialog_through_button(xcancel)
+
+self.ui_test.close_doc()
+
+# vim: set shiftwidth=4 softtabstop=4 expandtab:
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk

2018-11-13 Thread Libreoffice Gerrit user
 sc/Module_sc.mk |   88 
 1 file changed, 44 insertions(+), 44 deletions(-)

New commits:
commit 85dba18a3d3644a4ac49bd32ea106a4d69159fb4
Author: Jens Carl 
AuthorDate: Tue Nov 13 14:02:38 2018 -0800
Commit: Jens Carl 
CommitDate: Wed Nov 14 00:08:44 2018 +0100

Improve readability of subsequentcheck targets

Change-Id: I82527713d12a4ba823b3b185c14ccb8b791a62a8
Reviewed-on: https://gerrit.libreoffice.org/63348
Tested-by: Jenkins
Reviewed-by: Jens Carl 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 7cb0d64c8a0a..b6730d613549 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -101,65 +101,65 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
JunitTest_sc_unoapi_5 \
JunitTest_sc_unoapi_6 \
JunitTest_sc_unoapi_7 \
-   CppunitTest_sc_opencl_test \
-   CppunitTest_sc_parallelism \
CppunitTest_sc_anchor_test \
-   CppunitTest_sc_annotationshapeobj \
-   CppunitTest_sc_outlineobj \
-   CppunitTest_sc_styleloaderobj \
-   CppunitTest_sc_recordchanges \
CppunitTest_sc_annotationobj \
+   CppunitTest_sc_annotationshapeobj \
CppunitTest_sc_annotationsobj \
+   CppunitTest_sc_arealinkobj \
+   CppunitTest_sc_arealinksobj \
+   CppunitTest_sc_autoformatobj \
+   CppunitTest_sc_cellcursorobj \
+   CppunitTest_sc_cellobj \
CppunitTest_sc_cellrangeobj \
+   CppunitTest_sc_cellrangesobj \
+   CppunitTest_sc_chart2dataprovider \
+   CppunitTest_sc_check_data_pilot_field \
+   CppunitTest_sc_check_data_pilot_table \
+   CppunitTest_sc_check_xcell_ranges_query \
+   CppunitTest_sc_consolidationdescriptorobj \
$(if $(filter-out $(OS),iOS), \
CppunitTest_sc_databaserangeobj) \
-   CppunitTest_sc_datapilottableobj \
+   CppunitTest_sc_databaserangesobj \
CppunitTest_sc_datapilotfieldobj \
-   CppunitTest_sc_macros_test \
-   CppunitTest_sc_namedrangeobj \
-   CppunitTest_sc_namedrangesobj \
-   CppunitTest_sc_tablesheetobj \
-   CppunitTest_sc_tablesheetsobj \
+   CppunitTest_sc_datapilotitemobj \
+   CppunitTest_sc_datapilottableobj \
+   CppunitTest_sc_datapilottablesobj \
+   CppunitTest_sc_ddelinkobj \
+   CppunitTest_sc_documentconfigurationobj \
CppunitTest_sc_editfieldobj_cell \
CppunitTest_sc_editfieldobj_header \
-   CppunitTest_sc_modelobj \
-   CppunitTest_sc_check_xcell_ranges_query \
-   CppunitTest_sc_check_data_pilot_field \
-   CppunitTest_sc_check_data_pilot_table \
-   CppunitTest_sc_viewpaneobj \
-   CppunitTest_sc_cellobj \
-   CppunitTest_sc_cellcursorobj \
-   CppunitTest_sc_tabviewobj \
-   CppunitTest_sc_arealinkobj \
-   CppunitTest_sc_subtotaldescriptorbaseobj \
-   CppunitTest_sc_datapilotitemobj \
-   CppunitTest_sc_subtotalfieldobj \
-   CppunitTest_sc_arealinksobj \
-   CppunitTest_sc_cellrangesobj \
CppunitTest_sc_filterdescriptorbaseobj \
-   CppunitTest_sc_tablevalidationobj \
-   CppunitTest_sc_tableconditionalentryobj \
-   CppunitTest_sc_tableconditionalformatobj \
-   CppunitTest_sc_scenariosobj \
-   CppunitTest_sc_labelrangesobj \
-   CppunitTest_sc_labelrangeobj \
-   CppunitTest_sc_headerfootercontentobj \
-   CppunitTest_sc_recentfunctionsobj \
+   CppunitTest_sc_functiondescriptionobj \
CppunitTest_sc_functionlistobj \
-   CppunitTest_sc_datapilottablesobj \
-   CppunitTest_sc_databaserangesobj \
-   CppunitTest_sc_consolidationdescriptorobj \
-   CppunitTest_sc_chart2dataprovider \
-   CppunitTest_sc_autoformatobj \
+   CppunitTest_sc_headerfootercontentobj \
CppunitTest_sc_importdescriptorbaseobj \
-   CppunitTest_sc_documentconfigurationobj \
-   CppunitTest_sc_spreadsheetsettings \
+   CppunitTest_sc_labelrangeobj \
+   CppunitTest_sc_labelrangesobj \
+   CppunitTest_sc_macros_test \
+   CppunitTest_sc_modelobj \
+   CppunitTest_sc_namedrangeobj \
+   CppunitTest_sc_namedrangesobj \
+   CppunitTest_sc_opencl_test \
+   CppunitTest_sc_outlineobj \
+   CppunitTest_sc_parallelism \
+   CppunitTest_sc_recentfunctionsobj \
+   CppunitTest_sc_recordchanges \
+   CppunitTest_sc_scenariosobj \
CppunitTest_sc_shapeobj \
CppunitTest_sc_sheetlinkobj \
-   CppunitTest_sc_spreadsheetsettingsobj \
-   CppunitTest_sc_ddelinkobj \
-   CppunitTest_sc_functiondescriptionobj \
CppunitTest_sc_sortdescriptorbaseobj \
+   CppunitTest_sc_spreadsheetsettings \
+   CppunitTest_sc_spreadsheetsettingsobj \
+   CppunitTest_sc_styleloaderobj \
+   CppunitTest_sc_subtotaldescriptorbaseobj \
+   CppunitTest_sc_subtotalfieldobj \
+   CppunitTest_sc_tableconditionalentryobj \
+   CppunitTest_sc_tableconditionalformatobj \
+   

[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_inputLine.mk

2018-10-29 Thread Libreoffice Gerrit user
 sc/Module_sc.mk|1 
 sc/UITest_inputLine.mk |   20 +++
 sc/qa/uitest/inputLine/tdf54197.py |   38 +
 3 files changed, 59 insertions(+)

New commits:
commit 993948678e7a78c7c91e2c2728a9b7182cb2bc79
Author: Zdeněk Crhonek 
AuthorDate: Mon Oct 29 19:57:43 2018 +0100
Commit: Zdenek Crhonek 
CommitDate: Mon Oct 29 21:20:37 2018 +0100

uitest for bug tdf#54197

Change-Id: Iaa6039f9ebabdd4b17e044a82b4e047506addf79
Reviewed-on: https://gerrit.libreoffice.org/62522
Tested-by: Jenkins
Reviewed-by: Zdenek Crhonek 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index da8cfd59a6ca..6373fad86cb7 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -198,6 +198,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_key_f4 \
UITest_textCase \
UITest_signatureLine \
+   UITest_inputLine \
 ))
 endif
 
diff --git a/sc/UITest_inputLine.mk b/sc/UITest_inputLine.mk
new file mode 100644
index ..df6dfc627095
--- /dev/null
+++ b/sc/UITest_inputLine.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,inputLine))
+
+$(eval $(call gb_UITest_add_modules,inputLine,$(SRCDIR)/sc/qa/uitest,\
+   inputLine/ \
+))
+
+$(eval $(call gb_UITest_set_defs,inputLine, \
+TDOC="$(SRCDIR)/sc/qa/uitest/calc_tests/data" \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/inputLine/tdf54197.py 
b/sc/qa/uitest/inputLine/tdf54197.py
new file mode 100644
index ..54f2c5f56861
--- /dev/null
+++ b/sc/qa/uitest/inputLine/tdf54197.py
@@ -0,0 +1,38 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+from uitest.framework import UITestCase
+from uitest.uihelper.common import get_state_as_dict
+from uitest.uihelper.common import select_pos
+from uitest.uihelper.calc import enter_text_to_cell
+from libreoffice.calc.document import get_sheet_from_doc
+from libreoffice.calc.conditional_format import 
get_conditional_format_from_sheet
+from uitest.debug import sleep
+from libreoffice.calc.document import get_cell_by_position
+from libreoffice.uno.propertyvalue import mkPropertyValues
+#Bug 54197 - Calc single cell filling (Ctrl+D) does not change data at input 
line
+
+class tdf54197(UITestCase):
+
+def test_tdf54197_CTRL_D_input_line_change(self):
+calc_doc = self.ui_test.create_doc_in_start_center("calc")
+xCalcDoc = self.xUITest.getTopFocusWindow()
+gridwin = xCalcDoc.getChild("grid_window")
+document = self.ui_test.get_component()
+# 1. go to cell A1 enter any text
+enter_text_to_cell(gridwin, "A1", "t")
+# 2. go to cell A2 press Ctrl+D
+gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "A2"}))
+self.xUITest.executeCommand(".uno:FillDown")
+# The same text as above is displayed at cell A2, BUT input line is 
still blank
+self.assertEqual(get_cell_by_position(document, 0, 0, 0).getString(), 
"t")
+self.assertEqual(get_cell_by_position(document, 0, 0, 1).getString(), 
"t")
+xInputWin = xCalcDoc.getChild("sc_input_window")
+self.assertEqual(get_state_as_dict(xInputWin)["Text"], "t")
+
+self.ui_test.close_doc()
+
+# vim: set shiftwidth=4 softtabstop=4 expandtab:
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_signatureLine.mk

2018-10-27 Thread Libreoffice Gerrit user
 sc/Module_sc.mk   |1 
 sc/UITest_signatureLine.mk|   19 
 sc/qa/uitest/signatureLine/insertSignatureLine.py |   84 ++
 3 files changed, 104 insertions(+)

New commits:
commit 97ed3b93e1def081a535de14cc3c3644363cbd45
Author: Zdeněk Crhonek 
AuthorDate: Fri Oct 26 23:11:03 2018 +0200
Commit: Samuel Mehrbrodt 
CommitDate: Sat Oct 27 19:36:21 2018 +0200

uitest Calc signature line

Change-Id: I249c843f89ed5fe1d413f17fa57671d4ef9c69b2
Reviewed-on: https://gerrit.libreoffice.org/62404
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 96236e520652..da8cfd59a6ca 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -197,6 +197,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_validity \
UITest_key_f4 \
UITest_textCase \
+   UITest_signatureLine \
 ))
 endif
 
diff --git a/sc/UITest_signatureLine.mk b/sc/UITest_signatureLine.mk
new file mode 100644
index ..add2a1377d40
--- /dev/null
+++ b/sc/UITest_signatureLine.mk
@@ -0,0 +1,19 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,signatureLine))
+
+$(eval $(call gb_UITest_add_modules,signatureLine,$(SRCDIR)/sc/qa/uitest,\
+   signatureLine/ \
+))
+
+$(eval $(call gb_UITest_set_defs,signatureLine, \
+TDOC="$(SRCDIR)/sc/qa/uitest/calc_tests/data" \
+))
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/signatureLine/insertSignatureLine.py 
b/sc/qa/uitest/signatureLine/insertSignatureLine.py
new file mode 100644
index ..e1de00b1b5bc
--- /dev/null
+++ b/sc/qa/uitest/signatureLine/insertSignatureLine.py
@@ -0,0 +1,84 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+from uitest.framework import UITestCase
+from libreoffice.uno.propertyvalue import mkPropertyValues
+from uitest.uihelper.common import get_state_as_dict, type_text
+from libreoffice.uno.propertyvalue import mkPropertyValues
+#Bug 117903 - Allow signature lines in Calc
+
+class insertSignatureLineCalc(UITestCase):
+
+   def test_insert_signature_line_calc(self):
+calc_doc = self.ui_test.create_doc_in_start_center("calc")
+xCalcDoc = self.xUITest.getTopFocusWindow()
+gridwin = xCalcDoc.getChild("grid_window")
+document = self.ui_test.get_component()
+
+self.ui_test.execute_dialog_through_command(".uno:InsertSignatureLine")
+xDialog = self.xUITest.getTopFocusWindow()
+
+xName = xDialog.getChild("edit_name")
+xTitle = xDialog.getChild("edit_title")
+xEmail = xDialog.getChild("edit_email")
+xComment = xDialog.getChild("checkbox_can_add_comments")
+xInstructions = xDialog.getChild("edit_instructions")
+
+xName.executeAction("TYPE", mkPropertyValues({"TEXT":"Name"})) #set 
the signature line
+xTitle.executeAction("TYPE", mkPropertyValues({"TEXT":"Title"}))
+xEmail.executeAction("TYPE", mkPropertyValues({"TEXT":"Email"}))
+xComment.executeAction("CLICK", tuple())
+xInstructions.executeAction("TYPE", 
mkPropertyValues({"TEXT":"Instructions"}))
+xOKBtn = xDialog.getChild("ok")
+xOKBtn.executeAction("CLICK", tuple())
+
+#check the signature Line in the document
+
self.assertEqual(document.Sheets.getByIndex(0).DrawPage.getByIndex(0).SignatureLineSuggestedSignerName,
 "Name")
+
self.assertEqual(document.Sheets.getByIndex(0).DrawPage.getByIndex(0).SignatureLineSuggestedSignerTitle,
 "Title")
+
self.assertEqual(document.Sheets.getByIndex(0).DrawPage.getByIndex(0).SignatureLineSuggestedSignerEmail,
 "Email")
+
self.assertEqual(document.Sheets.getByIndex(0).DrawPage.getByIndex(0).SignatureLineSuggestedSignerTitle,
 "Title")
+
self.assertEqual(document.Sheets.getByIndex(0).DrawPage.getByIndex(0).SignatureLineCanAddComment,
 False)
+
self.assertEqual(document.Sheets.getByIndex(0).DrawPage.getByIndex(0).SignatureLineShowSignDate,
 True)
+
self.assertEqual(document.Sheets.getByIndex(0).DrawPage.getByIndex(0).SignatureLineSigningInstructions,
 "Instructions")
+
+self.ui_test.close_doc()
+
+   def test_insert_signature_line2_calc(self):
+calc_doc = self.ui_test.create_doc_in_start_center("calc")
+xCalcDoc = self.xUITest.getTopFocusWindow()
+gridwin = xCalcDoc.getChild("grid_window")
+document = 

[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_textCase.mk

2018-08-21 Thread Libreoffice Gerrit user
 sc/Module_sc.mk |1 
 sc/UITest_textCase.mk   |   20 +++
 sc/qa/uitest/calc_tests/data/tdf119155.xlsx |binary
 sc/qa/uitest/calc_tests/data/tdf119162.xls  |binary
 sc/qa/uitest/textCase/textCase.py   |  165 
 5 files changed, 186 insertions(+)

New commits:
commit 55d1ee5a8fb3e72d534a64e5045dfc0ec6a6eab8
Author: Zdeněk Crhonek 
AuthorDate: Mon Aug 20 15:43:17 2018 +0200
Commit: Zdenek Crhonek 
CommitDate: Tue Aug 21 17:35:00 2018 +0200

uitest Calc-Text Case; tdf#119155 ; tdf#119162

Change-Id: Ifaf90b8bcf37bc712f734778a935370027696210
Reviewed-on: https://gerrit.libreoffice.org/59328
Tested-by: Jenkins
Reviewed-by: Zdenek Crhonek 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 9109cc730b64..ab21903dfd7c 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -196,6 +196,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_options \
UITest_validity \
UITest_key_f4 \
+   UITest_textCase \
 ))
 endif
 
diff --git a/sc/UITest_textCase.mk b/sc/UITest_textCase.mk
new file mode 100644
index ..dc0cbedf
--- /dev/null
+++ b/sc/UITest_textCase.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,textCase))
+
+$(eval $(call gb_UITest_add_modules,textCase,$(SRCDIR)/sc/qa/uitest,\
+   textCase/ \
+))
+
+$(eval $(call gb_UITest_set_defs,textCase, \
+TDOC="$(SRCDIR)/sc/qa/uitest/calc_tests/data" \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/calc_tests/data/tdf119155.xlsx 
b/sc/qa/uitest/calc_tests/data/tdf119155.xlsx
new file mode 100644
index ..8deb480f79e0
Binary files /dev/null and b/sc/qa/uitest/calc_tests/data/tdf119155.xlsx differ
diff --git a/sc/qa/uitest/calc_tests/data/tdf119162.xls 
b/sc/qa/uitest/calc_tests/data/tdf119162.xls
new file mode 100644
index ..42765fbe9000
Binary files /dev/null and b/sc/qa/uitest/calc_tests/data/tdf119162.xls differ
diff --git a/sc/qa/uitest/textCase/textCase.py 
b/sc/qa/uitest/textCase/textCase.py
new file mode 100644
index ..fede2a78a024
--- /dev/null
+++ b/sc/qa/uitest/textCase/textCase.py
@@ -0,0 +1,165 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+from uitest.framework import UITestCase
+from uitest.uihelper.common import get_state_as_dict
+from uitest.uihelper.common import select_pos
+from uitest.uihelper.calc import enter_text_to_cell
+from libreoffice.calc.document import get_cell_by_position
+from libreoffice.uno.propertyvalue import mkPropertyValues
+import org.libreoffice.unotest
+import pathlib
+def get_url_for_data_file(file_name):
+return 
pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
+
+class textCase(UITestCase):
+def test_text_case_switch(self):
+calc_doc = self.ui_test.create_doc_in_start_center("calc")
+xCalcDoc = self.xUITest.getTopFocusWindow()
+gridwin = xCalcDoc.getChild("grid_window")
+document = self.ui_test.get_component()
+
+#enter data
+enter_text_to_cell(gridwin, "A1", "hello world")
+enter_text_to_cell(gridwin, "A2", "libre office")
+enter_text_to_cell(gridwin, "A4", "free suite")
+#select
+gridwin.executeAction("SELECT", mkPropertyValues({"RANGE": "A1:A4"}))
+#Capitalize every word - CommandSent Name:.uno:ChangeCaseToTitleCase
+self.xUITest.executeCommand(".uno:ChangeCaseToTitleCase")
+#Verify
+self.assertEqual(get_cell_by_position(document, 0, 0, 0).getString(), 
"Hello World")
+self.assertEqual(get_cell_by_position(document, 0, 0, 1).getString(), 
"Libre Office")
+self.assertEqual(get_cell_by_position(document, 0, 0, 2).getString(), 
"")
+self.assertEqual(get_cell_by_position(document, 0, 0, 3).getString(), 
"Free Suite")
+
+#Sentence case - CommandSent Name:.uno:ChangeCaseToSentenceCase
+self.xUITest.executeCommand(".uno:ChangeCaseToSentenceCase")
+
+self.assertEqual(get_cell_by_position(document, 0, 0, 0).getString(), 
"Hello world")
+self.assertEqual(get_cell_by_position(document, 0, 0, 1).getString(), 
"Libre office")
+self.assertEqual(get_cell_by_position(document, 0, 0, 2).getString(), 
"")
+self.assertEqual(get_cell_by_position(document, 0, 0, 3).getString(), 
"Free suite")
+
+#toggle case - CommandSent 

[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_calc_tests6.mk

2018-08-05 Thread Libreoffice Gerrit user
 sc/Module_sc.mk|1 
 sc/UITest_calc_tests6.mk   |   20 +
 sc/qa/uitest/calc_tests/data/tdf107267.ods |binary
 sc/qa/uitest/calc_tests6/tdf107267.py  |  104 +
 4 files changed, 125 insertions(+)

New commits:
commit f8046f991587aa569866d82d98b626c94badc400
Author: Zdeněk Crhonek 
AuthorDate: Sun Aug 5 09:13:47 2018 +0200
Commit: Zdenek Crhonek 
CommitDate: Sun Aug 5 10:59:00 2018 +0200

uitest for bug tdf#107267

Change-Id: I20266ea50a7e413e0c8297fd6817c0a97205802d
Reviewed-on: https://gerrit.libreoffice.org/58604
Tested-by: Jenkins
Reviewed-by: Zdenek Crhonek 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index b27abde64ed2..9109cc730b64 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -188,6 +188,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_calc_tests2 \
UITest_calc_tests3 \
UITest_calc_tests4 \
+   UITest_calc_tests6 \
UITest_statistics \
UITest_solver \
UITest_goalSeek \
diff --git a/sc/UITest_calc_tests6.mk b/sc/UITest_calc_tests6.mk
new file mode 100644
index ..9350d460783a
--- /dev/null
+++ b/sc/UITest_calc_tests6.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,calc_tests6))
+
+$(eval $(call gb_UITest_add_modules,calc_tests6,$(SRCDIR)/sc/qa/uitest,\
+   calc_tests6/ \
+))
+
+$(eval $(call gb_UITest_set_defs,calc_tests6, \
+TDOC="$(SRCDIR)/sc/qa/uitest/calc_tests/data" \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/calc_tests/data/tdf107267.ods 
b/sc/qa/uitest/calc_tests/data/tdf107267.ods
new file mode 100644
index ..c0eb39fd1616
Binary files /dev/null and b/sc/qa/uitest/calc_tests/data/tdf107267.ods differ
diff --git a/sc/qa/uitest/calc_tests6/tdf107267.py 
b/sc/qa/uitest/calc_tests6/tdf107267.py
new file mode 100644
index ..34a9a4fa0015
--- /dev/null
+++ b/sc/qa/uitest/calc_tests6/tdf107267.py
@@ -0,0 +1,104 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+from libreoffice.uno.propertyvalue import mkPropertyValues
+from uitest.framework import UITestCase
+from libreoffice.calc.document import get_column
+from uitest.uihelper.calc import enter_text_to_cell
+from libreoffice.calc.document import get_cell_by_position
+from uitest.uihelper.common import select_pos
+from uitest.uihelper.common import get_state_as_dict
+import time
+from uitest.debug import sleep
+
+import org.libreoffice.unotest
+import pathlib
+def get_url_for_data_file(file_name):
+return 
pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
+
+#Bug 107267 - During a sub-total calculation or sum, the data set is not 
computed well.
+class Subtotals(UITestCase):
+
+
+def test_tdf107267(self):
+calc_doc = 
self.ui_test.load_file(get_url_for_data_file("tdf107267.ods"))
+XcalcDoc = self.xUITest.getTopFocusWindow()
+document = self.ui_test.get_component()
+gridwin = XcalcDoc.getChild("grid_window")
+# 1. Open the test file
+gridwin.executeAction("SELECT", mkPropertyValues({"RANGE": "A1:F123"}))
+# 2. Data->Subtotals
+self.ui_test.execute_dialog_through_command(".uno:DataSubTotals")
+xDialog = self.xUITest.getTopFocusWindow()
+xTabs = xDialog.getChild("tabcontrol")
+select_pos(xTabs, "0")
+# = 1st group = 3. Group by "Person Number", select "shipping time" 
and use the Max function.
+xGroupBy = xDialog.getChild("group_by")
+props = {"TEXT": "Person Number"}
+actionProps = mkPropertyValues(props)
+xGroupBy.executeAction("SELECT", actionProps)
+# 4. Tick 'Calculate subtotals for' -> "shipping time" - already 
selected
+#xCheckListMenu = xDialog.getChild("grid1")
+#xTreeList = xCheckListMenu.getChild("columns")
+#x6Entry = xTreeList.getChild("5")
+#xFirstEntry.executeAction("CLICK", tuple())
+#use the Max function
+xfunctions = xDialog.getChild("functions")
+propsF = {"TEXT": "Max"}
+actionPropsF = mkPropertyValues(propsF)
+xfunctions.executeAction("SELECT", actionPropsF)
+
+#= 2nd group =5. Group by "Person Number", select "shipping time" and 
use the Min function.
+select_pos(xTabs, "1")
+xGroupBy = xDialog.getChild("group_by")
+props = {"TEXT": "Person Number"}
+

[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_key_f4.mk

2018-07-16 Thread Libreoffice Gerrit user
 sc/Module_sc.mk|1 
 sc/UITest_key_f4.mk|   20 +
 sc/qa/uitest/calc_tests/data/tdf102525.ods |binary
 sc/qa/uitest/key_f4/tdf102525.py   |   43 +
 4 files changed, 64 insertions(+)

New commits:
commit e72577d1ebd58a4d79bfd7c51086e3542170f1d2
Author: Zdeněk Crhonek 
AuthorDate: Sun Jul 15 23:08:14 2018 +0200
Commit: Zdenek Crhonek 
CommitDate: Mon Jul 16 18:59:47 2018 +0200

uitest for bug tdf#102525

Change-Id: Idb3810d99ebbd33bf0961f362694d0f4961fb912
Reviewed-on: https://gerrit.libreoffice.org/57463
Tested-by: Jenkins
Reviewed-by: Zdenek Crhonek 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index df10cdb32299..b27abde64ed2 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -194,6 +194,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_protect \
UITest_options \
UITest_validity \
+   UITest_key_f4 \
 ))
 endif
 
diff --git a/sc/UITest_key_f4.mk b/sc/UITest_key_f4.mk
new file mode 100644
index ..85ef4babca1e
--- /dev/null
+++ b/sc/UITest_key_f4.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,key_f4))
+
+$(eval $(call gb_UITest_add_modules,key_f4,$(SRCDIR)/sc/qa/uitest,\
+   key_f4/ \
+))
+
+$(eval $(call gb_UITest_set_defs,key_f4, \
+TDOC="$(SRCDIR)/sc/qa/uitest/calc_tests/data" \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/calc_tests/data/tdf102525.ods 
b/sc/qa/uitest/calc_tests/data/tdf102525.ods
new file mode 100644
index ..533d2d2ba0b5
Binary files /dev/null and b/sc/qa/uitest/calc_tests/data/tdf102525.ods differ
diff --git a/sc/qa/uitest/key_f4/tdf102525.py b/sc/qa/uitest/key_f4/tdf102525.py
new file mode 100644
index ..b93062b309b6
--- /dev/null
+++ b/sc/qa/uitest/key_f4/tdf102525.py
@@ -0,0 +1,43 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+from uitest.framework import UITestCase
+import os
+from uitest.uihelper.common import get_state_as_dict
+from uitest.debug import sleep
+from libreoffice.uno.propertyvalue import mkPropertyValues
+from libreoffice.calc.document import get_cell_by_position
+import org.libreoffice.unotest
+import pathlib
+def get_url_for_data_file(file_name):
+return 
pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
+#Bug 102525 - F4 breaks array formula
+class tdf102525(UITestCase):
+def test_tdf102525_F4_key_array_formula(self):
+calc_doc = 
self.ui_test.load_file(get_url_for_data_file("tdf102525.ods"))
+xCalcDoc = self.xUITest.getTopFocusWindow()
+gridwin = xCalcDoc.getChild("grid_window")
+document = self.ui_test.get_component()
+
+#select B1:B4
+gridwin.executeAction("SELECT", mkPropertyValues({"RANGE": "B1:B4"}))
+#F4
+gridwin.executeAction("TYPE", mkPropertyValues({"KEYCODE": "F4"}))
+#verify
+self.assertEqual(get_cell_by_position(document, 0, 1, 0).getValue(), 2)
+self.assertEqual(get_cell_by_position(document, 0, 1, 0).getFormula(), 
"{=IF($A$1:$A$4>2;1;2)}")
+self.assertEqual(get_cell_by_position(document, 0, 1, 1).getValue(), 2)
+self.assertEqual(get_cell_by_position(document, 0, 1, 2).getValue(), 1)
+self.assertEqual(get_cell_by_position(document, 0, 1, 3).getValue(), 1)
+#Undo
+self.xUITest.executeCommand(".uno:Undo")
+#verify
+self.assertEqual(get_cell_by_position(document, 0, 1, 0).getValue(), 2)
+self.assertEqual(get_cell_by_position(document, 0, 1, 0).getFormula(), 
"{=IF(A1:A4>2;1;2)}")
+
+self.ui_test.close_doc()
+
+# vim: set shiftwidth=4 softtabstop=4 expandtab:
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_validity.mk

2018-07-13 Thread Libreoffice Gerrit user
 sc/Module_sc.mk   |1 
 sc/UITest_validity.mk |   20 +
 sc/qa/uitest/validity/validity.py |  143 ++
 3 files changed, 164 insertions(+)

New commits:
commit 84ccbb5123fe976a105e97390141ed209c8b9bcc
Author: Zdeněk Crhonek 
AuthorDate: Fri Jul 13 16:51:44 2018 +0200
Commit: Zdenek Crhonek 
CommitDate: Fri Jul 13 21:47:10 2018 +0200

uitest Calc - Validity

Change-Id: I0de19f41e177eebf6212ff2de905ca1a7859e9c5
Reviewed-on: https://gerrit.libreoffice.org/57394
Tested-by: Jenkins
Reviewed-by: Zdenek Crhonek 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 11518813b4eb..df10cdb32299 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -193,6 +193,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_goalSeek \
UITest_protect \
UITest_options \
+   UITest_validity \
 ))
 endif
 
diff --git a/sc/UITest_validity.mk b/sc/UITest_validity.mk
new file mode 100644
index ..eb1c8eb3b57b
--- /dev/null
+++ b/sc/UITest_validity.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,validity))
+
+$(eval $(call gb_UITest_add_modules,validity,$(SRCDIR)/sc/qa/uitest,\
+   validity/ \
+))
+
+$(eval $(call gb_UITest_set_defs,validity, \
+TDOC="$(SRCDIR)/sc/qa/uitest/calc_tests/data" \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/validity/validity.py 
b/sc/qa/uitest/validity/validity.py
new file mode 100644
index ..d357b77acfe8
--- /dev/null
+++ b/sc/qa/uitest/validity/validity.py
@@ -0,0 +1,143 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+from uitest.framework import UITestCase
+from uitest.uihelper.common import get_state_as_dict
+from uitest.uihelper.common import select_pos
+from uitest.uihelper.calc import enter_text_to_cell
+from libreoffice.calc.document import get_cell_by_position
+from libreoffice.uno.propertyvalue import mkPropertyValues
+
+class validity(UITestCase):
+def test_validity_tab_criteria(self):
+calc_doc = self.ui_test.create_doc_in_start_center("calc")
+xCalcDoc = self.xUITest.getTopFocusWindow()
+gridwin = xCalcDoc.getChild("grid_window")
+document = self.ui_test.get_component()
+gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "A1"}))
+
+self.ui_test.execute_dialog_through_command(".uno:Validation")
+xDialog = self.xUITest.getTopFocusWindow()
+xTabs = xDialog.getChild("tabcontrol")
+select_pos(xTabs, "0")
+xallow = xDialog.getChild("allow")
+xallowempty = xDialog.getChild("allowempty")
+xdata = xDialog.getChild("data")
+xmin = xDialog.getChild("min")
+xmax = xDialog.getChild("max")
+
+props = {"TEXT": "Whole Numbers"}
+actionProps = mkPropertyValues(props)
+xallow.executeAction("SELECT", actionProps)
+xallowempty.executeAction("CLICK", tuple())
+propsA = {"TEXT": "valid range"}
+actionPropsA = mkPropertyValues(propsA)
+xdata.executeAction("SELECT", actionPropsA)
+xmin.executeAction("TYPE", mkPropertyValues({"TEXT":"1"}))
+xmax.executeAction("TYPE", mkPropertyValues({"TEXT":"2"}))
+xOKBtn = xDialog.getChild("ok")
+self.ui_test.close_dialog_through_button(xOKBtn)
+#reopen and verify
+self.ui_test.execute_dialog_through_command(".uno:Validation")
+xDialog = self.xUITest.getTopFocusWindow()
+xallow = xDialog.getChild("allow")
+xallowempty = xDialog.getChild("allowempty")
+xdata = xDialog.getChild("data")
+xmin = xDialog.getChild("min")
+xmax = xDialog.getChild("max")
+
+self.assertEqual(get_state_as_dict(xallow)["SelectEntryText"], "Whole 
Numbers")
+self.assertEqual(get_state_as_dict(xallowempty)["Selected"], "false")
+self.assertEqual(get_state_as_dict(xdata)["SelectEntryText"], "valid 
range")
+self.assertEqual(get_state_as_dict(xmin)["Text"], "1")
+self.assertEqual(get_state_as_dict(xmax)["Text"], "2")
+xOKBtn = xDialog.getChild("ok")
+self.ui_test.close_dialog_through_button(xOKBtn)
+
+self.ui_test.close_doc()
+
+def test_validity_tab_inputHelp(self):
+#validationhelptabpage.ui
+calc_doc = self.ui_test.create_doc_in_start_center("calc")
+xCalcDoc = self.xUITest.getTopFocusWindow()
+gridwin = 

[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_options.mk

2018-07-08 Thread Zdeněk Crhonek
 sc/Module_sc.mk   |1 
 sc/UITest_options.mk  |   20 +
 sc/qa/uitest/options/tdf117458.py |  144 ++
 3 files changed, 165 insertions(+)

New commits:
commit 107af098311beafaadb343c5a3634389f56006a0
Author: Zdeněk Crhonek 
Date:   Sat Jul 7 08:35:59 2018 +0200

uitest for bug tdf#117458

Change-Id: Ie6316a3b10567d0a291281a2358d4edfc5ab761c
Reviewed-on: https://gerrit.libreoffice.org/57107
Tested-by: Jenkins
Reviewed-by: Zdenek Crhonek 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 933d41736740..11518813b4eb 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -192,6 +192,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_solver \
UITest_goalSeek \
UITest_protect \
+   UITest_options \
 ))
 endif
 
diff --git a/sc/UITest_options.mk b/sc/UITest_options.mk
new file mode 100644
index ..2869fb4a510e
--- /dev/null
+++ b/sc/UITest_options.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,options))
+
+$(eval $(call gb_UITest_add_modules,options,$(SRCDIR)/sc/qa/uitest,\
+   options/ \
+))
+
+$(eval $(call gb_UITest_set_defs,options, \
+TDOC="$(SRCDIR)/sc/qa/uitest/calc_tests/data" \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/options/tdf117458.py 
b/sc/qa/uitest/options/tdf117458.py
new file mode 100644
index ..8d12f3cf63db
--- /dev/null
+++ b/sc/qa/uitest/options/tdf117458.py
@@ -0,0 +1,144 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+from uitest.framework import UITestCase
+from uitest.uihelper.common import get_state_as_dict
+from uitest.uihelper.common import select_pos
+from uitest.uihelper.calc import enter_text_to_cell
+from libreoffice.calc.document import get_cell_by_position
+from libreoffice.uno.propertyvalue import mkPropertyValues
+
+#Bug 117458 - Selection doesn't move left nor right by pressing ENTER
+
+class tdf117458(UITestCase):
+def test_tdf117458_selection_move_by_enter(self):
+calc_doc = self.ui_test.create_doc_in_start_center("calc")
+xCalcDoc = self.xUITest.getTopFocusWindow()
+gridwin = xCalcDoc.getChild("grid_window")
+document = self.ui_test.get_component()
+#Go to Tools -> Options -> LibreOffice Calc -> General
+self.ui_test.execute_dialog_through_command(".uno:OptionsTreeDialog")  
#optionsdialog
+xDialogOpt = self.xUITest.getTopFocusWindow()
+
+xPages = xDialogOpt.getChild("pages")
+xCalcEntry = xPages.getChild('3') # Calc
+xCalcEntry.executeAction("EXPAND", tuple())
+xCalcGeneralEntry = xCalcEntry.getChild('0')
+xCalcGeneralEntry.executeAction("SELECT", tuple())  #General
+xaligncb = xDialogOpt.getChild("aligncb")
+xalignlb = xDialogOpt.getChild("alignlb")
+if (get_state_as_dict(xaligncb)["Selected"]) == "false":
+xaligncb.executeAction("CLICK", tuple())
+#Down
+props = {"TEXT": "Down"}
+actionProps = mkPropertyValues(props)
+xalignlb.executeAction("SELECT", actionProps)
+
+xOKBtn = xDialogOpt.getChild("ok")
+self.ui_test.close_dialog_through_button(xOKBtn)
+#Select cell A1
+#and down up to "deselect" range
+gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "A1"}))
+self.xUITest.executeCommand(".uno:GoDown")
+self.xUITest.executeCommand(".uno:GoUp")
+#press Enter
+gridwin.executeAction("TYPE", mkPropertyValues({"KEYCODE": "RETURN"}))
+#Verify
+self.assertEqual(get_state_as_dict(gridwin)["CurrentRow"], "1")
+
+#Go to Tools -> Options -> LibreOffice Calc -> General
+self.ui_test.execute_dialog_through_command(".uno:OptionsTreeDialog")  
#optionsdialog
+xDialogOpt = self.xUITest.getTopFocusWindow()
+
+xPages = xDialogOpt.getChild("pages")
+xCalcEntry = xPages.getChild('3') # Calc
+xCalcEntry.executeAction("EXPAND", tuple())
+xCalcGeneralEntry = xCalcEntry.getChild('0')
+xCalcGeneralEntry.executeAction("SELECT", tuple())  #General
+xaligncb = xDialogOpt.getChild("aligncb")
+xalignlb = xDialogOpt.getChild("alignlb")
+if (get_state_as_dict(xaligncb)["Selected"]) == "false":
+xaligncb.executeAction("CLICK", tuple())
+#Up
+props = 

[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_protect.mk

2018-06-27 Thread Zdeněk Crhonek
 sc/Module_sc.mk|1 
 sc/UITest_protect.mk   |   20 ++
 sc/qa/uitest/calc_tests3/clearCells.py |  287 +
 sc/qa/uitest/protect/protectSheet.py   |   54 +
 sc/qa/uitest/protect/protectSpreadsheet.py |   46 
 5 files changed, 408 insertions(+)

New commits:
commit 681b3facd3ddb7ab4577c48e232fb29a269d0d40
Author: Zdeněk Crhonek 
Date:   Wed Jun 27 21:56:55 2018 +0200

uitest ProtectSheet, protectSpreadsheet, clearCells, tdf#101904

Change-Id: I18f5563be60fa7826d8f720288abcfaf9d93313e
Reviewed-on: https://gerrit.libreoffice.org/56564
Tested-by: Jenkins
Reviewed-by: Zdenek Crhonek 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 2474f08553fa..933d41736740 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -191,6 +191,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_statistics \
UITest_solver \
UITest_goalSeek \
+   UITest_protect \
 ))
 endif
 
diff --git a/sc/UITest_protect.mk b/sc/UITest_protect.mk
new file mode 100644
index ..39ff0fba0941
--- /dev/null
+++ b/sc/UITest_protect.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,protect))
+
+$(eval $(call gb_UITest_add_modules,protect,$(SRCDIR)/sc/qa/uitest,\
+   protect/ \
+))
+
+$(eval $(call gb_UITest_set_defs,protect, \
+TDOC="$(SRCDIR)/sc/qa/uitest/calc_tests/data" \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/calc_tests3/clearCells.py 
b/sc/qa/uitest/calc_tests3/clearCells.py
new file mode 100644
index ..0c53947c99c4
--- /dev/null
+++ b/sc/qa/uitest/calc_tests3/clearCells.py
@@ -0,0 +1,287 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+from uitest.framework import UITestCase
+from uitest.uihelper.common import get_state_as_dict
+from uitest.uihelper.common import select_pos
+from uitest.uihelper.calc import enter_text_to_cell
+from libreoffice.calc.document import get_sheet_from_doc
+from libreoffice.calc.conditional_format import 
get_conditional_format_from_sheet
+from uitest.debug import sleep
+from libreoffice.calc.document import get_cell_by_position
+from libreoffice.uno.propertyvalue import mkPropertyValues
+#deletecontents.ui
+#+ Bug 101904 - Delete Contents dialog -- won't delete cell content "Date & 
time"
+class clearCells(UITestCase):
+def test_clear_cells_text(self):
+calc_doc = self.ui_test.create_doc_in_start_center("calc")
+xCalcDoc = self.xUITest.getTopFocusWindow()
+gridwin = xCalcDoc.getChild("grid_window")
+document = self.ui_test.get_component()
+enter_text_to_cell(gridwin, "A1", "aa")
+enter_text_to_cell(gridwin, "A2", "1")
+
+gridwin.executeAction("SELECT", mkPropertyValues({"RANGE": "A1:A2"}))
+self.ui_test.execute_dialog_through_command(".uno:Delete")
+xDialog = self.xUITest.getTopFocusWindow()
+xdeleteall = xDialog.getChild("deleteall")
+xtext = xDialog.getChild("text")
+xdatetime = xDialog.getChild("datetime")
+xcomments = xDialog.getChild("comments")
+xobjects = xDialog.getChild("objects")
+xnumbers = xDialog.getChild("numbers")
+xformulas = xDialog.getChild("formulas")
+xformats = xDialog.getChild("formats")
+
+if (get_state_as_dict(xdeleteall)["Selected"]) == "true":
+xdeleteall.executeAction("CLICK", tuple())
+if (get_state_as_dict(xtext)["Selected"]) == "false":
+xtext.executeAction("CLICK", tuple())
+if (get_state_as_dict(xdatetime)["Selected"]) == "true":
+xdatetime.executeAction("CLICK", tuple())
+if (get_state_as_dict(xcomments)["Selected"]) == "true":
+xcomments.executeAction("CLICK", tuple())
+if (get_state_as_dict(xobjects)["Selected"]) == "true":
+xobjects.executeAction("CLICK", tuple())
+if (get_state_as_dict(xnumbers)["Selected"]) == "true":
+xnumbers.executeAction("CLICK", tuple())
+if (get_state_as_dict(xformulas)["Selected"]) == "true":
+xformulas.executeAction("CLICK", tuple())
+if (get_state_as_dict(xformats)["Selected"]) == "true":
+xformats.executeAction("CLICK", tuple())
+
+xOKBtn = xDialog.getChild("ok")
+self.ui_test.close_dialog_through_button(xOKBtn)
+#Verify
+self.assertEqual(get_cell_by_position(document, 0, 0, 

[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa

2018-06-25 Thread Zdeněk Crhonek
 sc/Module_sc.mk   |3 +--
 sc/qa/uitest/goalSeek/tdf37341.py |4 ++--
 2 files changed, 3 insertions(+), 4 deletions(-)

New commits:
commit 37f71d7a954b2fdb3f0a03452eed8bec963f0033
Author: Zdeněk Crhonek 
Date:   Sun Jun 24 14:57:51 2018 +0200

enable uitest for goal seek again

changed failling test tdf37341 to not check exact result.

Change-Id: I9a4328c6b518cd0c768414c602d765384ab02603
Reviewed-on: https://gerrit.libreoffice.org/56351
Tested-by: Jenkins
Reviewed-by: Zdenek Crhonek 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index b51de1a23879..2474f08553fa 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -190,9 +190,8 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_calc_tests4 \
UITest_statistics \
UITest_solver \
+   UITest_goalSeek \
 ))
 endif
-#FIXME needs debugging
-#  UITest_goalSeek \
 
 # vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/goalSeek/tdf37341.py 
b/sc/qa/uitest/goalSeek/tdf37341.py
index dcae4bb38aed..730c3482e296 100644
--- a/sc/qa/uitest/goalSeek/tdf37341.py
+++ b/sc/qa/uitest/goalSeek/tdf37341.py
@@ -40,7 +40,7 @@ class tdf37341(UITestCase):
 self.ui_test.execute_blocking_action(xOKBtn.executeAction, 
args=('CLICK', ()),
 dialog_handler=handle_OK_dlg)
 #verify
-self.assertEqual(get_cell_by_position(document, 0, 4, 6).getValue(), 
12879.147)
+self.assertEqual(get_cell_by_position(document, 0, 4, 6).getValue() > 
0, True)
 self.ui_test.close_doc()
 
-# vim: set shiftwidth=4 softtabstop=4 expandtab:
+# vim: set shiftwidth=4 softtabstop=4 expandtab:
\ No newline at end of file
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk

2018-06-22 Thread Michael Stahl
 sc/Module_sc.mk |3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 97a3dc214d49b46c5d7a67b8f21ff224302c8f3e
Author: Michael Stahl 
Date:   Fri Jun 22 15:34:39 2018 +0200

sc: disable UITest_goalSeek for now

The solver code is apparently quite unreliable, failures such as:

File "/sc/qa/uitest/goalSeek/tdf37341.py", line 43, in 
test_tdf37341_goalSeek
self.assertEqual(get_cell_by_position(document, 0, 4, 6).getValue(), 
12879.147)
AssertionError: 11751.688982 != 12879.147

or crash on shutdown:

0  in std::unique_ptr 
>::get() const (this=0x28) at 
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/bits/unique_ptr.h:234
1  in std::unique_ptr 
>::operator->() const (this=0x28) at 
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/bits/unique_ptr.h:228
2  in SfxApplication::GetObjectShells_Impl() const (this=0x0) at 
/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/sfx2/source/appl/app.cxx:403
3  in SfxObjectShell::GetFirst(std::function 
const&, bool) (isObjectShell=..., bOnlyVisible=true) at 
/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/sfx2/source/doc/objxtor.cxx:450
   41bef610: {maData = std::__debug::vector of length -417946822263704711, 
capacity -485587501518907230 = {
4  in ScFormulaReferenceHelper::enableInput(bool) (bEnable=true) at 
/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/sc/source/ui/miscdlgs/anyrefdg.cxx:94
5  in ScFormulaReferenceHelper::dispose() (this=0x32076e0) at 
/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/sc/source/ui/miscdlgs/anyrefdg.cxx:78
   2076c0
6  in ScRefHandler::disposeRefHandler() (this=0x32076c0) at 
/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/sc/source/ui/miscdlgs/anyrefdg.cxx:823
7  in ScRefHandler::~ScRefHandler() (this=0x32076c0) at 
/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/sc/source/ui/miscdlgs/anyrefdg.cxx:815
8  in ScRefHdlrImplBase::~ScRefHdlrImplBase() 
(this=0x3207390, vtt=0x2b8443074d78 ) at 
/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/sc/source/ui/inc/anyrefdg.hxx:198
9  in ScRefHdlrImpl::~ScRefHdlrImpl() 
(this=0x3207390, vtt=0x2b8443074d70 ) at 
/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/sc/source/ui/inc/anyrefdg.hxx:229
10 in ScAnyRefDlg::~ScAnyRefDlg() (this=0x3207390, vtt=0x2b8443074d68 ) at 
/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/sc/source/ui/inc/anyrefdg.hxx:232
11 in ScSolverDlg::~ScSolverDlg() (this=0x3207390, vtt=0x2b8443074d60 ) at 
/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/sc/source/ui/miscdlgs/solvrdlg.cxx:80
12 in ScSolverDlg::~ScSolverDlg() (this=0x3207390) at 
/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/sc/source/ui/miscdlgs/solvrdlg.cxx:78
13 in ScSolverDlg::~ScSolverDlg() (this=0x3207390) at 
/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/sc/source/ui/miscdlgs/solvrdlg.cxx:78
14 in VclReferenceBase::release() const (this=0x3207928) at 
/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/include/vcl/vclreferencebase.hxx:45
15 in rtl::Reference::~Reference() (this=0x2fb0bb0) at 
/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/include/rtl/ref.hxx:90
16 in VclPtr::~VclPtr() (this=0x2fb0ba8) at 
/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/include/vcl/vclptr.hxx:117
17 in WindowUIObject::~WindowUIObject() (this=0x2fb0ba0) at 
/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/include/vcl/uitest/uiobject.hxx:102
18 in DialogUIObject::~DialogUIObject() (this=0x2fb0ba0) at 
/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/vcl/source/uitest/uiobject.cxx:592
19 in DialogUIObject::~DialogUIObject() (this=0x2fb0ba0) at 
/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/vcl/source/uitest/uiobject.cxx:591
20 in std::default_delete::operator()(UIObject*) const 
(this=0x32543d8, __ptr=0x2fb0ba0) at 
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/bits/unique_ptr.h:67
21 in std::unique_ptr 
>::reset(UIObject*) (this=0x32543d8, __p=0x2fb0ba0) at 
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/bits/unique_ptr.h:262
22 in UIObjectUnoObj::~UIObjectUnoObj() (this=0x3254370) at 
/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/vcl/source/uitest

Change-Id: I350ad562bbea945711de6e69e82f59ed728ab605

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 2474f08553fa..b51de1a23879 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -190,8 +190,9 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
  

[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_goalSeek.mk

2018-06-20 Thread Zdeněk Crhonek
 sc/Module_sc.mk   |1 
 sc/UITest_goalSeek.mk |   20 
 sc/qa/uitest/calc_tests/data/goalSeek.ods |binary
 sc/qa/uitest/calc_tests/data/tdf37341.ods |binary
 sc/qa/uitest/calc_tests/data/tdf43693.ods |binary
 sc/qa/uitest/goalSeek/goalSeek.py |   49 ++
 sc/qa/uitest/goalSeek/tdf37341.py |   46 
 sc/qa/uitest/goalSeek/tdf43693.py |   46 
 sc/qa/uitest/solver/solver.py |3 -
 9 files changed, 163 insertions(+), 2 deletions(-)

New commits:
commit 1b4c09401053ff6df8de9e839299ac26efa28b37
Author: Zdeněk Crhonek 
Date:   Wed Jun 20 20:03:26 2018 +0200

uitest Calc/Goal seek; tdf#37341 ; tdf#43693

Change-Id: Ib6416eec6245f22f49687437a466b1e5c6d60efb
Reviewed-on: https://gerrit.libreoffice.org/56181
Tested-by: Jenkins
Reviewed-by: Zdenek Crhonek 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index e8e1bb5b2bfb..2474f08553fa 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -190,6 +190,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_calc_tests4 \
UITest_statistics \
UITest_solver \
+   UITest_goalSeek \
 ))
 endif
 
diff --git a/sc/UITest_goalSeek.mk b/sc/UITest_goalSeek.mk
new file mode 100644
index ..0990482e7fd2
--- /dev/null
+++ b/sc/UITest_goalSeek.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,goalSeek))
+
+$(eval $(call gb_UITest_add_modules,goalSeek,$(SRCDIR)/sc/qa/uitest,\
+   goalSeek/ \
+))
+
+$(eval $(call gb_UITest_set_defs,goalSeek, \
+TDOC="$(SRCDIR)/sc/qa/uitest/calc_tests/data" \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/calc_tests/data/goalSeek.ods 
b/sc/qa/uitest/calc_tests/data/goalSeek.ods
new file mode 100644
index ..fd78ec0197e4
Binary files /dev/null and b/sc/qa/uitest/calc_tests/data/goalSeek.ods differ
diff --git a/sc/qa/uitest/calc_tests/data/tdf37341.ods 
b/sc/qa/uitest/calc_tests/data/tdf37341.ods
new file mode 100644
index ..d0f5024fb1ac
Binary files /dev/null and b/sc/qa/uitest/calc_tests/data/tdf37341.ods differ
diff --git a/sc/qa/uitest/calc_tests/data/tdf43693.ods 
b/sc/qa/uitest/calc_tests/data/tdf43693.ods
new file mode 100644
index ..501a07765e71
Binary files /dev/null and b/sc/qa/uitest/calc_tests/data/tdf43693.ods differ
diff --git a/sc/qa/uitest/goalSeek/goalSeek.py 
b/sc/qa/uitest/goalSeek/goalSeek.py
new file mode 100644
index ..59d8b894009d
--- /dev/null
+++ b/sc/qa/uitest/goalSeek/goalSeek.py
@@ -0,0 +1,49 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+from uitest.framework import UITestCase
+from uitest.uihelper.common import get_state_as_dict
+from uitest.uihelper.common import select_pos
+from uitest.uihelper.calc import enter_text_to_cell
+from libreoffice.calc.document import get_cell_by_position
+from libreoffice.uno.propertyvalue import mkPropertyValues
+from uitest.debug import sleep
+import org.libreoffice.unotest
+import pathlib
+
+def get_url_for_data_file(file_name):
+return 
pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
+
+
+class goalSeek(UITestCase):
+def test_goalSeek(self):
+calc_doc = 
self.ui_test.load_file(get_url_for_data_file("goalSeek.ods"))
+xCalcDoc = self.xUITest.getTopFocusWindow()
+gridwin = xCalcDoc.getChild("grid_window")
+document = self.ui_test.get_component()
+gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "B4"}))
+
self.ui_test.execute_modeless_dialog_through_command(".uno:GoalSeekDialog")
+xDialog = self.xUITest.getTopFocusWindow()
+xformulaedit = xDialog.getChild("formulaedit")
+xtarget = xDialog.getChild("target")
+xvaredit = xDialog.getChild("varedit")
+xtarget.executeAction("TYPE", mkPropertyValues({"TEXT":"15000"}))
+xvaredit.executeAction("TYPE", mkPropertyValues({"TEXT":"B1"}))
+xOKBtn = xDialog.getChild("ok")
+
+def handle_OK_dlg(dialog):
+print(dialog.getChildren())
+xYesButn = dialog.getChild("yes")
+self.ui_test.close_dialog_through_button(xYesButn)
+
+self.ui_test.execute_blocking_action(xOKBtn.executeAction, 
args=('CLICK', ()),
+dialog_handler=handle_OK_dlg)
+#verify
+

[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_solver.mk

2018-06-19 Thread Zdeněk Crhonek
 sc/Module_sc.mk |1 
 sc/UITest_solver.mk |   20 +
 sc/qa/uitest/calc_tests/data/solver.ods |binary
 sc/qa/uitest/solver/solver.py   |   65 
 4 files changed, 86 insertions(+)

New commits:
commit 3c744c65270681d00a50ff2df80702d2ef338ed0
Author: Zdeněk Crhonek 
Date:   Tue Jun 19 18:12:50 2018 +0200

uitest Calc/Solver

Change-Id: I6fdef503cdae8cb681f1acfec437c5ab3e7bcc5b
Reviewed-on: https://gerrit.libreoffice.org/56121
Tested-by: Jenkins
Reviewed-by: Zdenek Crhonek 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index b85622c0cdd3..e8e1bb5b2bfb 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -189,6 +189,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_calc_tests3 \
UITest_calc_tests4 \
UITest_statistics \
+   UITest_solver \
 ))
 endif
 
diff --git a/sc/UITest_solver.mk b/sc/UITest_solver.mk
new file mode 100644
index ..2e8e6af0076e
--- /dev/null
+++ b/sc/UITest_solver.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,solver))
+
+$(eval $(call gb_UITest_add_modules,solver,$(SRCDIR)/sc/qa/uitest,\
+   solver/ \
+))
+
+$(eval $(call gb_UITest_set_defs,solver, \
+TDOC="$(SRCDIR)/sc/qa/uitest/calc_tests/data" \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/calc_tests/data/solver.ods 
b/sc/qa/uitest/calc_tests/data/solver.ods
new file mode 100644
index ..a6739664abb5
Binary files /dev/null and b/sc/qa/uitest/calc_tests/data/solver.ods differ
diff --git a/sc/qa/uitest/solver/solver.py b/sc/qa/uitest/solver/solver.py
new file mode 100644
index ..e6ca81029985
--- /dev/null
+++ b/sc/qa/uitest/solver/solver.py
@@ -0,0 +1,65 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+from uitest.framework import UITestCase
+from uitest.uihelper.common import get_state_as_dict
+from uitest.uihelper.common import select_pos
+from uitest.uihelper.calc import enter_text_to_cell
+from libreoffice.calc.document import get_cell_by_position
+from libreoffice.uno.propertyvalue import mkPropertyValues
+from uitest.debug import sleep
+# import org.libreoffice.unotest
+# import pathlib
+from uitest.path import get_srcdir_url
+def get_url_for_data_file(file_name):
+#return 
pathlib.Path(org.libreoffice.unotest.makeCopyFromTDOC(file_name)).as_uri()
+return get_srcdir_url() + "/sc/qa/uitest/calc_tests/data/" + file_name
+
+
+class solver(UITestCase):
+def test_solver(self):
+calc_doc = self.ui_test.load_file(get_url_for_data_file("solver.ods"))
+xCalcDoc = self.xUITest.getTopFocusWindow()
+gridwin = xCalcDoc.getChild("grid_window")
+document = self.ui_test.get_component()
+gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "B4"}))
+
self.ui_test.execute_modeless_dialog_through_command(".uno:SolverDialog")
+xDialog = self.xUITest.getTopFocusWindow()
+xtargetedit = xDialog.getChild("targetedit")
+xvalue = xDialog.getChild("value")
+xvalueedit = xDialog.getChild("valueedit")
+xchangeedit = xDialog.getChild("changeedit")
+xref1edit = xDialog.getChild("ref1edit")
+xval1edit = xDialog.getChild("val1edit")
+xref2edit = xDialog.getChild("ref2edit")
+xval2edit = xDialog.getChild("val2edit")
+xop2list = xDialog.getChild("op2list")
+
+xvalue.executeAction("CLICK", tuple())
+xvalueedit.executeAction("TYPE", mkPropertyValues({"TEXT":"1000"}))
+xchangeedit.executeAction("TYPE", mkPropertyValues({"TEXT":"C2"}))
+xref1edit.executeAction("TYPE", mkPropertyValues({"TEXT":"C2"}))
+xval1edit.executeAction("TYPE", mkPropertyValues({"TEXT":"C4"}))
+xref2edit.executeAction("TYPE", mkPropertyValues({"TEXT":"C4"}))
+props = {"TEXT": "=>"}
+actionProps = mkPropertyValues(props)
+xop2list.executeAction("SELECT", actionProps)
+
+xval2edit.executeAction("TYPE", mkPropertyValues({"TEXT":"0"}))
+sleep(4)
+xOKBtn = xDialog.getChild("solve")
+def handle_OK_dlg(dialog):
+#('SolverSuccessDialog', 'cancel', 'dialog-action_area1', 
'dialog-vbox1', 'grid1', 'label1', 'label2', 'ok', 'result')
+xYesButn = dialog.getChild("ok")
+self.ui_test.close_dialog_through_button(xYesButn)
+
+

[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_statistics.mk

2018-06-09 Thread Zdeněk Crhonek
 sc/Module_sc.mk |1 
 sc/UITest_statistics.mk |   20 ++
 sc/qa/uitest/statistics/sampling.py |  110 
 3 files changed, 131 insertions(+)

New commits:
commit 508175a8af0da217a4670558a2ef6b52a3f71ccb
Author: Zdeněk Crhonek 
Date:   Sat Jun 9 08:09:25 2018 +0200

uitest Calc - statistics - sampling

Change-Id: I6339cab59ea26ad624237f6bd2e001ff7e01ac51
Reviewed-on: https://gerrit.libreoffice.org/55495
Tested-by: Jenkins 
Reviewed-by: Zdenek Crhonek 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index ee30a84469e5..b85622c0cdd3 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -188,6 +188,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_calc_tests2 \
UITest_calc_tests3 \
UITest_calc_tests4 \
+   UITest_statistics \
 ))
 endif
 
diff --git a/sc/UITest_statistics.mk b/sc/UITest_statistics.mk
new file mode 100644
index ..4e668f425e94
--- /dev/null
+++ b/sc/UITest_statistics.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,statistics))
+
+$(eval $(call gb_UITest_add_modules,statistics,$(SRCDIR)/sc/qa/uitest,\
+   statistics/ \
+))
+
+$(eval $(call gb_UITest_set_defs,statistics, \
+TDOC="$(SRCDIR)/sc/qa/uitest/calc_tests/data" \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/statistics/sampling.py 
b/sc/qa/uitest/statistics/sampling.py
new file mode 100644
index ..cf084b50dde4
--- /dev/null
+++ b/sc/qa/uitest/statistics/sampling.py
@@ -0,0 +1,110 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+from uitest.framework import UITestCase
+from uitest.uihelper.common import get_state_as_dict
+from uitest.uihelper.common import select_pos
+from uitest.uihelper.calc import enter_text_to_cell
+from libreoffice.calc.document import get_sheet_from_doc
+from libreoffice.calc.conditional_format import 
get_conditional_format_from_sheet
+from uitest.debug import sleep
+from libreoffice.calc.document import get_cell_by_position
+from libreoffice.uno.propertyvalue import mkPropertyValues
+
+class sampling(UITestCase):
+def test_statistic_sampling(self):
+calc_doc = self.ui_test.create_doc_in_start_center("calc")
+xCalcDoc = self.xUITest.getTopFocusWindow()
+gridwin = xCalcDoc.getChild("grid_window")
+document = self.ui_test.get_component()
+#fill data
+enter_text_to_cell(gridwin, "A1", "11")
+enter_text_to_cell(gridwin, "A2", "12")
+enter_text_to_cell(gridwin, "A3", "13")
+enter_text_to_cell(gridwin, "A4", "14")
+enter_text_to_cell(gridwin, "A5", "15")
+enter_text_to_cell(gridwin, "A6", "16")
+enter_text_to_cell(gridwin, "A7", "17")
+enter_text_to_cell(gridwin, "A8", "18")
+enter_text_to_cell(gridwin, "A9", "19")
+
+enter_text_to_cell(gridwin, "B1", "21")
+enter_text_to_cell(gridwin, "B2", "22")
+enter_text_to_cell(gridwin, "B3", "23")
+enter_text_to_cell(gridwin, "B4", "24")
+enter_text_to_cell(gridwin, "B5", "25")
+enter_text_to_cell(gridwin, "B6", "26")
+enter_text_to_cell(gridwin, "B7", "27")
+enter_text_to_cell(gridwin, "B8", "28")
+enter_text_to_cell(gridwin, "B9", "29")
+
+enter_text_to_cell(gridwin, "C1", "31")
+enter_text_to_cell(gridwin, "C2", "32")
+enter_text_to_cell(gridwin, "C3", "33")
+enter_text_to_cell(gridwin, "C4", "34")
+enter_text_to_cell(gridwin, "C5", "35")
+enter_text_to_cell(gridwin, "C6", "36")
+enter_text_to_cell(gridwin, "C7", "37")
+enter_text_to_cell(gridwin, "C8", "38")
+enter_text_to_cell(gridwin, "C9", "39")
+gridwin.executeAction("SELECT", mkPropertyValues({"RANGE": "A1:C9"}))
+
self.ui_test.execute_modeless_dialog_through_command(".uno:SamplingDialog")
+xDialog = self.xUITest.getTopFocusWindow()
+xinputrangeedit = xDialog.getChild("input-range-edit")
+xoutputrangeedit = xDialog.getChild("output-range-edit")
+xrandommethodradio = xDialog.getChild("random-method-radio")
+xsamplesizespin = xDialog.getChild("sample-size-spin")
+xperiodicmethodradio = xDialog.getChild("periodic-method-radio")
+xperiodspin = xDialog.getChild("period-spin")
+
+xinputrangeedit.executeAction("TYPE", 
mkPropertyValues({"KEYCODE":"CTRL+A"}))
+   

[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_calc_tests2.mk sc/UITest_calc_tests3.mk sc/UITest_calc_tests4.mk

2018-06-01 Thread Miklos Vajna
 sc/Module_sc.mk  |3 +++
 sc/UITest_calc_tests2.mk |   20 
 sc/UITest_calc_tests3.mk |   20 
 sc/UITest_calc_tests4.mk |   20 
 4 files changed, 63 insertions(+)

New commits:
commit 94dcb3b1a5b38b7b35cb75b068836d78134a6b7b
Author: Miklos Vajna 
Date:   Fri Jun 1 12:46:30 2018 +0200

UITest_calc_tests: split this into 4 parts

Before: make -sr UITest_calc_tests -> 10m48.934s

After: make -sr -j4 UITest_calc_tests UITest_calc_tests2 UITest_calc_tests3 
UITest_calc_tests4 -> 5m40.113s

As a start just split based on the number of .py files in the
directories, one could improve this further by making them even more
equal based on number of lines or something.

Change-Id: I7a98a29e5d18a7600575956a7d8a0ec81e804269
Reviewed-on: https://gerrit.libreoffice.org/55174
Tested-by: Jenkins 
Reviewed-by: Miklos Vajna 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 35277496202a..ee30a84469e5 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -185,6 +185,9 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_autofilter \
UITest_search_replace \
UITest_calc_tests \
+   UITest_calc_tests2 \
+   UITest_calc_tests3 \
+   UITest_calc_tests4 \
 ))
 endif
 
diff --git a/sc/UITest_calc_tests2.mk b/sc/UITest_calc_tests2.mk
new file mode 100644
index ..509224823e94
--- /dev/null
+++ b/sc/UITest_calc_tests2.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,calc_tests2))
+
+$(eval $(call gb_UITest_add_modules,calc_tests2,$(SRCDIR)/sc/qa/uitest,\
+   calc_tests2/ \
+))
+
+$(eval $(call gb_UITest_set_defs,calc_tests2, \
+TDOC="$(SRCDIR)/sc/qa/uitest/calc_tests/data" \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/UITest_calc_tests3.mk b/sc/UITest_calc_tests3.mk
new file mode 100644
index ..957f133c7798
--- /dev/null
+++ b/sc/UITest_calc_tests3.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,calc_tests3))
+
+$(eval $(call gb_UITest_add_modules,calc_tests3,$(SRCDIR)/sc/qa/uitest,\
+   calc_tests3/ \
+))
+
+$(eval $(call gb_UITest_set_defs,calc_tests3, \
+TDOC="$(SRCDIR)/sc/qa/uitest/calc_tests/data" \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/UITest_calc_tests4.mk b/sc/UITest_calc_tests4.mk
new file mode 100644
index ..dd78440272a3
--- /dev/null
+++ b/sc/UITest_calc_tests4.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,calc_tests4))
+
+$(eval $(call gb_UITest_add_modules,calc_tests4,$(SRCDIR)/sc/qa/uitest,\
+   calc_tests4/ \
+))
+
+$(eval $(call gb_UITest_set_defs,calc_tests4, \
+TDOC="$(SRCDIR)/sc/qa/uitest/calc_tests/data" \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/calc_tests/stableSorting.py 
b/sc/qa/uitest/calc_tests2/stableSorting.py
similarity index 100%
rename from sc/qa/uitest/calc_tests/stableSorting.py
rename to sc/qa/uitest/calc_tests2/stableSorting.py
diff --git a/sc/qa/uitest/calc_tests/standardFilter.py 
b/sc/qa/uitest/calc_tests2/standardFilter.py
similarity index 100%
rename from sc/qa/uitest/calc_tests/standardFilter.py
rename to sc/qa/uitest/calc_tests2/standardFilter.py
diff --git a/sc/qa/uitest/calc_tests/subtotals.py 
b/sc/qa/uitest/calc_tests2/subtotals.py
similarity index 100%
rename from sc/qa/uitest/calc_tests/subtotals.py
rename to sc/qa/uitest/calc_tests2/subtotals.py
diff --git a/sc/qa/uitest/calc_tests/tdf104117.py 
b/sc/qa/uitest/calc_tests2/tdf104117.py
similarity index 100%
rename from sc/qa/uitest/calc_tests/tdf104117.py
rename to sc/qa/uitest/calc_tests2/tdf104117.py
diff --git a/sc/qa/uitest/calc_tests/tdf105268.py 
b/sc/qa/uitest/calc_tests2/tdf105268.py
similarity index 100%
rename from sc/qa/uitest/calc_tests/tdf105268.py
rename to sc/qa/uitest/calc_tests2/tdf105268.py
diff --git a/sc/qa/uitest/calc_tests/tdf114992.py 
b/sc/qa/uitest/calc_tests2/tdf114992.py
similarity index 100%
rename from sc/qa/uitest/calc_tests/tdf114992.py
rename to 

[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_calc_tests.mk

2018-01-27 Thread Zdeněk Crhonek
 sc/Module_sc.mk   |1 
 sc/UITest_calc_tests.mk   |   15 +
 sc/qa/uitest/calc_tests/data/tdf81351.ods |binary
 sc/qa/uitest/calc_tests/tdf81351.py   |   81 ++
 4 files changed, 97 insertions(+)

New commits:
commit 498deef48de6605193268fb8328fec1053c4ed3c
Author: Zdeněk Crhonek 
Date:   Sat Dec 30 11:03:53 2017 +0100

uitest for tdf#81351

Change-Id: Ieb9ea4d7c1ed9a65396046ea388bf9f6c3975a83
Reviewed-on: https://gerrit.libreoffice.org/47190
Tested-by: Jenkins 
Reviewed-by: Markus Mohrhard 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 9015f886187f..ca37c6413780 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -176,6 +176,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_hide_cols \
UITest_autofilter \
UITest_search_replace \
+   UITest_calc_tests \
 ))
 endif
 
diff --git a/sc/UITest_calc_tests.mk b/sc/UITest_calc_tests.mk
new file mode 100644
index ..c9a4e5c3f44b
--- /dev/null
+++ b/sc/UITest_calc_tests.mk
@@ -0,0 +1,15 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,calc_tests))
+
+$(eval $(call gb_UITest_add_modules,calc_tests,$(SRCDIR)/sc/qa/uitest,\
+   calc_tests/ \
+))
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/calc_tests/data/tdf81351.ods 
b/sc/qa/uitest/calc_tests/data/tdf81351.ods
new file mode 100644
index ..7888ce008dc9
Binary files /dev/null and b/sc/qa/uitest/calc_tests/data/tdf81351.ods differ
diff --git a/sc/qa/uitest/calc_tests/tdf81351.py 
b/sc/qa/uitest/calc_tests/tdf81351.py
new file mode 100644
index ..0886ab7b4b16
--- /dev/null
+++ b/sc/qa/uitest/calc_tests/tdf81351.py
@@ -0,0 +1,81 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+from libreoffice.uno.propertyvalue import mkPropertyValues
+
+from uitest.framework import UITestCase
+from libreoffice.calc.document import get_column
+from uitest.path import get_srcdir_url
+from libreoffice.calc.document import get_cell_by_position
+import time
+
+def get_url_for_data_file(file_name):
+return get_srcdir_url() + "/sc/qa/uitest/calc_tests/data/" + file_name
+
+class tdf81351(UITestCase):
+
+def test_tdf81351(self):
+calc_doc = 
self.ui_test.load_file(get_url_for_data_file("tdf81351.ods"))
+xTopWindow = self.xUITest.getTopFocusWindow()
+document = self.ui_test.get_component()
+gridwin = xTopWindow.getChild("grid_window")
+
+self.assertEqual(get_cell_by_position(document, 0, 0, 1).getString(), 
".uno:Paste")
+
+gridwin.executeAction("SELECT", mkPropertyValues({"RANGE": "A1:F5"}))
+
+self.xUITest.executeCommand(".uno:SortAscending")
+
+gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "B7"}))
+self.assertEqual(get_cell_by_position(document, 0, 0, 1).getString(), 
".uno:Bold")
+
+self.xUITest.executeCommand(".uno:Undo")
+self.assertEqual(get_cell_by_position(document, 0, 0, 1).getString(), 
".uno:Paste")
+
+gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "B7"}))
+
+def test_tdf81351_comment4(self):
+calc_doc = 
self.ui_test.load_file(get_url_for_data_file("tdf81351.ods"))
+xTopWindow = self.xUITest.getTopFocusWindow()
+document = self.ui_test.get_component()
+
+gridwin = xTopWindow.getChild("grid_window")
+gridwin.executeAction("SELECT", mkPropertyValues({"RANGE": "A1:F5"}))
+
+
+self.xUITest.executeCommand(".uno:SortAscending")
+self.assertEqual(get_cell_by_position(document, 0, 0, 1).getString(), 
".uno:Bold")
+
+gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "B7"}))
+
+self.xUITest.executeCommand(".uno:Undo")
+self.assertEqual(get_cell_by_position(document, 0, 0, 1).getString(), 
".uno:Paste")
+
+self.xUITest.executeCommand(".uno:Redo")
+self.assertEqual(get_cell_by_position(document, 0, 0, 1).getString(), 
".uno:Bold")
+
+def test_sort_descending(self):
+calc_doc = 
self.ui_test.load_file(get_url_for_data_file("tdf81351.ods"))
+xTopWindow = self.xUITest.getTopFocusWindow()
+document = self.ui_test.get_component()
+
+gridwin = xTopWindow.getChild("grid_window")
+gridwin.executeAction("SELECT", mkPropertyValues({"RANGE": "A1:F5"}))
+
+

[Libreoffice-commits] core.git: sc/Module_sc.mk

2017-10-20 Thread Stephan Bergmann
 sc/Module_sc.mk |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6cb20e0b298f41fe88984aebfe5454f936a0ae3a
Author: Stephan Bergmann 
Date:   Fri Oct 20 10:52:48 2017 +0200

Disable CppunitTset_sc_*_functions_test for linux_aarch64 for now, too

> Oct 20 10:21:31  erAck, when "Testing
>  
file:///run/build/libreoffice/sc/qa/unit/data/functions/array/fods/linest.fods"
>  in CppunitTest_sc_array_functions_test fails with non-informative 
expected 1
>  vs. actual 0, how can I reasonably debug that?  (and no, I don't have an 
X11
>  connection to the relevant machine, to see what opening that .fods with 
LO
>  would look like there)
> Oct 20 10:25:04  sberg: sigh.. we're still lacking an "analyze 
steps"
>  in the functions test loader, so far only loading the doc and inspecting
>  provides that; maybe getting individual cell results via UNO would work

So disable these tests for aarch64 for now too, to get Flathub builds 
unstuck,
until somebody finds a way to actually debug this.

Change-Id: I9bf30d0d7185497f9ad4b04b60b6a67f34a8c44e

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index bd5b7696e4fa..0b600f727f3f 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -69,7 +69,7 @@ $(eval $(call gb_Module_add_slowcheck_targets,sc, \
 # point weirdness (x87, registers, compiler optimization, ... whatever),
 # disable them until someone finds a real cure.
 
-ifneq ($(PLATFORMID),linux_x86)
+ifneq ($(filter-out linux_aarch64 linux_x86,$(PLATFORMID)),)
 $(eval $(call gb_Module_add_slowcheck_targets,sc, \
CppunitTest_sc_functions_test_old \
CppunitTest_sc_database_functions_test \
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk test/Library_subsequenttest.mk

2017-08-09 Thread Jens Carl
 sc/Module_sc.mk|2 
 test/Library_subsequenttest.mk |   92 -
 2 files changed, 47 insertions(+), 47 deletions(-)

New commits:
commit 6f58154e272c15f5a3cc1a8c326be451af245d54
Author: Jens Carl 
Date:   Tue Aug 8 21:30:03 2017 +

Convert spaces to tabs in some Makefiles

Change-Id: Ia65e6391cfa6a556b097555872c311bd8bcdec3f
Reviewed-on: https://gerrit.libreoffice.org/40903
Tested-by: Jenkins 
Reviewed-by: Markus Mohrhard 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 03a7565b899d..9080ec3a4433 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -48,7 +48,7 @@ $(eval $(call gb_Module_add_check_targets,sc,\
 ifneq ($(ENABLE_HEADLESS),TRUE)
 ifeq ($(OS),LINUX)
 $(eval $(call gb_Module_add_check_targets,sc,\
-CppunitTest_sc_tiledrendering \
+   CppunitTest_sc_tiledrendering \
 ))
 endif
 endif
diff --git a/test/Library_subsequenttest.mk b/test/Library_subsequenttest.mk
index f2c6af8fe34e..e1c6c3c1f064 100644
--- a/test/Library_subsequenttest.mk
+++ b/test/Library_subsequenttest.mk
@@ -10,18 +10,18 @@
 $(eval $(call gb_Library_Library,subsequenttest))
 
 $(eval $(call gb_Library_add_defs,subsequenttest,\
--DOOO_DLLIMPLEMENTATION_TEST \
+   -DOOO_DLLIMPLEMENTATION_TEST \
 ))
 
 $(eval $(call gb_Library_use_sdk_api,subsequenttest))
 
 $(eval $(call gb_Library_use_libraries,subsequenttest,\
-comphelper \
-cppu \
-cppuhelper \
+   comphelper \
+   cppu \
+   cppuhelper \
i18nlangtag \
-sal \
-test \
+   sal \
+   test \
tl \
utl \
unotest \
@@ -34,46 +34,46 @@ $(eval $(call gb_Library_use_externals,subsequenttest,\
 ))
 
 $(eval $(call gb_Library_add_exception_objects,subsequenttest,\
-test/source/unoapi_test \
-test/source/calc_unoapi_test \
-test/source/beans/xpropertyset \
-test/source/container/xelementaccess \
-test/source/container/xindexaccess \
-test/source/container/xnamecontainer \
-test/source/container/xnamereplace \
-test/source/container/xnamed \
-test/source/sheet/cellproperties \
-test/source/sheet/datapilotfield \
-test/source/sheet/xcelladdressable \
-test/source/sheet/xcellrangedata \
-test/source/sheet/xcellrangereferrer \
-test/source/sheet/xcellrangesquery \
-test/source/sheet/xcellseries \
-test/source/sheet/xgoalseek \
-test/source/sheet/xdatabaserange \
-test/source/sheet/xdatapilotdescriptor \
-test/source/sheet/xdatapilotfieldgrouping \
-test/source/sheet/xdatapilottable \
-test/source/sheet/xdatapilottable2 \
-test/source/sheet/xnamedrange \
-test/source/sheet/xnamedranges \
-test/source/sheet/xprintareas \
-test/source/sheet/xspreadsheetdocument \
-test/source/sheet/xspreadsheets \
-test/source/sheet/xspreadsheets2 \
-test/source/sheet/xsheetannotation \
-test/source/sheet/xsheetannotations \
-test/source/sheet/xsheetannotationshapesupplier \
-test/source/sheet/xsheetoutline \
-test/source/sheet/xstyleloader \
-test/source/sheet/xusedareacursor \
-test/source/sheet/xviewpane \
-test/source/sheet/xviewsplitable \
-test/source/text/xtext \
-test/source/text/xtextfield \
-test/source/text/xtextcontent \
-test/source/util/xreplaceable \
-test/source/util/xsearchable \
+   test/source/unoapi_test \
+   test/source/calc_unoapi_test \
+   test/source/beans/xpropertyset \
+   test/source/container/xelementaccess \
+   test/source/container/xindexaccess \
+   test/source/container/xnamecontainer \
+   test/source/container/xnamereplace \
+   test/source/container/xnamed \
+   test/source/sheet/cellproperties \
+   test/source/sheet/datapilotfield \
+   test/source/sheet/xcelladdressable \
+   test/source/sheet/xcellrangedata \
+   test/source/sheet/xcellrangereferrer \
+   test/source/sheet/xcellrangesquery \
+   test/source/sheet/xcellseries \
+   test/source/sheet/xgoalseek \
+   test/source/sheet/xdatabaserange \
+   test/source/sheet/xdatapilotdescriptor \
+   test/source/sheet/xdatapilotfieldgrouping \
+   test/source/sheet/xdatapilottable \
+   test/source/sheet/xdatapilottable2 \
+   test/source/sheet/xnamedrange \
+   test/source/sheet/xnamedranges \
+   test/source/sheet/xprintareas \
+   test/source/sheet/xspreadsheetdocument \
+   test/source/sheet/xspreadsheets \
+   test/source/sheet/xspreadsheets2 \
+   test/source/sheet/xsheetannotation \
+   test/source/sheet/xsheetannotations \
+   test/source/sheet/xsheetannotationshapesupplier \
+   test/source/sheet/xsheetoutline \
+   test/source/sheet/xstyleloader \
+   test/source/sheet/xusedareacursor \
+   test/source/sheet/xviewpane \
+   test/source/sheet/xviewsplitable \
+   

[Libreoffice-commits] core.git: sc/Module_sc.mk sc/PythonTest_sc_python.mk sc/qa

2017-05-29 Thread Kappanneo
 sc/Module_sc.mk   |6 +++
 sc/PythonTest_sc_python.mk|   16 
 sc/qa/complex/sc/CalcRTL.java |   37 
 sc/qa/python/CalcRTL.py   |   76 ++
 4 files changed, 98 insertions(+), 37 deletions(-)

New commits:
commit a87d79a1fae8af3fafdbc1b6d5e0f3adc454d4bf
Author: Kappanneo 
Date:   Mon May 29 12:23:21 2017 +0200

tdf#97362 CalcRTL unittest partially migarted to python (CalcRTL.py)

java checkSpreadsheetProperties to python testSpreadsheetProperties

Change-Id: Ifd342d3f47aef8a64a0421b6bb7f2a643bdc6da8
Reviewed-on: https://gerrit.libreoffice.org/38159
Tested-by: Jenkins 
Reviewed-by: Miklos Vajna 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 4ab8f50489e7..d0968d9ecad0 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -126,6 +126,12 @@ $(eval $(call gb_Module_add_perfcheck_targets,sc,\
CppunitTest_sc_tablesheetobj \
 ))
 
+ifneq ($(DISABLE_PYTHON),TRUE)
+$(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
+   PythonTest_sc_python \
+))
+endif
+
 # screenshots
 $(eval $(call gb_Module_add_screenshot_targets,sc,\
CppunitTest_sc_screenshots \
diff --git a/sc/PythonTest_sc_python.mk b/sc/PythonTest_sc_python.mk
new file mode 100644
index ..55d992565d98
--- /dev/null
+++ b/sc/PythonTest_sc_python.mk
@@ -0,0 +1,16 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_PythonTest_PythonTest,sc_python))
+
+$(eval $(call gb_PythonTest_add_modules,sc_python,$(SRCDIR)/sc/qa/python,\
+   CalcRTL \
+))
+
+# vim: set noet sw=4 ts=4:
\ No newline at end of file
diff --git a/sc/qa/complex/sc/CalcRTL.java b/sc/qa/complex/sc/CalcRTL.java
index 57529e6d709f..7bb1ec405b7f 100644
--- a/sc/qa/complex/sc/CalcRTL.java
+++ b/sc/qa/complex/sc/CalcRTL.java
@@ -66,43 +66,6 @@ public class CalcRTL
  */
 
 /*
- * In this method a spreadsheet document is opened
- * afterwards all properties of the Spreadsheet are checked.
- * 
- * These are
- * 
- * IsVisible
- * PageStyle
- * TableLayout
- *
- */
-@Test public void checkSpreadsheetProperties() {
-assertTrue("Couldn't open document", openSpreadsheetDocument());
-
-XPropertySet set =  UnoRuntime.queryInterface(
-   XPropertySet.class, getSpreadsheet());
-
-// Make sure there are at least 2 sheets, otherwise hiding a sheet 
won't work
-xSheetDoc.getSheets().insertNewByName("Some Sheet", (short)0);
-
-assertTrue("Problems when setting property 'IsVisible'",
-   changeProperty(set, "IsVisible", Boolean.FALSE));
-assertTrue("Problems when setting property 'IsVisible'",
-   changeProperty(set, "IsVisible", Boolean.TRUE));
-assertTrue("Problems when setting property 'PageStyle'",
-   changeProperty(set, "PageStyle", "Report"));
-assertTrue("Problems when setting property 'PageStyle'",
-   changeProperty(set, "PageStyle", "Default"));
-assertTrue("Problems when setting property 'TableLayout'",
-   changeProperty(set, "TableLayout",
-  
Short.valueOf(com.sun.star.text.WritingMode2.RL_TB)));
-assertTrue("Problems when setting property 'TableLayout'",
-   changeProperty(set, "TableLayout",
-  
Short.valueOf(com.sun.star.text.WritingMode2.LR_TB)));
-assertTrue("Couldn't close document", closeSpreadsheetDocument());
-}
-
-/*
  * In this method a spreadsheet document is opened and a shape inserted
  * afterwards all calc specific properties of the Shape are checked.
  * 
diff --git a/sc/qa/python/CalcRTL.py b/sc/qa/python/CalcRTL.py
new file mode 100644
index ..065cc596eabf
--- /dev/null
+++ b/sc/qa/python/CalcRTL.py
@@ -0,0 +1,76 @@
+'''
+  This is file is part of the LibreOffice project.
+
+  This Source Code Form is subject to the terms of the Mozilla Public
+  License, v. 2.0. If a copy of the MPL was not distributed with this
+  file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+  This file incorporates work covered by the following license notice:
+
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed
+with this work for additional information regarding copyright
+ownership. The ASF licenses this file to you under the Apache
+License, Version 2.0 (the "License"); you may not use this file
+except in compliance with the License. 

[Libreoffice-commits] core.git: sc/Module_sc.mk sd/Module_sd.mk sw/Module_sw.mk

2017-05-02 Thread Markus Mohrhard
 sc/Module_sc.mk |2 ++
 sd/Module_sd.mk |2 ++
 sw/Module_sw.mk |2 ++
 3 files changed, 6 insertions(+)

New commits:
commit d9ee61f0adda79ef0886fdf487b5ec01e8e7
Author: Markus Mohrhard 
Date:   Tue May 2 19:57:53 2017 +0200

disable the tiledrendering tests in the headless build mode

This was pointed out by the Random Config tb.

Change-Id: I8a4f70d6661178f2671e4e3588f5873c64885c07
Reviewed-on: https://gerrit.libreoffice.org/37175
Tested-by: Jenkins 
Reviewed-by: Markus Mohrhard 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index ef82147d781b..4ab8f50489e7 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -44,11 +44,13 @@ $(eval $(call gb_Module_add_check_targets,sc,\
CppunitTest_sc_core \
 ))
 
+ifneq ($(ENABLE_HEADLESS),TRUE)
 ifeq ($(OS),LINUX)
 $(eval $(call gb_Module_add_check_targets,sc,\
 CppunitTest_sc_tiledrendering \
 ))
 endif
+endif
 
 $(eval $(call gb_Module_add_slowcheck_targets,sc, \
CppunitTest_sc_condformats \
diff --git a/sd/Module_sd.mk b/sd/Module_sd.mk
index 62bfd8988778..dde16d7c4c40 100644
--- a/sd/Module_sd.mk
+++ b/sd/Module_sd.mk
@@ -39,12 +39,14 @@ $(eval $(call gb_Module_add_check_targets,sd,\
 ))
 endif
 
+ifneq ($(ENABLE_HEADLESS),TRUE)
 ifeq ($(OS),LINUX)
 $(eval $(call gb_Module_add_check_targets,sd,\
 CppunitTest_sd_svg_export_tests \
 CppunitTest_sd_tiledrendering \
 ))
 endif
+endif
 
 # screenshots
 $(eval $(call gb_Module_add_screenshot_targets,sd, \
diff --git a/sw/Module_sw.mk b/sw/Module_sw.mk
index 8ef8a26fcf04..a003ae57c454 100644
--- a/sw/Module_sw.mk
+++ b/sw/Module_sw.mk
@@ -79,11 +79,13 @@ $(eval $(call gb_Module_add_slowcheck_targets,sw,\
 CppunitTest_sw_globalfilter \
 ))
 
+ifneq ($(ENABLE_HEADLESS),TRUE)
 ifeq ($(OS),LINUX)
 $(eval $(call gb_Module_add_slowcheck_targets,sw,\
 CppunitTest_sw_tiledrendering \
 ))
 endif
+endif
 
 ifneq ($(DISABLE_CVE_TESTS),TRUE)
 $(eval $(call gb_Module_add_slowcheck_targets,sw,\
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_search_replace.mk

2017-04-08 Thread Markus Mohrhard
 sc/Module_sc.mk|1 
 sc/UITest_search_replace.mk|   15 +
 sc/qa/uitest/search_replace/data/tdf106194.ods |binary
 sc/qa/uitest/search_replace/replace.py |   68 +
 4 files changed, 84 insertions(+)

New commits:
commit 0bc1e8104719b1ed9f8271f9dde407f10fb88df0
Author: Markus Mohrhard 
Date:   Sat Apr 8 22:23:54 2017 +0200

add test for tdf#106194

Change-Id: I63ae36e0e218e7e40ed28024d91b0d7a9654e965
Reviewed-on: https://gerrit.libreoffice.org/36305
Reviewed-by: Markus Mohrhard 
Tested-by: Markus Mohrhard 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 4659f55ebfeb..312cbce4daa8 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -142,6 +142,7 @@ $(eval $(call gb_Module_add_uicheck_targets,sc,\
UITest_range_name \
UITest_hide_cols \
UITest_autofilter \
+   UITest_search_replace \
 ))
 
 # vim: set noet sw=4 ts=4:
diff --git a/sc/UITest_search_replace.mk b/sc/UITest_search_replace.mk
new file mode 100644
index ..6888b3018c2f
--- /dev/null
+++ b/sc/UITest_search_replace.mk
@@ -0,0 +1,15 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,search_replace))
+
+$(eval $(call gb_UITest_add_modules,search_replace,$(SRCDIR)/sc/qa/uitest,\
+   search_replace/ \
+))
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/search_replace/data/tdf106194.ods 
b/sc/qa/uitest/search_replace/data/tdf106194.ods
new file mode 100644
index ..acc4199f3a49
Binary files /dev/null and b/sc/qa/uitest/search_replace/data/tdf106194.ods 
differ
diff --git a/sc/qa/uitest/search_replace/replace.py 
b/sc/qa/uitest/search_replace/replace.py
new file mode 100644
index ..ae28348be22f
--- /dev/null
+++ b/sc/qa/uitest/search_replace/replace.py
@@ -0,0 +1,68 @@
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+from uitest.framework import UITestCase
+from uitest.path import get_srcdir_url
+
+from libreoffice.uno.propertyvalue import mkPropertyValues
+from libreoffice.calc.document import get_row
+
+from uitest.uihelper.common import get_state_as_dict
+
+import time
+
+def get_url_for_data_file(file_name):
+return get_srcdir_url() + "/sc/qa/uitest/search_replace/data/" + file_name
+
+class ReplaceTest(UITestCase):
+
+def test_tdf106194(self):
+doc = self.ui_test.load_file(get_url_for_data_file("tdf106194.ods"))
+
+xGridWin = self.xUITest.getTopFocusWindow().getChild("grid_window")
+
+
self.ui_test.execute_modeless_dialog_through_command(".uno:SearchDialog")
+
+xSearchDlg = self.xUITest.getTopFocusWindow()
+
+xSearchTerm = xSearchDlg.getChild("searchterm")
+xSearchTerm.executeAction("TYPE", mkPropertyValues({"TEXT": "1"}))
+xReplaceTerm = xSearchDlg.getChild("replaceterm")
+xReplaceTerm.executeAction("TYPE", mkPropertyValues({"TEXT": "2"}))
+
+xSearchBtn = xSearchDlg.getChild("search")
+xSearchBtn.executeAction("CLICK", tuple())
+
+self.assertEqual(get_state_as_dict(xGridWin)["CurrentRow"], "1")
+lastTopVisibleRow = int(get_state_as_dict(xGridWin)["TopVisibleRow"])
+
+# start replacing
+xReplaceBtn = xSearchDlg.getChild("replace")
+xReplaceBtn.executeAction("CLICK", tuple())
+
+# check position and visible range
+self.assertEqual(get_state_as_dict(xGridWin)["CurrentRow"], "199")
+currentTopVisibleRow = 
int(get_state_as_dict(xGridWin)["TopVisibleRow"])
+self.assertGreater(currentTopVisibleRow, lastTopVisibleRow)
+
+lastTopVisibleRow = currentTopVisibleRow
+
+# replace again
+xReplaceBtn.executeAction("CLICK", tuple())
+
+# check position and visible range
+self.assertEqual(get_state_as_dict(xGridWin)["CurrentRow"], "499")
+currentTopVisibleRow = 
int(get_state_as_dict(xGridWin)["TopVisibleRow"])
+self.assertGreater(currentTopVisibleRow, lastTopVisibleRow)
+
+xReplaceBtn.executeAction("CLICK", tuple())
+
+xCloseBtn = xSearchDlg.getChild("close")
+
+self.ui_test.close_dialog_through_button(xCloseBtn)
+
+self.ui_test.close_doc()
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org

[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa sc/UITest_conditional_format.mk uitest/calc_tests

2017-02-27 Thread Markus Mohrhard
 sc/Module_sc.mk  |4 +
 sc/UITest_conditional_format.mk  |   15 
 sc/qa/uitest/conditional_format/tdf105411.py |   35 ++
 sc/qa/uitest/conditional_format/tdf105466.py |   31 +
 sc/qa/uitest/conditional_format/tdf96453.py  |   89 +++
 uitest/calc_tests/tdf105411.py   |   35 --
 uitest/calc_tests/tdf105466.py   |   31 -
 uitest/calc_tests/tdf96453.py|   89 ---
 8 files changed, 174 insertions(+), 155 deletions(-)

New commits:
commit c873f8d75a2a4bc28a13553755c6d38b0e026e11
Author: Markus Mohrhard 
Date:   Sun Feb 19 23:56:13 2017 +0100

uitest: move all the conditional format tests into an own test

Change-Id: I5673341b05c8352bc1d46f1483c265ccdc6a1cc5
Reviewed-on: https://gerrit.libreoffice.org/34667
Tested-by: Jenkins 
Reviewed-by: Markus Mohrhard 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 0ff41df..274e3e5 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -137,4 +137,8 @@ $(eval $(call gb_Module_add_screenshot_targets,sc,\
CppunitTest_sc_screenshots \
 ))
 
+$(eval $(call gb_Module_add_uicheck_targets,sc,\
+   UITest_conditional_format \
+))
+
 # vim: set noet sw=4 ts=4:
diff --git a/sc/UITest_conditional_format.mk b/sc/UITest_conditional_format.mk
new file mode 100644
index 000..4bc05b0
--- /dev/null
+++ b/sc/UITest_conditional_format.mk
@@ -0,0 +1,15 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UITest_UITest,conditional_format))
+
+$(eval $(call gb_UITest_add_modules,conditional_format,$(SRCDIR)/sc/qa/uitest,\
+   conditional_format/ \
+))
+# vim: set noet sw=4 ts=4:
diff --git a/sc/qa/uitest/__init__.py b/sc/qa/uitest/__init__.py
new file mode 100644
index 000..e69de29
diff --git a/sc/qa/uitest/conditional_format/__init__.py 
b/sc/qa/uitest/conditional_format/__init__.py
new file mode 100644
index 000..e69de29
diff --git a/uitest/calc_tests/tdf105411.py 
b/sc/qa/uitest/conditional_format/tdf105411.py
similarity index 100%
rename from uitest/calc_tests/tdf105411.py
rename to sc/qa/uitest/conditional_format/tdf105411.py
diff --git a/uitest/calc_tests/tdf105466.py 
b/sc/qa/uitest/conditional_format/tdf105466.py
similarity index 100%
rename from uitest/calc_tests/tdf105466.py
rename to sc/qa/uitest/conditional_format/tdf105466.py
diff --git a/uitest/calc_tests/tdf96453.py 
b/sc/qa/uitest/conditional_format/tdf96453.py
similarity index 100%
rename from uitest/calc_tests/tdf96453.py
rename to sc/qa/uitest/conditional_format/tdf96453.py
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk

2016-12-24 Thread Markus Mohrhard
 sc/Module_sc.mk |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b44628b1e88f8b4fdecb928ed3d0dbd17e3b1841
Author: Markus Mohrhard 
Date:   Thu Dec 22 21:05:41 2016 +0100

move the OpenCL test to subsequentcheck

Based on ESC discussion around stability of tests.

Change-Id: I1c6d84c91c1f85435771013b028cb3aa65a347fc
Reviewed-on: https://gerrit.libreoffice.org/32408
Reviewed-by: Markus Mohrhard 
Tested-by: Markus Mohrhard 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index cd5c045..0ff41df 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -64,7 +64,6 @@ $(eval $(call gb_Module_add_slowcheck_targets,sc, \
CppunitTest_sc_subsequent_filters_test \
CppunitTest_sc_subsequent_export_test \
CppunitTest_sc_html_export_test \
-   CppunitTest_sc_opencl_test \
CppunitTest_sc_copypaste \
 ))
 
@@ -101,6 +100,7 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
JunitTest_sc_unoapi_5 \
JunitTest_sc_unoapi_6 \
JunitTest_sc_unoapi_7 \
+   CppunitTest_sc_opencl_test \
CppunitTest_sc_anchor_test \
CppunitTest_sc_annotationshapeobj \
CppunitTest_sc_outlineobj \
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk

2016-09-14 Thread Eike Rathke
 sc/Module_sc.mk |9 +
 1 file changed, 9 insertions(+)

New commits:
commit b9a27d5856f60688456762bfcc29c38670009254
Author: Eike Rathke 
Date:   Wed Sep 14 12:56:31 2016 +0200

sc: disable function test documents for 32-bit PLATFORMID=linux_x86

Change-Id: I18ee46abbb5de79a35c4c78292dc9d6d43017de2
Reviewed-on: https://gerrit.libreoffice.org/28893
Reviewed-by: Eike Rathke 
Tested-by: Eike Rathke 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 05af307..642c6b8 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -64,8 +64,17 @@ $(eval $(call gb_Module_add_slowcheck_targets,sc, \
CppunitTest_sc_html_export_test \
CppunitTest_sc_opencl_test \
CppunitTest_sc_copypaste \
+))
+
+# Various function tests fail in 32-bit linux_x86 build due to dreaded floating
+# point weirdness (x87, registers, compiler optimization, ... whatever),
+# disable them until someone finds a real cure.
+
+ifneq ($(PLATFORMID),linux_x86)
+$(eval $(call gb_Module_add_slowcheck_targets,sc, \
CppunitTest_sc_functions_test \
 ))
+endif
 
 # Disabled to allow the check tinderbox execute the sd tests
 # CppunitTest_sc_chart_regression_test \
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa

2016-07-01 Thread Miklos Vajna
 sc/Module_sc.mk  |7 ++-
 sc/qa/unit/tiledrendering/tiledrendering.cxx |   15 ---
 2 files changed, 6 insertions(+), 16 deletions(-)

New commits:
commit 8e3451c096987e6fc7eaca409fd45a62e13ae4c5
Author: Miklos Vajna 
Date:   Fri Jul 1 12:00:44 2016 +0200

CppunitTest_sc_tiledrendering: replace ifdefs with a single makefile 
condition

Change-Id: I1dded11e0572dee7cd917a1aa8c2e2ca53b81d84
Reviewed-on: https://gerrit.libreoffice.org/26849
Reviewed-by: Miklos Vajna 
Tested-by: Jenkins 

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 0f6b29f..9c331bb 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -47,9 +47,14 @@ $(eval $(call gb_Module_add_check_targets,sc,\
CppunitTest_sc_rangelst_test \
CppunitTest_sc_mark_test \
CppunitTest_sc_core \
-   CppunitTest_sc_tiledrendering \
 ))
 
+ifeq ($(OS),LINUX)
+$(eval $(call gb_Module_add_check_targets,sc,\
+CppunitTest_sc_tiledrendering \
+))
+endif
+
 $(eval $(call gb_Module_add_slowcheck_targets,sc, \
CppunitTest_sc_condformats \
CppunitTest_sc_new_cond_format_api \
diff --git a/sc/qa/unit/tiledrendering/tiledrendering.cxx 
b/sc/qa/unit/tiledrendering/tiledrendering.cxx
index 9ae9f01..24bbbce 100644
--- a/sc/qa/unit/tiledrendering/tiledrendering.cxx
+++ b/sc/qa/unit/tiledrendering/tiledrendering.cxx
@@ -36,9 +36,7 @@
 
 using namespace css;
 
-#if !defined(WNT) && !defined(MACOSX)
 static const char* DATA_DIRECTORY = "/sc/qa/unit/tiledrendering/data/";
-#endif
 
 class ScTiledRenderingTest : public test::BootstrapFixture, public 
unotest::MacrosTest, public XmlTestTools
 {
@@ -47,44 +45,34 @@ public:
 virtual void setUp() SAL_OVERRIDE;
 virtual void tearDown() SAL_OVERRIDE;
 
-#if !defined(WNT) && !defined(MACOSX)
 void testRowColumnSelections();
 void testSortAscendingDescending();
 void testPartHash();
 void testDocumentSize();
 void testEmptyColumnSelection();
-#endif
 
 CPPUNIT_TEST_SUITE(ScTiledRenderingTest);
-#if !defined(WNT) && !defined(MACOSX)
 CPPUNIT_TEST(testRowColumnSelections);
 CPPUNIT_TEST(testSortAscendingDescending);
 CPPUNIT_TEST(testPartHash);
 CPPUNIT_TEST(testDocumentSize);
 CPPUNIT_TEST(testEmptyColumnSelection);
-#endif
 CPPUNIT_TEST_SUITE_END();
 
 private:
-#if !defined(WNT) && !defined(MACOSX)
 ScModelObj* createDoc(const char* pName);
 static void callback(int nType, const char* pPayload, void* pData);
 void callbackImpl(int nType, const char* pPayload);
 
 /// document size changed callback.
 osl::Condition m_aDocSizeCondition;
-#endif
 
 uno::Reference mxComponent;
-#if !defined(WNT) && !defined(MACOSX)
 // TODO various test-related members - when needed
-#endif
 };
 
 ScTiledRenderingTest::ScTiledRenderingTest()
-#if !defined(WNT) && !defined(MACOSX)
 // TODO various test-related members - when needed
-#endif
 {
 }
 
@@ -103,7 +91,6 @@ void ScTiledRenderingTest::tearDown()
 test::BootstrapFixture::tearDown();
 }
 
-#if !defined(WNT) && !defined(MACOSX)
 ScModelObj* ScTiledRenderingTest::createDoc(const char* pName)
 {
 if (mxComponent.is())
@@ -360,8 +347,6 @@ void ScTiledRenderingTest::testEmptyColumnSelection()
 comphelper::LibreOfficeKit::setActive(false);
 }
 
-#endif
-
 CPPUNIT_TEST_SUITE_REGISTRATION(ScTiledRenderingTest);
 
 CPPUNIT_PLUGIN_IMPLEMENT();
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk

2015-11-10 Thread Rene Engelhard
 sc/Module_sc.mk |8 ++--
 1 file changed, 2 insertions(+), 6 deletions(-)

New commits:
commit 6849dfca92506a112a89f1839b268a3a119be50b
Author: Rene Engelhard 
Date:   Thu Nov 5 22:47:21 2015 +0100

make Library_scqahelper a check target so it's not built on make build

Change-Id: I6e7fcfd7e8819601ffe6ddac447ef9cf72fe13e6

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 21794b9..02f41e1 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -22,12 +22,6 @@ $(eval $(call gb_Module_add_l10n_targets,sc,\
UIConfig_scalc \
 ))
 
-ifneq (,$(filter DESKTOP,$(BUILD_TYPE)))
-$(eval $(call gb_Module_add_targets,sc,\
-   Library_scqahelper \
-))
-endif
-
 ifeq ($(ENABLE_TELEPATHY),TRUE)
 
 $(eval $(call gb_Module_add_targets,sc,\
@@ -45,6 +39,8 @@ $(eval $(call gb_Module_add_targets,sc,\
 endif
 
 $(eval $(call gb_Module_add_check_targets,sc,\
+   $(if $(filter $(BUILD_TYPE),$(DESKTOP)),, \
+   Library_scqahelper) \
$(if $(and $(filter $(COM),MSC),$(MERGELIBS)),, \
CppunitTest_sc_ucalc) \
 CppunitTest_sc_filters_test \
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk sd/Module_sd.mk sw/Module_sw.mk

2015-02-21 Thread Matúš Kukan
 sc/Module_sc.mk |3 ++-
 sd/Module_sd.mk |3 ++-
 sw/Module_sw.mk |3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)

New commits:
commit 3ff9136efebf8c09dd5af530d5060f976f8dc3e6
Author: Matúš Kukan matus.ku...@gmail.com
Date:   Sat Feb 21 17:51:51 2015 +0100

Disable more tests with _use_library_objects for mergelibs

Change-Id: Iad803091864fb1a1a974df7c8eea6dba566d186c

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 63541d2..83a9742 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -45,7 +45,8 @@ $(eval $(call gb_Module_add_targets,sc,\
 endif
 
 $(eval $(call gb_Module_add_check_targets,sc,\
-CppunitTest_sc_ucalc \
+   $(if $(and $(filter $(COM),MSC),$(MERGELIBS)),, \
+   CppunitTest_sc_ucalc) \
 CppunitTest_sc_filters_test \
 CppunitTest_sc_rangelst_test \
 ))
diff --git a/sd/Module_sd.mk b/sd/Module_sd.mk
index 93aba69..0c2d577 100644
--- a/sd/Module_sd.mk
+++ b/sd/Module_sd.mk
@@ -27,7 +27,8 @@ $(eval $(call gb_Module_add_l10n_targets,sd,\
 
 ifneq ($(OS),DRAGONFLY)
 $(eval $(call gb_Module_add_check_targets,sd,\
-CppunitTest_sd_uimpress \
+   $(if $(and $(filter $(COM),MSC),$(MERGELIBS)),, \
+   CppunitTest_sd_uimpress) \
 CppunitTest_sd_import_tests \
 CppunitTest_sd_export_tests \
 CppunitTest_sd_filters_test \
diff --git a/sw/Module_sw.mk b/sw/Module_sw.mk
index 5476010..d15c5b5 100644
--- a/sw/Module_sw.mk
+++ b/sw/Module_sw.mk
@@ -49,7 +49,8 @@ $(eval $(call gb_Module_add_targets,sw,\
 endif
 
 $(eval $(call gb_Module_add_slowcheck_targets,sw,\
-CppunitTest_sw_uwriter \
+   $(if $(and $(filter $(COM),MSC),$(MERGELIBS)),, \
+   CppunitTest_sw_uwriter) \
 CppunitTest_sw_htmlexport \
 CppunitTest_sw_htmlimport \
 CppunitTest_sw_macros_test \
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk sc/Package_Files.mk sc/util

2014-11-18 Thread Tor Lillqvist
 sc/Module_sc.mk|1 +
 sc/Package_Files.mk|   16 
 sc/util/testopencl.xls |binary
 3 files changed, 17 insertions(+)

New commits:
commit 9c2cf556a6ba532ad26a3b4d96e42f9f2b5e00ac
Author: Tor Lillqvist t...@collabora.com
Date:   Tue Nov 18 21:02:41 2014 +0200

Add a spreadsheet to test OpenCL implementation on user request

Loading this spreadsheet and verifying that the end result in A1 is PASS
will be bound to the 'Test' button on the calculation details dialog.

Actually, I wonder whether it might be saner to just populate a spreadsheet
programmatically instead of having a (not huge, but still large) test file
bundled in the installation? We could make it so that the generated document
stays open and is usable normally, so that if necessary (for instance for
comparison with other spreadsheet applications) it can be saved.

Change-Id: Idea972cd0f598643e35314576f593047d49378c6

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 9385dc5..a7609a8 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -15,6 +15,7 @@ $(eval $(call gb_Module_add_targets,sc,\
Library_scd \
Library_scfilt \
$(call gb_Helper_optional,DESKTOP,Library_scui) \
+   Package_Files \
 ))
 
 $(eval $(call gb_Module_add_l10n_targets,sc,\
diff --git a/sc/Package_Files.mk b/sc/Package_Files.mk
new file mode 100644
index 000..d40e375
--- /dev/null
+++ b/sc/Package_Files.mk
@@ -0,0 +1,16 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Package_Package,sc_Files,$(SRCDIR)/sc/util))
+
+$(eval $(call 
gb_Package_add_files_with_dir,sc_Files,$(LIBO_SHARE_FOLDER)/scalc,\
+   testopencl.xls \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/sc/util/testopencl.xls b/sc/util/testopencl.xls
new file mode 100644
index 000..e13179f
Binary files /dev/null and b/sc/util/testopencl.xls differ
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk test/source

2014-11-12 Thread Laurent Godard
 sc/Module_sc.mk   |4 
 test/source/util/xreplaceable.cxx |4 
 2 files changed, 8 insertions(+)

New commits:
commit e65790ddcf90ee243bf74f8f906c7b12a7fda901
Author: Laurent Godard lgodard.li...@laposte.net
Date:   Tue Nov 4 12:36:46 2014 +0100

perfcheck instrument existing test : replaceAll

Change-Id: I7766aa6d69810124b27763912c3e7a8399637280
Reviewed-on: https://gerrit.libreoffice.org/12243
Reviewed-by: Matúš Kukan matus.ku...@collabora.com
Tested-by: Matúš Kukan matus.ku...@collabora.com

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 56f02da..3f57318 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -84,4 +84,8 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
 CppunitTest_sc_modelobj \
 ))
 
+$(eval $(call gb_Module_add_perfcheck_targets,sc,\
+   CppunitTest_sc_tablesheetobj \
+))
+
 # vim: set noet sw=4 ts=4:
diff --git a/test/source/util/xreplaceable.cxx 
b/test/source/util/xreplaceable.cxx
index 42a3110..598a7dd 100644
--- a/test/source/util/xreplaceable.cxx
+++ b/test/source/util/xreplaceable.cxx
@@ -16,6 +16,8 @@
 
 #include iostream
 
+#include test/callgrind.hxx
+
 using namespace css;
 using namespace css::uno;
 
@@ -50,7 +52,9 @@ void XReplaceable::testReplaceAll()
 xReplaceDescr-setSearchString(maSearchString);
 xReplaceDescr-setReplaceString(maReplaceString);
 
+callgrindStart();
 xReplaceable-replaceAll(uno::Reference util::XSearchDescriptor 
(xReplaceDescr, UNO_QUERY_THROW));
+callgrindDump(replaceAll);
 
 //check that now at least one element is found
 xElement = xReplaceable-findFirst(xSearchDescr);
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk

2014-04-25 Thread Miklos Vajna
 sc/Module_sc.mk |7 +++
 1 file changed, 7 insertions(+)

New commits:
commit 00c19e5def4a62445c85786aef6a507bee6c45fa
Author: Miklos Vajna vmik...@collabora.co.uk
Date:   Fri Apr 25 08:57:58 2014 +0200

sc: add back lost scopencl

Probably removed by accident in
96475ada3fcf026ae7833824a056b642c1bd1864. Fixes:

/master/solenv/gbuild/Package.mk:35: *** gb_Deliver_deliver: file does
not exist in instdir, and cannot be delivered:
/master/instdir/program/libscopencllo.so.  Stop.

Change-Id: Iaee25ac7b21c0f1d5c4ee9eba3b34cff5e65843c

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 278701c..fae40f5 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -22,6 +22,12 @@ $(eval $(call gb_Module_add_l10n_targets,sc,\
UIConfig_scalc \
 ))
 
+ifneq (,$(ENABLE_OPENCL))
+$(eval $(call gb_Module_add_targets,sc,\
+   Library_scopencl \
+))
+endif
+
 ifneq (,$(filter DESKTOP,$(BUILD_TYPE)))
 $(eval $(call gb_Module_add_targets,sc,\
Library_scqahelper \
@@ -53,6 +59,7 @@ $(eval $(call gb_Module_add_check_targets,sc,\
 $(eval $(call gb_Module_add_slowcheck_targets,sc, \
 CppunitTest_sc_subsequent_filters_test \
 CppunitTest_sc_subsequent_export_test \
+CppunitTest_sc_opencl_test \
 ))
 
 # Disabled to allow the check tinderbox execute the sd tests
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk sc/source sd/Module_sd.mk sd/source sw/Module_sw.mk sw/source

2014-02-19 Thread Matúš Kukan
 sc/Module_sc.mk|2 +-
 sc/source/ui/attrdlg/scabstdlg.cxx |   11 +++
 sd/Module_sd.mk|2 +-
 sd/source/ui/dlg/sdabstdlg.cxx |   11 +++
 sw/Module_sw.mk|5 ++---
 sw/source/ui/dialog/swabstdlg.cxx  |   11 +++
 6 files changed, 25 insertions(+), 17 deletions(-)

New commits:
commit 9ad3fc29dd98167c35fcb599da0b4e764ddf04dd
Author: Matúš Kukan matus.ku...@collabora.com
Date:   Wed Feb 19 12:21:12 2014 +0100

Avoid app specific CreateDialogFactory code for non-DESKTOP.

As happened in 7e9ac5952711400ad856b3328c5cc00c05cec6f2 for cui library.

Change-Id: If51201eb452d4b84729b37949fb9b949020b47b8

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 094290a..fae40f5 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -14,7 +14,7 @@ $(eval $(call gb_Module_add_targets,sc,\
Library_sc \
Library_scd \
Library_scfilt \
-   Library_scui \
+   $(call gb_Helper_optional,DESKTOP,Library_scui) \
 ))
 
 $(eval $(call gb_Module_add_l10n_targets,sc,\
diff --git a/sc/source/ui/attrdlg/scabstdlg.cxx 
b/sc/source/ui/attrdlg/scabstdlg.cxx
index 10be258..88768ed 100644
--- a/sc/source/ui/attrdlg/scabstdlg.cxx
+++ b/sc/source/ui/attrdlg/scabstdlg.cxx
@@ -17,6 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
+#include config_features.h
 
 #include scabstdlg.hxx
 
@@ -38,8 +39,9 @@ extern C ScAbstractDialogFactory* ScCreateDialogFactory();
 
 ScAbstractDialogFactory* ScAbstractDialogFactory::Create()
 {
-#ifndef DISABLE_DYNLOADING
 ScFuncPtrCreateDialogFactory fp = 0;
+#if HAVE_FEATURE_DESKTOP
+#ifndef DISABLE_DYNLOADING
 static ::osl::Module aDialogLibrary;
 
 OUStringBuffer aStrBuf;
@@ -49,12 +51,13 @@ ScAbstractDialogFactory* ScAbstractDialogFactory::Create()
  
SAL_LOADMODULE_GLOBAL | SAL_LOADMODULE_LAZY ) )
 fp = ( ScAbstractDialogFactory* (SAL_CALL*)() )
 aDialogLibrary.getFunctionSymbol( OUString(CreateDialogFactory) 
);
+#else
+fp = ScCreateDialogFactory();
+#endif
+#endif
 if ( fp )
 return fp();
 return 0;
-#else
-return ScCreateDialogFactory();
-#endif
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sd/Module_sd.mk b/sd/Module_sd.mk
index 3321279..63a345e 100644
--- a/sd/Module_sd.mk
+++ b/sd/Module_sd.mk
@@ -13,7 +13,7 @@ $(eval $(call gb_Module_add_targets,sd,\
 Library_sd \
 Library_sdd \
 Library_sdfilt \
-Library_sdui \
+$(call gb_Helper_optional,DESKTOP,Library_sdui) \
 Package_opengl \
 Package_web \
 Package_xml \
diff --git a/sd/source/ui/dlg/sdabstdlg.cxx b/sd/source/ui/dlg/sdabstdlg.cxx
index b62eea7..34b737a 100644
--- a/sd/source/ui/dlg/sdabstdlg.cxx
+++ b/sd/source/ui/dlg/sdabstdlg.cxx
@@ -17,6 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
+#include config_features.h
 
 #include sdabstdlg.hxx
 
@@ -38,19 +39,21 @@ extern C SdAbstractDialogFactory* SdCreateDialogFactory();
 
 SdAbstractDialogFactory* SdAbstractDialogFactory::Create()
 {
-#ifndef DISABLE_DYNLOADING
 SdFuncPtrCreateDialogFactory fp = 0;
+#if HAVE_FEATURE_DESKTOP
+#ifndef DISABLE_DYNLOADING
 static ::osl::Module aDialogLibrary;
 static const OUString sLibName(::vcl::unohelper::CreateLibraryName(sdui, 
sal_True));
 if ( aDialogLibrary.is() || aDialogLibrary.loadRelative( thisModule, 
sLibName ) )
 fp = ( SdAbstractDialogFactory* (SAL_CALL*)() )
 aDialogLibrary.getFunctionSymbol( CreateDialogFactory );
+#else
+fp = SdCreateDialogFactory();
+#endif
+#endif
 if ( fp )
 return fp();
 return 0;
-#else
-return SdCreateDialogFactory();
-#endif
 }
 
 
diff --git a/sw/Module_sw.mk b/sw/Module_sw.mk
index d5d3f44..804cea2 100644
--- a/sw/Module_sw.mk
+++ b/sw/Module_sw.mk
@@ -20,12 +20,11 @@
 $(eval $(call gb_Module_Module,sw))
 
 $(eval $(call gb_Module_add_targets,sw,\
-   $(if $(filter DESKTOP,$(BUILD_TYPE)), \
-   Executable_tiledrendering) \
+   $(call gb_Helper_optional,DESKTOP,Executable_tiledrendering) \
Library_msword \
Library_sw \
Library_swd \
-   Library_swui \
+   $(call gb_Helper_optional,DESKTOP,Library_swui) \
 ))
 
 $(eval $(call gb_Module_add_l10n_targets,sw,\
diff --git a/sw/source/ui/dialog/swabstdlg.cxx 
b/sw/source/ui/dialog/swabstdlg.cxx
index 64da0e3..db26ac1 100644
--- a/sw/source/ui/dialog/swabstdlg.cxx
+++ b/sw/source/ui/dialog/swabstdlg.cxx
@@ -17,6 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
+#include config_features.h
 
 #include swabstdlg.hxx
 
@@ -37,20 +38,22 @@ extern C SwAbstractDialogFactory* SwCreateDialogFactory();
 
 SwAbstractDialogFactory* SwAbstractDialogFactory::Create()
 {
-#ifndef DISABLE_DYNLOADING
 SwFuncPtrCreateDialogFactory fp = 0;
+#if HAVE_FEATURE_DESKTOP
+#ifndef 

[Libreoffice-commits] core.git: sc/Module_sc.mk

2013-12-30 Thread Kohei Yoshida
 sc/Module_sc.mk |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2d283f2ef291fff5c27fdc55874aaacc94a9453c
Author: Kohei Yoshida kohei.yosh...@collabora.com
Date:   Mon Dec 30 17:58:00 2013 -0500

Move this opencl test to slowcheck. It's too slow.

Change-Id: I0386f03c1893fed82bdf7df11dbea93bbad05dd2

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 6730163..094290a 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -54,12 +54,12 @@ $(eval $(call gb_Module_add_check_targets,sc,\
 CppunitTest_sc_ucalc \
 CppunitTest_sc_filters_test \
 CppunitTest_sc_rangelst_test \
-   CppunitTest_sc_opencl_test \
 ))
 
 $(eval $(call gb_Module_add_slowcheck_targets,sc, \
 CppunitTest_sc_subsequent_filters_test \
 CppunitTest_sc_subsequent_export_test \
+CppunitTest_sc_opencl_test \
 ))
 
 # Disabled to allow the check tinderbox execute the sd tests
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk

2013-11-17 Thread Markus Mohrhard
 sc/Module_sc.mk |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b3b2dc1b132517ed1310e11be39c4b2a65476e87
Author: Markus Mohrhard markus.mohrh...@googlemail.com
Date:   Sun Nov 17 18:58:55 2013 +0100

fix build

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 7f0515a..0476d62 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -59,7 +59,7 @@ $(eval $(call gb_Module_add_check_targets,sc,\
 CppunitTest_sc_ucalc \
 CppunitTest_sc_filters_test \
 CppunitTest_sc_rangelst_test \
-   CppunitTest_sc_opencl_test) \
+   CppunitTest_sc_opencl_test \
 ))
 
 $(eval $(call gb_Module_add_slowcheck_targets,sc, \
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk

2013-11-17 Thread Tor Lillqvist
 sc/Module_sc.mk |5 -
 1 file changed, 5 deletions(-)

New commits:
commit 935f1f61cbe112b1cf1ab95bae9dfcb42b4fdb5e
Author: Tor Lillqvist t...@collabora.com
Date:   Mon Nov 18 09:20:44 2013 +0200

Remove now incorrect comment

Change-Id: I4cd9f8a0720218e416c88b3064b69406b7a1eda4

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 0476d62..cc974a0 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -50,11 +50,6 @@ $(eval $(call gb_Module_add_targets,sc,\
 
 endif
 
-# The sc_opencl_test disabled for other OSes than OS X at the moment
-# because it fails on many Linux machines in the OpenCL compiler. OS X
-# has a different (?) OpenCL compiler implementation than the one
-# which fails.
-#
 $(eval $(call gb_Module_add_check_targets,sc,\
 CppunitTest_sc_ucalc \
 CppunitTest_sc_filters_test \
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk

2013-11-13 Thread Kohei Yoshida
 sc/Module_sc.mk |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 17cf61482a5560b82730b65552ebc770c0a2fd81
Author: Kohei Yoshida kohei.yosh...@collabora.com
Date:   Wed Nov 13 18:01:31 2013 -0500

Let's not comment out the whole unit test target.

Change-Id: I1629e75bfc6a528a4cbeaf296e73937b0c18a81c

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index c4a38ee..9e34521 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -49,7 +49,7 @@ endif
 
 # Disabled because fails on too many machines in
 # the OpenCL compiler
-# CppunitTest_sc_opencl_test \
+# CppunitTest_sc_opencl_test
 $(eval $(call gb_Module_add_check_targets,sc,\
 CppunitTest_sc_ucalc \
 CppunitTest_sc_filters_test \
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk

2013-11-11 Thread Markus Mohrhard
 sc/Module_sc.mk |4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit d584d08c733f75c741befc915f8d9a7afededdfd
Author: Markus Mohrhard markus.mohrh...@googlemail.com
Date:   Tue Nov 12 01:19:26 2013 +0100

disable OpenCL test

The test crashes on some machines and hangs on others in the OpenCL
compiler. Until this test is either more reliable or we have a way to
blacklist known bad compilers we need to disable this test.

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 2ca7ad2..c4a38ee 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -47,11 +47,13 @@ $(eval $(call gb_Module_add_targets,sc,\
 
 endif
 
+# Disabled because fails on too many machines in
+# the OpenCL compiler
+# CppunitTest_sc_opencl_test \
 $(eval $(call gb_Module_add_check_targets,sc,\
 CppunitTest_sc_ucalc \
 CppunitTest_sc_filters_test \
 CppunitTest_sc_rangelst_test \
-CppunitTest_sc_opencl_test \
 ))
 
 $(eval $(call gb_Module_add_slowcheck_targets,sc, \
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk

2013-07-16 Thread Luboš Luňák
 sc/Module_sc.mk |7 ++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit b4eac50a7ef85661703b8848ef19198313453f45
Author: Luboš Luňák l.lu...@suse.cz
Date:   Tue Jul 16 14:15:17 2013 +0200

try to avoid build breakage with cppunit on android

Broken by eef53622798e2e2f81f28ee5e1c82de0d48c149c , and I've had enough
of tinderbox mails during the last week.

Change-Id: Iab0fe0363e8ca3212eb673ae1da9492140140bc3

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 29e53e9..35f1fc1 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -16,10 +16,15 @@ $(eval $(call gb_Module_add_targets,sc,\
Library_scd \
Library_scfilt \
Library_scui \
-   Library_scqahelper \
UIConfig_scalc \
 ))
 
+ifneq (,$(filter DESKTOP,$(BUILD_TYPE)))
+$(eval $(call gb_Module_add_targets,sc,\
+   Library_scqahelper \
+))
+endif
+
 ifeq ($(ENABLE_TELEPATHY),TRUE)
 
 $(eval $(call gb_Module_add_targets,sc,\
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk

2013-06-27 Thread Kohei Yoshida
 sc/Module_sc.mk |2 ++
 1 file changed, 2 insertions(+)

New commits:
commit e33844c30991488a3283787dadc2cd036d2679b9
Author: Kohei Yoshida kohei.yosh...@gmail.com
Date:   Thu Jun 27 20:11:14 2013 -0400

These test were removed by accident.

Change-Id: I11ec1972c714b867f3b1be71a45b8e3d65cce656

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 74888f0..0b3970f 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -37,6 +37,8 @@ endif
 
 $(eval $(call gb_Module_add_check_targets,sc,\
 CppunitTest_sc_ucalc \
+CppunitTest_sc_filters_test \
+CppunitTest_sc_rangelst_test \
 ))
 
 $(eval $(call gb_Module_add_slowcheck_targets,sc, \
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sc/Module_sc.mk

2013-03-10 Thread Korrawit Pruegsanusak
 sc/Module_sc.mk |   17 +
 1 file changed, 17 insertions(+)

New commits:
commit 9fd65685560b4fb8dcd4c05f5ff53c64db831f61
Author: Korrawit Pruegsanusak detective.conan.1...@gmail.com
Date:   Sun Mar 10 15:19:50 2013 +0700

Add back subsequencecheck targets accidentally removed ...

... in c95e3fb64695cedfa40bfe5472879ee8a692d73f

Change-Id: I89b34ae414b8c02d4f015e52047a232fefda2d4b
Reviewed-on: https://gerrit.libreoffice.org/2630
Reviewed-by: Matúš Kukan matus.ku...@gmail.com
Tested-by: Matúš Kukan matus.ku...@gmail.com

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index b4cfcb5..4a4fc41 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -59,7 +59,24 @@ $(eval $(call gb_Module_add_slowcheck_targets,sc, \
 # CppunitTest_sc_annotationshapeobj \
 
 $(eval $(call gb_Module_add_subsequentcheck_targets,sc,\
+JunitTest_sc_complex \
+JunitTest_sc_unoapi \
+CppunitTest_sc_outlineobj \
+CppunitTest_sc_annotationobj \
+CppunitTest_sc_annotationsobj \
+CppunitTest_sc_cellrangeobj \
+$(if $(filter-out $(OS),IOS), \
+   CppunitTest_sc_databaserangeobj) \
+CppunitTest_sc_datapilottableobj \
+CppunitTest_sc_datapilotfieldobj \
 CppunitTest_sc_macros_test \
+CppunitTest_sc_namedrangeobj \
+CppunitTest_sc_namedrangesobj \
+CppunitTest_sc_tablesheetobj \
+CppunitTest_sc_tablesheetsobj \
+CppunitTest_sc_editfieldobj_cell \
+CppunitTest_sc_editfieldobj_header \
+CppunitTest_sc_modelobj \
 ))
 
 # vim: set noet sw=4 ts=4:
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits