diff options
author | Joerg Skottke [jsk] <jsk@openoffice.org> | 2010-03-01 13:50:24 +0100 |
---|---|---|
committer | Joerg Skottke [jsk] <jsk@openoffice.org> | 2010-03-01 13:50:24 +0100 |
commit | 2d58371a77300c8dc80fb8cc0e7b851b7eebc0de (patch) | |
tree | bdc98d163a8068c6a4473d085e3fca3ecc252431 /testautomation/global/system | |
parent | 39098a579bf6a7af2f50d0765006d91197c3ed16 (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-x | testautomation/global/system/includes/master.inc | 18 |
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 '------------------------------------------------------------------------- |