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
e4bc0def
Commit
e4bc0def
authored
May 24, 2009
by
Piotr Caban
Committed by
Alexandre Julliard
May 25, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added Math_SQRT1_2 implementations and tests.
parent
27f327ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
math.c
dlls/jscript/math.c
+2
-2
api.js
dlls/jscript/tests/api.js
+5
-0
No files found.
dlls/jscript/math.c
View file @
e4bc0def
...
...
@@ -127,8 +127,8 @@ static HRESULT Math_SQRT2(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS
static
HRESULT
Math_SQRT1_2
(
DispatchEx
*
dispex
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
retv
,
jsexcept_t
*
ei
,
IServiceProvider
*
sp
)
{
FIXM
E
(
"
\n
"
);
return
E_NOTIMPL
;
TRAC
E
(
"
\n
"
);
return
math_constant
(
M_SQRT1_2
,
flags
,
retv
)
;
}
/* ECMA-262 3rd Edition 15.8.2.12 */
...
...
dlls/jscript/tests/api.js
View file @
e4bc0def
...
...
@@ -680,4 +680,9 @@ ok(Math.floor(Math.SQRT2*100) === 141, "Math.SQRT2 = " + Math.SQRT2);
Math
.
SQRT2
=
"test"
;
ok
(
Math
.
floor
(
Math
.
SQRT2
*
100
)
===
141
,
"modified Math.SQRT2 = "
+
Math
.
SQRT2
);
ok
(
typeof
(
Math
.
SQRT1_2
)
===
"number"
,
"typeof(Math.SQRT1_2) = "
+
typeof
(
Math
.
SQRT1_2
));
ok
(
Math
.
floor
(
Math
.
SQRT1_2
*
100
)
===
70
,
"Math.SQRT1_2 = "
+
Math
.
SQRT1_2
);
Math
.
SQRT1_2
=
"test"
;
ok
(
Math
.
floor
(
Math
.
SQRT1_2
*
100
)
===
70
,
"modified Math.SQRT1_2 = "
+
Math
.
SQRT1_2
);
reportSuccess
();
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