summaryrefslogtreecommitdiff
path: root/testautomation/framework/optional/includes/basic_modulehide.inc
diff options
context:
space:
mode:
authorJoerg Skottke [jsk] <jsk@openoffice.org>2010-04-30 01:52:18 +0200
committerJoerg Skottke [jsk] <jsk@openoffice.org>2010-04-30 01:52:18 +0200
commite4f34dff000d5e020f0d93280fcb01687f5f4b54 (patch)
treeb55fc841975ed327b8576340ed3fc5635f39af92 /testautomation/framework/optional/includes/basic_modulehide.inc
parent5d057b1ca732b3fbde8902de22b3ab979dc9d409 (diff)
vitomation01: #i111247 - Fix f_basic_modules.bas, remove invalid qaerrorlogs etc.
Diffstat (limited to 'testautomation/framework/optional/includes/basic_modulehide.inc')
-rwxr-xr-xtestautomation/framework/optional/includes/basic_modulehide.inc53
1 files changed, 28 insertions, 25 deletions
diff --git a/testautomation/framework/optional/includes/basic_modulehide.inc b/testautomation/framework/optional/includes/basic_modulehide.inc
index 7702f14fdfb7..8423c67e6b67 100755
--- a/testautomation/framework/optional/includes/basic_modulehide.inc
+++ b/testautomation/framework/optional/includes/basic_modulehide.inc
@@ -54,42 +54,45 @@ testcase tBasicIdeModuleHide
ToolsMacro_uno
hCreateModuleForDoc()
+ printlog( "Insert macro" )
if ( hInsertMacroFromFile( TESTMACRO ) > ERR_NO_LINES_INSERTED ) then
printlog( CFN & "Macro has been written successfully" )
else
warnlog( CFN & "Failed to insert macro" )
endif
+ printlog( "Hide the module" )
+ if ( hHideModule() ) then
- if ( hHideModule() <> RC_SUCCESS ) then
- warnlog( "Some unexpected error occurred while trying to hide the module" )
- endif
-
- ' hTestMacro is expected to fail, so we jump to the catch statement
- if ( hInsertMacroFromFile( TESTMACRO ) > ERR_NO_LINES_INSERTED ) then
- warnlog( "For some reason the original module is still visible" )
- else
- warnlog( "There should not be any editingwindow visible" )
- endif
-
- if ( hOpenBasicObjectOrganizer( TAB_MODULES ) ) then
-
- modulliste.typekeys( "<END><RIGHT><DOWN><RIGHT><DOWN>" )
- if ( hClickButton( Bearbeiten ) = RC_TIMEOUT ) then
- warnlog( "#i35097# Crash when editing last module" )
- goto endsub
+ ' hTestMacro is expected to fail, so we jump to the catch statement
+ if ( hInsertMacroFromFile( TESTMACRO ) <> ERR_NO_LINES_INSERTED ) then
+ warnlog( "For some reason the original module is still visible" )
+ else
+ printlog( "The edit window is not accessible, good" )
endif
-
- if ( not hBasicIDERunMacro( TESTMACRO ) ) then
- warnlog( "Incorrect macro executed/macro missing" )
+
+ if ( hOpenBasicObjectOrganizer( TAB_MODULES ) ) then
+
+ modulliste.typekeys( "<END><RIGHT><DOWN><RIGHT><DOWN>" )
+ if ( hClickButton( Bearbeiten ) = RC_TIMEOUT ) then
+ warnlog( "#i35097# Crash when editing last module" )
+ goto endsub
+ endif
+
+ if ( not hBasicIDERunMacro( TESTMACRO ) ) then
+ warnlog( "Incorrect macro executed/macro missing" )
+ endif
+
+ hCloseBasicIDE()
+ hFileCloseAll()
+
+ else
+ warnlog( "restarting the office to recover from errors" )
+ call exitRestartTheOffice()
endif
- hCloseBasicIDE()
- hFileCloseAll()
-
else
- warnlog( "restarting the office to recover from errors" )
- call exitRestartTheOffice()
+ warnlog( "Some unexpected error occurred while trying to hide the module" )
endif
endcase