summaryrefslogtreecommitdiff
path: root/testautomation/framework/tools/includes/formcontrols.inc
diff options
context:
space:
mode:
authorJoerg Skottke [jsk] <jsk@openoffice.org>2010-03-18 09:54:12 +0100
committerJoerg Skottke [jsk] <jsk@openoffice.org>2010-03-18 09:54:12 +0100
commit085789aaf5cc00a197c99efbc95adde1bef96869 (patch)
treeef5221205d43b12289e178e791196490b4dbb5a5 /testautomation/framework/tools/includes/formcontrols.inc
parent3ab6ec6d38dd373499c8dc23310ca32a4d5a2ba8 (diff)
vitomation01: #i109562 - Simplified formcontrols.inc - exit for-next on first success.
Diffstat (limited to 'testautomation/framework/tools/includes/formcontrols.inc')
-rwxr-xr-xtestautomation/framework/tools/includes/formcontrols.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/testautomation/framework/tools/includes/formcontrols.inc b/testautomation/framework/tools/includes/formcontrols.inc
index f0f2c2a63b76..11877273fcc2 100755
--- a/testautomation/framework/tools/includes/formcontrols.inc
+++ b/testautomation/framework/tools/includes/formcontrols.inc
@@ -783,8 +783,9 @@ function hSelectControl( iControl as integer ) as boolean
end select
-
- hUseAsyncSlot( "ContextProperties" )
+ ' We exit the loop as soon as the control is selected. Only then the slot
+ ' ContextProperties becomes available
+ if ( hUseAsyncSlot( "ContextProperties" ) <> -1 ) then exit for
'///+<li>Check that the ToolsCollectionBar is open</li>
'kontext "ToolsCollectionBar"