Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
aab8a1ba
Commit
aab8a1ba
authored
Dec 28, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Better syntax error tests.
parent
519c2889
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
api.js
dlls/jscript/tests/api.js
+14
-2
No files found.
dlls/jscript/tests/api.js
View file @
aab8a1ba
...
...
@@ -1954,9 +1954,21 @@ testException(function() {new VBArray(new VBArray(createArray()));}, "E_NOT_VBAR
testException
(
function
()
{
VBArray
.
prototype
.
lbound
.
call
(
new
Object
());},
"E_NOT_VBARRAY"
);
// SyntaxError tests
function
testSyntaxError
(
code
,
e
)
{
testException
(
function
()
{
eval
(
code
);
},
e
);
function
testSyntaxError
(
code
,
id
)
{
var
ex
=
exception_array
[
id
];
var
ret
=
""
,
num
=
""
;
try
{
eval
(
code
);
}
catch
(
e
)
{
ret
=
e
.
name
;
num
=
e
.
number
;
}
ok
(
ret
===
ex
.
type
,
"Syntax exception test, ret = "
+
ret
+
", expected "
+
ex
.
type
+
". Executed code: "
+
code
);
ok
(
num
===
ex
.
number
,
"Syntax exception test, num = "
+
num
+
", expected "
+
ex
.
number
+
". Executed code: "
+
code
);
}
testSyntaxError
(
"for(i=0;) {}"
,
"E_SYNTAX_ERROR"
);
testSyntaxError
(
"function {};"
,
"E_LBRACKET"
);
testSyntaxError
(
"if"
,
"E_LBRACKET"
);
...
...
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