summaryrefslogtreecommitdiff
path: root/testautomation/global/system
diff options
context:
space:
mode:
authorJoerg Skottke [jsk] <jsk@openoffice.org>2010-03-01 13:50:24 +0100
committerJoerg Skottke [jsk] <jsk@openoffice.org>2010-03-01 13:50:24 +0100
commit2d58371a77300c8dc80fb8cc0e7b851b7eebc0de (patch)
treebdc98d163a8068c6a4473d085e3fca3ecc252431 /testautomation/global/system
parent39098a579bf6a7af2f50d0765006d91197c3ed16 (diff)
vitomation01: #i109562 - Use hFileCloseAll() to close multiple windows in a row (was explicitly coded and copied multiple times). Medium risk change, might have to revert
Diffstat (limited to 'testautomation/global/system')
-rwxr-xr-xtestautomation/global/system/includes/master.inc18
1 files changed, 5 insertions, 13 deletions
diff --git a/testautomation/global/system/includes/master.inc b/testautomation/global/system/includes/master.inc
index 718a7cf066cc..5e87e0ccbf43 100755
--- a/testautomation/global/system/includes/master.inc
+++ b/testautomation/global/system/includes/master.inc
@@ -568,11 +568,11 @@ sub ExitRestartTheOffice (optional sProfPath as String, optional sProfParameter
catch
endcatch
'Disable Quickstarter internaly
- hDisableQuickstarterAPI
+ hDisableQuickstarterAPI
+
' Recover to backingwindow, until resetApplication can handle this
- for i = 1 to getDocumentCount
- hCloseDocument()
- next i
+ hFileCloseAll()
+
end sub
'-------------------------------------------------------------------------
@@ -706,15 +706,7 @@ sub PleaseRecover (sWhat as String)
Kontext
' Recover to backingwindow, until resetApplication can handle this
- a = getDocumentCount
- for i = 1 to a
- qaErrorLog "Needed to close window: (" + i + "/"+a+") on " + sWhat
- hCloseDocument()
- next i
- a = getDocumentCount
- if a > 0 then
- warnlog "Failed to close window; There are still open: " + a
- endif
+ hFileCloseAll()
end sub
'-------------------------------------------------------------------------