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

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Mon Jul 12 10:54:54 UTC 2021


 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 <xiscofauli at libreoffice.org>
AuthorDate: Fri Jul 9 15:20:00 2021 +0200
Commit:     Xisco Fauli <xiscofauli at libreoffice.org>
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 <xiscofauli at libreoffice.org>
    Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>

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 000000000000..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


More information about the Libreoffice-commits mailing list