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
ecfa129d
Commit
ecfa129d
authored
Jul 09, 2009
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added String_anchor implementation.
parent
0a0731ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
string.c
dlls/jscript/string.c
+4
-2
api.js
dlls/jscript/tests/api.js
+13
-0
No files found.
dlls/jscript/string.c
View file @
ecfa129d
...
...
@@ -201,8 +201,10 @@ static HRESULT do_attribute_tag_format(DispatchEx *dispex, LCID lcid, WORD flags
static
HRESULT
String_anchor
(
DispatchEx
*
dispex
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
retv
,
jsexcept_t
*
ei
,
IServiceProvider
*
sp
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
static
const
WCHAR
fontW
[]
=
{
'A'
,
0
};
static
const
WCHAR
colorW
[]
=
{
'N'
,
'A'
,
'M'
,
'E'
,
0
};
return
do_attribute_tag_format
(
dispex
,
lcid
,
flags
,
dp
,
retv
,
ei
,
sp
,
fontW
,
colorW
);
}
static
HRESULT
String_big
(
DispatchEx
*
dispex
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
dp
,
...
...
dlls/jscript/tests/api.js
View file @
ecfa129d
...
...
@@ -269,6 +269,19 @@ ok(tmp === "TEST", "''.toUpperCase() = " + tmp);
tmp
=
"tEsT"
.
toUpperCase
(
3
);
ok
(
tmp
===
"TEST"
,
"''.toUpperCase(3) = "
+
tmp
);
tmp
=
""
.
anchor
();
ok
(
tmp
===
"<A NAME=
\"
undefined
\"
></A>"
,
"''.anchor() = "
+
tmp
);
tmp
=
""
.
anchor
(
3
);
ok
(
tmp
===
"<A NAME=
\"
3
\"
></A>"
,
"''.anchor(3) = "
+
tmp
);
tmp
=
""
.
anchor
(
"red"
);
ok
(
tmp
===
"<A NAME=
\"
red
\"
></A>"
,
"''.anchor('red') = "
+
tmp
);
tmp
=
"test"
.
anchor
();
ok
(
tmp
===
"<A NAME=
\"
undefined
\"
>test</A>"
,
"'test'.anchor() = "
+
tmp
);
tmp
=
"test"
.
anchor
(
3
);
ok
(
tmp
===
"<A NAME=
\"
3
\"
>test</A>"
,
"'test'.anchor(3) = "
+
tmp
);
tmp
=
"test"
.
anchor
(
"green"
);
ok
(
tmp
===
"<A NAME=
\"
green
\"
>test</A>"
,
"'test'.anchor('green') = "
+
tmp
);
tmp
=
""
.
big
();
ok
(
tmp
===
"<BIG></BIG>"
,
"''.big() = "
+
tmp
);
tmp
=
""
.
big
(
3
);
...
...
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