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
45b33347
Commit
45b33347
authored
Jan 29, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Fixed tests on some old jscript versions.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
34d59949
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
api.js
dlls/jscript/tests/api.js
+7
-3
No files found.
dlls/jscript/tests/api.js
View file @
45b33347
...
...
@@ -1780,7 +1780,6 @@ ok(isNaN(tmp), "Math.tan(-Infinity) is not NaN");
[[
NaN
],
"null"
],
[[
Infinity
],
"null"
],
[[
-
Infinity
],
"null"
],
[[
undefined
],
undefined
],
[[{
prop1
:
true
,
prop2
:
"string"
}],
"{
\"
prop1
\"
:true,
\"
prop2
\"
:
\"
string
\"
}"
],
[[{
prop1
:
true
,
prop2
:
testObj
,
prop3
:
undefined
}],
"{
\"
prop1
\"
:true}"
],
[[{
prop1
:
true
,
prop2
:
{
prop
:
"string"
}},
undefined
,
" "
],
...
...
@@ -1795,11 +1794,16 @@ ok(isNaN(tmp), "Math.tan(-Infinity) is not NaN");
for
(
i
=
0
;
i
<
stringify_tests
.
length
;
i
++
)
{
s
=
JSON
.
stringify
.
apply
(
null
,
stringify_tests
[
i
][
0
]);
ok
(
s
===
stringify_tests
[
i
][
1
],
"stringify("
+
stringify_tests
[
i
][
0
]
+
") returned "
+
s
+
" expected "
+
stringify_tests
[
i
][
1
]);
"
["
+
i
+
"]
stringify("
+
stringify_tests
[
i
][
0
]
+
") returned "
+
s
+
" expected "
+
stringify_tests
[
i
][
1
]);
}
s
=
JSON
.
stringify
(
testObj
);
ok
(
s
===
undefined
,
"stringify(testObj) returned "
+
s
);
ok
(
s
===
undefined
||
s
===
"undefined"
/* broken on some old versions */
,
"stringify(testObj) returned "
+
s
+
" expected undfined"
);
s
=
JSON
.
stringify
(
undefined
);
ok
(
s
===
undefined
||
s
===
"undefined"
/* broken on some old versions */
,
"stringify(undefined) returned "
+
s
+
" expected undfined"
);
var
parse_tests
=
[
[
"true"
,
true
],
...
...
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