diff options
author | Joerg Skottke [jsk] <jsk@openoffice.org> | 2010-04-12 11:07:58 +0200 |
---|---|---|
committer | Joerg Skottke [jsk] <jsk@openoffice.org> | 2010-04-12 11:07:58 +0200 |
commit | 546dc2e09a52946937d642077cb948f92822506c (patch) | |
tree | 56345d02adc299690a5ba8234168350157ccd391 /testautomation/framework/optional/includes/basic_modulehide.inc | |
parent | 2992b6fb5b1c84da46598ccfcd17afa53dfe9c69 (diff) |
vitomation01: #i109562 - Code cleanup, use parameters where possible
Diffstat (limited to 'testautomation/framework/optional/includes/basic_modulehide.inc')
-rwxr-xr-x | testautomation/framework/optional/includes/basic_modulehide.inc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/testautomation/framework/optional/includes/basic_modulehide.inc b/testautomation/framework/optional/includes/basic_modulehide.inc index 88ab89227869..fb2ef75b31f5 100755 --- a/testautomation/framework/optional/includes/basic_modulehide.inc +++ b/testautomation/framework/optional/includes/basic_modulehide.inc @@ -35,6 +35,7 @@ testcase tBasicIdeModuleHide const CFN = "tBasicIdeModuleHide::" + const RAISE_MESSAGEBOX = 1 dim rc as integer dim brc as boolean @@ -46,7 +47,7 @@ testcase tBasicIdeModuleHide ToolsMacro_uno hCreateModuleForDoc() - brc = hInsertMacro( 1 ) + brc = hInsertMacro( RAISE_MESSAGEBOX ) if ( brc ) then printlog( CFN & "Macro has been written successfully" ) else @@ -60,7 +61,7 @@ testcase tBasicIdeModuleHide try ' hTestMacro is expected to fail, so we jump to the catch statement - rc = hTestMacro( 1 ) + rc = hTestMacro( RAISE_MESSAGEBOX ) if ( rc = 0 ) then warnlog( "For some reason the original module is still visible" ) else @@ -80,7 +81,7 @@ testcase tBasicIdeModuleHide endcatch - rc = hTestMacro( 1 ) + rc = hTestMacro( RAISE_MESSAGEBOX ) if ( rc = 1 ) then printlog( " * the correct macro-module is open. Good." ) else |