summaryrefslogtreecommitdiff
path: root/testautomation/framework/optional/includes/basic_documents.inc
diff options
context:
space:
mode:
authorJoerg Skottke [jsk] <jsk@openoffice.org>2010-05-10 16:20:34 +0200
committerJoerg Skottke [jsk] <jsk@openoffice.org>2010-05-10 16:20:34 +0200
commite3fa835e49b602a7c12819e26beebbe951b2bd28 (patch)
treec2f5a41e539c66ca2b43418d4f025311d85897ff /testautomation/framework/optional/includes/basic_documents.inc
parent973873e8ba146da7a0beaec84c0b1648b49a0e51 (diff)
vitomation01: #i109562 - Removed undeclared identifier brc and irc
Diffstat (limited to 'testautomation/framework/optional/includes/basic_documents.inc')
-rwxr-xr-xtestautomation/framework/optional/includes/basic_documents.inc15
1 files changed, 8 insertions, 7 deletions
diff --git a/testautomation/framework/optional/includes/basic_documents.inc b/testautomation/framework/optional/includes/basic_documents.inc
index f83e961cac57..13dd3567716a 100755
--- a/testautomation/framework/optional/includes/basic_documents.inc
+++ b/testautomation/framework/optional/includes/basic_documents.inc
@@ -139,8 +139,8 @@ testcase tBasicDocuments
hFileCloseAll()
printlog( "Cleanup: Remove workfiles" )
- brc = hDeleteFile( sFileWriter )
- brc = hDeleteFile( sFileCalc )
+ hDeleteFile( sFileWriter )
+ hDeleteFile( sFileCalc )
printlog( "Rest macro security level" )
hSetMacroSecurityAPI( GC_MACRO_SECURITY_LEVEL_DEFAULT )
@@ -152,17 +152,19 @@ endcase
function hTestLibraryListBox( cNodeList() ) as boolean
const CFN = "hTestLibraryListBox::"
+ const EXACT_MATCH = 1
dim iEntry as integer
dim cEntry as string
- dim brc as boolean : brc = true
dim irc as integer
+
+ hTestLibraryListBox() = true
if ( bibliothek.getItemCount() <> IDOCS ) then
warnlog( CFN & "Incorrect number of items in listbox" )
printlog( CFN & "Expected: " & bibliothek.getItemCount() )
printlog( CFN & "Found...: " & listcount( cNodeList() ) )
- brc = false
+ hTestLibraryListBox() = false
endif
for iEntry = 3 to IDOCS
@@ -170,11 +172,10 @@ function hTestLibraryListBox( cNodeList() ) as boolean
Bibliothek.select( iEntry )
cEntry = Bibliothek.getSelText()
- irc = hCompareSubStrings( cNodeList( iEntry ) , cEntry )
- if ( irc <> 1 ) then
+ if ( hCompareSubStrings( cNodeList( iEntry ) , cEntry ) <> EXACT_MATCH ) then
warnlog( CFN & "Comparision failed" )
printlog( CFN & "Expected: " & cNodeList( iEntry ) & "<>" & cEntry )
- brc = false
+ hTestLibraryListBox() = false
else
printlog( CFN & "Comparision succeeded:" & cEntry )
endif