summaryrefslogtreecommitdiff
path: root/uitest/calc_tests
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-05-05 12:37:34 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-06-18 17:02:08 +0200
commitb45794e92162c2d298ddc8a3ebefe3be52180ca8 (patch)
tree043eac02f72061de3d698af0f3317eea9748e76c /uitest/calc_tests
parent0d4dcf380033902fe4eb70425138e419fb711271 (diff)
uitest: add close_doc calls to all calc tests
Change-Id: I49285cd47adf40569f5adb07aacb45a544cd7dc3
Diffstat (limited to 'uitest/calc_tests')
-rw-r--r--uitest/calc_tests/create_range_name.py2
-rw-r--r--uitest/calc_tests/function_wizard.py2
-rw-r--r--uitest/calc_tests/gridwindow.py8
3 files changed, 12 insertions, 0 deletions
diff --git a/uitest/calc_tests/create_range_name.py b/uitest/calc_tests/create_range_name.py
index 898014f56306..a2726a37db90 100644
--- a/uitest/calc_tests/create_range_name.py
+++ b/uitest/calc_tests/create_range_name.py
@@ -67,4 +67,6 @@ def create_local_range_name(xContext):
xAddBtn = xAddNameDlg.getChild("add")
xAddBtn.executeAction("CLICK", tuple())
+ ui_test.close_doc()
+
# vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/uitest/calc_tests/function_wizard.py b/uitest/calc_tests/function_wizard.py
index 6d8aa327b44d..1aadbe5e716d 100644
--- a/uitest/calc_tests/function_wizard.py
+++ b/uitest/calc_tests/function_wizard.py
@@ -39,4 +39,6 @@ def open_function_wizard(xContext):
xCancelBtn = xFunctionDlg.getChild("cancel")
xCancelBtn.executeAction("CLICK", tuple())
+ ui_test.close_doc()
+
# vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/uitest/calc_tests/gridwindow.py b/uitest/calc_tests/gridwindow.py
index 0b53088eeeb0..ae5c9ce3408a 100644
--- a/uitest/calc_tests/gridwindow.py
+++ b/uitest/calc_tests/gridwindow.py
@@ -35,6 +35,8 @@ def select_cell(xContext):
selectProps = mkPropertyValues({"CELL": "B10"})
xGridWindow.executeAction("SELECT", selectProps)
+ ui_test.close_doc()
+
def select_range(xContext):
xUITest = xContext.ServiceManager.createInstanceWithContext(
"org.libreoffice.uitest.UITest", xContext)
@@ -49,6 +51,8 @@ def select_range(xContext):
selectProps = mkPropertyValues({"RANGE": "B10:C20"})
xGridWindow.executeAction("SELECT", selectProps)
+ ui_test.close_doc()
+
def extend_range(xContext):
xUITest = xContext.ServiceManager.createInstanceWithContext(
"org.libreoffice.uitest.UITest", xContext)
@@ -66,6 +70,8 @@ def extend_range(xContext):
select2Props = mkPropertyValues({"RANGE": "D3:F5", "EXTEND": "true"})
xGridWindow.executeAction("SELECT", select2Props)
+ ui_test.close_doc()
+
def input(xContext):
xUITest = xContext.ServiceManager.createInstanceWithContext(
"org.libreoffice.uitest.UITest", xContext)
@@ -84,4 +90,6 @@ def input(xContext):
typeProps = mkPropertyValues({"TEXT": "=2"})
xGridWindow.executeAction("TYPE", typeProps)
+ ui_test.close_doc()
+
# vim:set shiftwidth=4 softtabstop=4 expandtab: */