summaryrefslogtreecommitdiff
path: root/testautomation
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2009-04-24 13:34:45 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2009-04-24 13:34:45 +0000
commit1c9b51a62a16e7625515d824a071eddb9a6e0385 (patch)
tree363d193f7b05731909c7df578c84abd4d129d2c7 /testautomation
parentc4a5e50129ceca1d122baa0516781c0dca07f697 (diff)
CWS-TOOLING: integrate CWS automation310g_DEV300
2009-04-21 13:35:54 +0200 tbo r271033 : #i101044# 2009-04-21 13:04:14 +0200 jsk r271031 : #i101240# sMakeReadOnlyDocumentEditable()-fix
Diffstat (limited to 'testautomation')
-rw-r--r--testautomation/global/tools/closeoffice.bas4
-rwxr-xr-xtestautomation/global/tools/includes/required/t_doc2.inc2
-rwxr-xr-xtestautomation/global/tools/resetoffice.bas8
3 files changed, 2 insertions, 12 deletions
diff --git a/testautomation/global/tools/closeoffice.bas b/testautomation/global/tools/closeoffice.bas
index 43b0f5e5c147..c746a40a0d68 100644
--- a/testautomation/global/tools/closeoffice.bas
+++ b/testautomation/global/tools/closeoffice.bas
@@ -41,10 +41,6 @@ sub main
try
printlog ResetApplication
FileExit "SynchronMode", TRUE
- kontext
- if active.exists(5) then
- active.no 'discard changes
- endif
catch
endcatch
wait (gOOoShutdownTimeOut * 1000)
diff --git a/testautomation/global/tools/includes/required/t_doc2.inc b/testautomation/global/tools/includes/required/t_doc2.inc
index 522c78240660..77d791f9f47d 100755
--- a/testautomation/global/tools/includes/required/t_doc2.inc
+++ b/testautomation/global/tools/includes/required/t_doc2.inc
@@ -140,6 +140,8 @@ function sMakeReadOnlyDocumentEditable() as boolean
for iTry = 1 to 2
+ sleep( 2 )
+
Kontext "Active"
if ( Active.exists( 5 ) ) then
diff --git a/testautomation/global/tools/resetoffice.bas b/testautomation/global/tools/resetoffice.bas
index 724668741c53..5f4dec84abba 100755
--- a/testautomation/global/tools/resetoffice.bas
+++ b/testautomation/global/tools/resetoffice.bas
@@ -48,14 +48,6 @@ sub main
' to prevent messages about communication errors
printlog ResetApplication
FileExit "SynchronMode", TRUE
- try
- ' It is no error, if this fails - so it gets its own try/catch
- kontext
- if active.exists(5) then
- active.no 'discard changes
- endif
- catch
- endcatch
catch
warnlog sString + "Failed to close OOo."
endcatch