diff options
author | Joerg Skottke [jsk] <jsk@openoffice.org> | 2010-06-01 01:07:21 +0200 |
---|---|---|
committer | Joerg Skottke [jsk] <jsk@openoffice.org> | 2010-06-01 01:07:21 +0200 |
commit | b33e252b7b41d0359539f9c867806dfc7ca2cf20 (patch) | |
tree | 30b4123fb005f9e97b787a44ca393619f2406183 /testautomation/global/required | |
parent | 299817c665690a67391bfa3c163296e9fffdae02 (diff) |
findbar01: #i111912 - [Testautomation] Added calls to DialogTest()
Diffstat (limited to 'testautomation/global/required')
-rw-r--r-- | testautomation/global/required/includes/g_findbar.inc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/testautomation/global/required/includes/g_findbar.inc b/testautomation/global/required/includes/g_findbar.inc index b193da41f963..5e32b95b1b2d 100644 --- a/testautomation/global/required/includes/g_findbar.inc +++ b/testautomation/global/required/includes/g_findbar.inc @@ -63,6 +63,9 @@ testcase tUpdtFindBar() kontext "Active" if ( Active.exists( 1 ) ) then printlog( "Expected message: " & Active.getText() + call DialogTest( Active ) + + kontext "Active" Active.ok() else warnlog( "Messagebox missing <No matches found>" ) @@ -75,6 +78,9 @@ testcase tUpdtFindBar() kontext "Active" if ( Active.exists( 1 ) ) then printlog( "Expected message: " & Active.getText() + call DialogTest( Active ) + + kontext "Active" Active.ok() else warnlog( "Messagebox missing <No matches found>" ) @@ -85,7 +91,7 @@ testcase tUpdtFindBar() if ( SearchDialog.exists() ) then if ( SearchDialog.isVisible() ) then SearchDialog.click() - warnlog( "Button <Search Dialog> is visible" ) + warnlog( "Button <Search Dialog> is visible, it should be hidden by default" ) else printlog( "Button <Search Dialog> is hidden, good" ) endif @@ -101,6 +107,9 @@ testcase tUpdtFindBar() kontext "FindAndReplace" if ( FindAndReplace.exists( 1 ) ) then + call DialogTest( FindAndReplace ) + + kontext "FindAndReplace" if ( SearchFor.getSelText() = TEST_STRING ) then printlog( "Test string has been inserted into <SearchFor> Listbox. Good." ) else @@ -122,6 +131,8 @@ testcase tUpdtFindBar() endcase +'******************************************************************************* + function hToggleSearchDialog() printlog( "Make button <Search Dialog> visible via context menu" ) |