mirror of
https://github.com/reactos/reactos.git
synced 2025-01-02 20:43:18 +00:00
[VBSCRIPT_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74854
This commit is contained in:
parent
43c14906aa
commit
126ab550af
1 changed files with 31 additions and 1 deletions
|
@ -325,6 +325,11 @@ end if
|
|||
while false
|
||||
wend
|
||||
|
||||
x = 0
|
||||
WHILE x < 3 : x = x + 1
|
||||
Wend
|
||||
Call ok(x = 3, "x not equal to 3")
|
||||
|
||||
x = false
|
||||
y = false
|
||||
do while not (x and y)
|
||||
|
@ -343,6 +348,11 @@ do while true
|
|||
ok false, "exit do didn't work"
|
||||
loop
|
||||
|
||||
x = 0
|
||||
Do While x < 2 : x = x + 1
|
||||
Loop
|
||||
Call ok(x = 2, "x not equal to 2")
|
||||
|
||||
x = false
|
||||
y = false
|
||||
do until x and y
|
||||
|
@ -361,6 +371,11 @@ do until false
|
|||
ok false, "exit do didn't work"
|
||||
loop
|
||||
|
||||
x = 0
|
||||
Do: :: x = x + 2
|
||||
Loop Until x = 4
|
||||
Call ok(x = 4, "x not equal to 4")
|
||||
|
||||
x = false
|
||||
do
|
||||
if x then exit do
|
||||
|
@ -368,6 +383,14 @@ do
|
|||
loop
|
||||
call ok(x, "x is false after do..loop?")
|
||||
|
||||
x = 0
|
||||
Do :If x = 6 Then
|
||||
Exit Do
|
||||
End If
|
||||
x = x + 3
|
||||
Loop
|
||||
Call ok(x = 6, "x not equal to 6")
|
||||
|
||||
x = false
|
||||
y = false
|
||||
do
|
||||
|
@ -451,6 +474,11 @@ for x = 5 to 8 step z
|
|||
next
|
||||
Call ok(y = "for7: 5 6 7 8", "y = " & y)
|
||||
|
||||
z = 0
|
||||
For x = 10 To 18 Step 2 : : z = z + 1
|
||||
Next
|
||||
Call ok(z = 5, "z not equal to 5")
|
||||
|
||||
y = "for8:"
|
||||
for x = 5 to 8
|
||||
y = y & " " & x
|
||||
|
@ -482,11 +510,13 @@ wend
|
|||
Call collectionObj.reset()
|
||||
y = 0
|
||||
x = 10
|
||||
for each x in collectionObj
|
||||
z = 0
|
||||
for each x in collectionObj : z = z + 2
|
||||
y = y+1
|
||||
Call ok(x = y, "x <> y")
|
||||
next
|
||||
Call ok(y = 3, "y = " & y)
|
||||
Call ok(z = 6, "z = " & z)
|
||||
Call ok(getVT(x) = "VT_EMPTY*", "getVT(x) = " & getVT(x))
|
||||
|
||||
Call collectionObj.reset()
|
||||
|
|
Loading…
Reference in a new issue