summaryrefslogtreecommitdiff
path: root/uitest/calc_tests
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-03-28 20:57:36 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-06-18 17:01:46 +0200
commitb35be797f53b388a0d95d6c8db27e683343bcea2 (patch)
treeee870119d0c84effefed5e4fc3b9149e7cc01451 /uitest/calc_tests
parent52bac0169009a5f28cca7b8c6d85dc2775893908 (diff)
uitest: add demo creating a local range name
Change-Id: Ieb908e58b9ab4daed7d03279fbc66ddea2435cb3
Diffstat (limited to 'uitest/calc_tests')
-rw-r--r--uitest/calc_tests/create_range_name.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/uitest/calc_tests/create_range_name.py b/uitest/calc_tests/create_range_name.py
index 901975396ad3..590078887339 100644
--- a/uitest/calc_tests/create_range_name.py
+++ b/uitest/calc_tests/create_range_name.py
@@ -39,4 +39,30 @@ def create_range_name(xContext):
xAddBtn = xAddNameDlg.getChild("add")
xAddBtn.executeAction("CLICK", tuple())
+def create_local_range_name(xContext):
+ xUITest = xContext.ServiceManager.createInstanceWithContext(
+ "org.libreoffice.uitest.UITest", xContext)
+
+ ui_test = UITest(xUITest, xContext)
+
+ ui_test.create_doc_in_start_center("calc")
+
+ ui_test.execute_modeless_dialog_through_command(".uno:AddName")
+
+ xAddNameDlg = xUITest.getTopFocusWindow()
+
+ props = {"TEXT": "simpleRangeName"}
+ actionProps = mkPropertyValues(props)
+
+ xEdit = xAddNameDlg.getChild("edit")
+ xEdit.executeAction("TYPE", actionProps)
+
+ xScope = xAddNameDlg.getChild("scope")
+ props = {"POS": "1"}
+ scopeProps = mkPropertyValues(props)
+ xScope.executeAction("SELECT", scopeProps)
+
+ xAddBtn = xAddNameDlg.getChild("add")
+ xAddBtn.executeAction("CLICK", tuple())
+
# vim:set shiftwidth=4 softtabstop=4 expandtab: */