Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d7fd00fd
Commit
d7fd00fd
authored
Dec 28, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added more control flow tests.
parent
8f8c8528
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
0 deletions
+58
-0
lang.js
dlls/jscript/tests/lang.js
+58
-0
No files found.
dlls/jscript/tests/lang.js
View file @
d7fd00fd
...
...
@@ -839,6 +839,64 @@ for(tmp in obj1.nonexistent)
ok
(
false
,
"for(tmp in obj1.nonexistent) called with tmp = "
+
tmp
);
ok
(
!
(
"nonexistent"
in
obj1
),
"nonexistent added to obj1 by for..in loop"
);
var
i
,
j
;
tmp
=
""
;
i
=
0
;
while
(
true
)
{
tmp
+=
"1"
;
for
(
i
=
1
;
i
<
3
;
i
++
)
{
switch
(
i
)
{
case
1
:
tmp
+=
"2"
;
continue
;
case
2
:
tmp
+=
"3"
;
try
{
throw
null
;
}
finally
{
tmp
+=
"4"
;
break
;
}
default
:
ok
(
false
,
"unexpected state"
);
}
tmp
+=
"5"
;
}
with
({
prop
:
"6"
})
{
tmp
+=
prop
;
break
;
}
}
ok
(
tmp
===
"123456"
,
"tmp = "
+
tmp
);
tmp
=
""
;
i
=
0
;
for
(
j
in
[
1
,
2
,
3
])
{
tmp
+=
"1"
;
for
(;;)
{
with
({
prop
:
"2"
})
{
tmp
+=
prop
;
try
{
throw
"3"
;
}
catch
(
e
)
{
tmp
+=
e
;
with
([
0
])
break
;
}
}
ok
(
false
,
"unexpected state"
);
}
while
(
true
)
{
tmp
+=
"4"
;
break
;
}
break
;
}
ok
(
tmp
===
"1234"
,
"tmp = "
+
tmp
);
ok
((
void
1
)
===
undefined
,
"(void 1) !== undefined"
);
var
inobj
=
new
Object
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment