summaryrefslogtreecommitdiffstats
path: root/testautomation/global/input
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2010-05-11 11:26:34 +0200
committerIvo Hinkelmann <ihi@openoffice.org>2010-05-11 11:26:34 +0200
commitb565fa46ee035651fe1072f1aea2c2ccdd10982d (patch)
tree0a3eb39145c7a71b1facaf193f9ffc3be7dc03fd /testautomation/global/input
parentCWS-TOOLING: integrate CWS impress188 (diff)
parentvitomation01: #i109562 - Add inport to .bas file, modified test case for even... (diff)
downloadcore-b565fa46ee035651fe1072f1aea2c2ccdd10982d.tar.gz
core-b565fa46ee035651fe1072f1aea2c2ccdd10982d.zip
CWS-TOOLING: integrate CWS npower14miscfixes
Diffstat (limited to 'testautomation/global/input')
-rwxr-xr-xtestautomation/global/input/macros.txt45
1 files changed, 45 insertions, 0 deletions
diff --git a/testautomation/global/input/macros.txt b/testautomation/global/input/macros.txt
index ffe95be431e3..e0423fec3858 100755
--- a/testautomation/global/input/macros.txt
+++ b/testautomation/global/input/macros.txt
@@ -279,3 +279,48 @@ Sub Main
' Uncommenting this should result in an error "Invalid procedure call"
oInstanceErr1 = oSingleton.get( 42 )
End Sub
+
+# ---------------------------------------------------------------------------- #
+
+[i106744-1]
+sub main
+ msgbox test1()
+end sub
+
+Function test1() As String
+
+ Dim foo As String : foo = "astring"
+
+ On Error Resume Next
+ test1 = "GOT ERROR"
+ If IsEmpty(foo) Then
+ test1 = "EMPTY"
+ Else
+ test1 = "NOT EMPTY"
+ End If
+
+End Function
+
+# ---------------------------------------------------------------------------- #
+
+[i106744-2]
+option VBASupport 1
+
+sub main
+ msgbox test1()
+end sub
+
+Function test1() As String
+
+ Dim foo As String : foo = "astring"
+
+ On Error Resume Next
+ test1 = "GOT ERROR"
+ If IsEmpty(foo) Then
+ test1 = "EMPTY"
+ Else
+ test1 = "NOT EMPTY"
+ End If
+
+End Function
+