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
3412e22e
Commit
3412e22e
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_link implementation.
parent
ecfa129d
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 @
3412e22e
...
...
@@ -486,8 +486,10 @@ static HRESULT String_lastIndexOf(DispatchEx *dispex, LCID lcid, WORD flags, DIS
static
HRESULT
String_link
(
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
[]
=
{
'H'
,
'R'
,
'E'
,
'F'
,
0
};
return
do_attribute_tag_format
(
dispex
,
lcid
,
flags
,
dp
,
retv
,
ei
,
sp
,
fontW
,
colorW
);
}
/* ECMA-262 3rd Edition 15.5.4.10 */
...
...
dlls/jscript/tests/api.js
View file @
3412e22e
...
...
@@ -356,6 +356,19 @@ ok(tmp === "<I>test</I>", "'test'.italics() = " + tmp);
tmp
=
"test"
.
italics
(
3
);
ok
(
tmp
===
"<I>test</I>"
,
"'test'.italics(3) = "
+
tmp
);
tmp
=
""
.
link
();
ok
(
tmp
===
"<A HREF=
\"
undefined
\"
></A>"
,
"''.link() = "
+
tmp
);
tmp
=
""
.
link
(
3
);
ok
(
tmp
===
"<A HREF=
\"
3
\"
></A>"
,
"''.link(3) = "
+
tmp
);
tmp
=
""
.
link
(
"red"
);
ok
(
tmp
===
"<A HREF=
\"
red
\"
></A>"
,
"''.link('red') = "
+
tmp
);
tmp
=
"test"
.
link
();
ok
(
tmp
===
"<A HREF=
\"
undefined
\"
>test</A>"
,
"'test'.link() = "
+
tmp
);
tmp
=
"test"
.
link
(
3
);
ok
(
tmp
===
"<A HREF=
\"
3
\"
>test</A>"
,
"'test'.link(3) = "
+
tmp
);
tmp
=
"test"
.
link
(
"green"
);
ok
(
tmp
===
"<A HREF=
\"
green
\"
>test</A>"
,
"'test'.link('green') = "
+
tmp
);
tmp
=
""
.
small
();
ok
(
tmp
===
"<SMALL></SMALL>"
,
"''.small() = "
+
tmp
);
tmp
=
""
.
small
(
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