summaryrefslogtreecommitdiff
path: root/testautomation/math/optional
diff options
context:
space:
mode:
authorJoerg Skottke <jsk@openoffice.org>2009-10-30 09:37:27 +0100
committerJoerg Skottke <jsk@openoffice.org>2009-10-30 09:37:27 +0100
commit1f638015c723fbfbbd525abb43b30436badb5e57 (patch)
tree786dfaa4b683e0b8e9e3900108898ada17956a9d /testautomation/math/optional
parenta8e868b46132f6e585d2cc23381a70c669be030d (diff)
#i106287# - Replaced update test for printing in math module
Diffstat (limited to 'testautomation/math/optional')
-rwxr-xr-xtestautomation/math/optional/includes/m_101_.inc21
1 files changed, 13 insertions, 8 deletions
diff --git a/testautomation/math/optional/includes/m_101_.inc b/testautomation/math/optional/includes/m_101_.inc
index 98b72b99b734..4139e688f1f5 100755
--- a/testautomation/math/optional/includes/m_101_.inc
+++ b/testautomation/math/optional/includes/m_101_.inc
@@ -550,20 +550,25 @@ testcase tFilePrint
'/// print file ///'
try
Fileprint
- sleep 2
kontext
if active.exists(2) then
active.ok
qaerrorlog "There is no printer available - please install one on your system!"
- sleep 2
- Kontext "DruckenDlg"
- DruckenDlg.cancel
+ Kontext "Printing"
+ if ( Printing.exists( 2 ) ) then
+ Printing.cancel
+ else
+ warnlog( "Printing dialog did not open" )
+ endif
else
- sleep 2
- Kontext "DruckenDlg"
- DruckenDlg.Ok
+ Kontext "Printing"
+ if ( Printing.exists( 2 ) ) then
+ Printing.ok
+ else
+ warnlog( "Printing dialog did not open" )
+ endif
endif
- sleep 2
+
kontext
if active.exists(2) then
active.ok