diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-05-05 12:44:06 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-06-18 17:02:09 +0200 |
commit | 350ab43d02d83621eb2d5091ca194676084e019b (patch) | |
tree | 68d3c65df1b2b7824269ee797a9f06295f43754e /uitest | |
parent | b45794e92162c2d298ddc8a3ebefe3be52180ca8 (diff) |
uitest: add close_doc to the demos
Change-Id: I4329d4b574e442e7bd30a2a5b4dab3f97a6d6403
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/demo_ui/checkbox.py | 2 | ||||
-rw-r--r-- | uitest/demo_ui/combobox.py | 2 | ||||
-rw-r--r-- | uitest/demo_ui/edit.py | 1 | ||||
-rw-r--r-- | uitest/demo_ui/listbox.py | 4 | ||||
-rw-r--r-- | uitest/demo_ui/tabdialog.py | 5 |
5 files changed, 10 insertions, 4 deletions
diff --git a/uitest/demo_ui/checkbox.py b/uitest/demo_ui/checkbox.py index b85565251951..8a8bf08ee1da 100644 --- a/uitest/demo_ui/checkbox.py +++ b/uitest/demo_ui/checkbox.py @@ -34,4 +34,6 @@ def toggle_checkbox(xContext): xNegativeNumRedCB = xCellsDlg.getChild("negnumred") xNegativeNumRedCB.executeAction("CLICK",tuple()) + ui_test.close_doc() + # vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/uitest/demo_ui/combobox.py b/uitest/demo_ui/combobox.py index 8cb7ac8a96fa..ba917bbbab12 100644 --- a/uitest/demo_ui/combobox.py +++ b/uitest/demo_ui/combobox.py @@ -25,4 +25,6 @@ def select_entry_pos(xContext): actionProps = mkPropertyValues(props) scopeCB.executeAction("SELECT", actionProps) + ui_test.close_doc() + # vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/uitest/demo_ui/edit.py b/uitest/demo_ui/edit.py index dab55c52a7a0..2b44f202cbfa 100644 --- a/uitest/demo_ui/edit.py +++ b/uitest/demo_ui/edit.py @@ -43,5 +43,4 @@ def type_text(xContext): ui_test.close_doc() - # vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/uitest/demo_ui/listbox.py b/uitest/demo_ui/listbox.py index 41c6e4d2191b..21b19d40ce7f 100644 --- a/uitest/demo_ui/listbox.py +++ b/uitest/demo_ui/listbox.py @@ -25,6 +25,8 @@ def select_entry_pos(xContext): actionProps = mkPropertyValues(props) categoryLB.executeAction("SELECT", actionProps) + ui_test.close_doc() + def select_entry_text(xContext): xUITest = xContext.ServiceManager.createInstanceWithContext( "org.libreoffice.uitest.UITest", xContext) @@ -42,4 +44,6 @@ def select_entry_text(xContext): actionProps = mkPropertyValues(props) categoryLB.executeAction("SELECT", actionProps) + ui_test.close_doc() + # vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/uitest/demo_ui/tabdialog.py b/uitest/demo_ui/tabdialog.py index ef62bf917493..9a6f720244c0 100644 --- a/uitest/demo_ui/tabdialog.py +++ b/uitest/demo_ui/tabdialog.py @@ -26,7 +26,7 @@ def select_tab_page_pos(xContext): propsUNO = mkPropertyValues(props) xCellsDlg.executeAction("SELECT", propsUNO) - time.sleep(20) + ui_test.close_doc() def select_tab_page_name(xContext): xUITest = xContext.ServiceManager.createInstanceWithContext( @@ -43,7 +43,6 @@ def select_tab_page_name(xContext): propsUNO = mkPropertyValues(props) xCellsDlg.executeAction("SELECT", propsUNO) - time.sleep(20) - + ui_test.close_doc() # vim:set shiftwidth=4 softtabstop=4 expandtab: */ |