diff options
author | Joerg Skottke [jsk] <jsk@openoffice.org> | 2010-05-10 16:20:34 +0200 |
---|---|---|
committer | Joerg Skottke [jsk] <jsk@openoffice.org> | 2010-05-10 16:20:34 +0200 |
commit | e3fa835e49b602a7c12819e26beebbe951b2bd28 (patch) | |
tree | c2f5a41e539c66ca2b43418d4f025311d85897ff | |
parent | 973873e8ba146da7a0beaec84c0b1648b49a0e51 (diff) |
vitomation01: #i109562 - Removed undeclared identifier brc and irc
-rwxr-xr-x | testautomation/framework/optional/includes/basic_documents.inc | 15 |
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 |