summaryrefslogtreecommitdiff
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
parente0a8d76ccbf103a75d4884bc12914dca7ae22b6a (diff)
parente6a9b63b6cea4d65e76af484b6206570f836f8ec (diff)
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
+