summaryrefslogtreecommitdiff
path: root/testautomation/framework
diff options
context:
space:
mode:
authorJoerg Skottke [jsk] <jsk@openoffice.org>2010-05-25 19:33:35 +0200
committerJoerg Skottke [jsk] <jsk@openoffice.org>2010-05-25 19:33:35 +0200
commit6bfb3c970edacf5230a0bf324204820ef474954f (patch)
tree91e4ee88f5a8e6533bf5b362b73e1534646ec168 /testautomation/framework
parent71776505ceef5878a06318e8f5e8bb159263a567 (diff)
vitomation01: #i109696 - Dramatically simplified test case, provided long missing function to select item in a list by name (which would work using the treelist function as well but looks rather awkward when called from within a test case - it is just the wrong control.
Diffstat (limited to 'testautomation/framework')
-rwxr-xr-xtestautomation/framework/optional/includes/basic_gridcontrol.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/testautomation/framework/optional/includes/basic_gridcontrol.inc b/testautomation/framework/optional/includes/basic_gridcontrol.inc
index 24102f770f4e..346e929b886d 100755
--- a/testautomation/framework/optional/includes/basic_gridcontrol.inc
+++ b/testautomation/framework/optional/includes/basic_gridcontrol.inc
@@ -61,11 +61,11 @@ testcase tGridcontrolLoad
hCloseDialog( ScriptSelector, "ok" )
printlog( "Probe for unexpected messagebox" )
-
- ' REM what is supposed to happen here?
- ' Wait for a messagebox and print an error no matter what?
- ' Very, very strange
-
+ kontext "Active"
+ if ( Active.exists( 5 ) ) then
+ warnlog( "Unexpected messagebox: " & Active.getText() )
+ Active.ok()
+ endif
else
warnlog( "The requested Macro could not be found: " & MACRO_NAME )
endif