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
c80a23c6
Commit
c80a23c6
authored
Nov 30, 2008
by
Andrew Nguyen
Committed by
Alexandre Julliard
Dec 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Implement the String.fixed() method.
parent
99f376dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
string.c
dlls/jscript/string.c
+2
-2
api.js
dlls/jscript/tests/api.js
+9
-0
No files found.
dlls/jscript/string.c
View file @
c80a23c6
...
...
@@ -329,8 +329,8 @@ static HRESULT String_concat(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARA
static
HRESULT
String_fixed
(
DispatchEx
*
dispex
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
retv
,
jsexcept_t
*
ei
,
IServiceProvider
*
sp
)
{
FIXME
(
"
\n
"
)
;
return
E_NOTIMPL
;
static
const
WCHAR
fixedtagW
[]
=
{
'T'
,
'T'
,
0
}
;
return
do_attributeless_tag_format
(
dispex
,
lcid
,
flags
,
dp
,
retv
,
ei
,
sp
,
fixedtagW
)
;
}
static
HRESULT
String_fontcolor
(
DispatchEx
*
dispex
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
dp
,
...
...
dlls/jscript/tests/api.js
View file @
c80a23c6
...
...
@@ -296,6 +296,15 @@ ok(tmp === "<B>test</B>", "'test'.bold() = " + tmp);
tmp
=
"test"
.
bold
(
3
);
ok
(
tmp
===
"<B>test</B>"
,
"'test'.bold(3) = "
+
tmp
);
tmp
=
""
.
fixed
();
ok
(
tmp
===
"<TT></TT>"
,
"''.fixed() = "
+
tmp
);
tmp
=
""
.
fixed
(
3
);
ok
(
tmp
===
"<TT></TT>"
,
"''.fixed(3) = "
+
tmp
);
tmp
=
"test"
.
fixed
();
ok
(
tmp
===
"<TT>test</TT>"
,
"'test'.fixed() = "
+
tmp
);
tmp
=
"test"
.
fixed
(
3
);
ok
(
tmp
===
"<TT>test</TT>"
,
"'test'.fixed(3) = "
+
tmp
);
var
arr
=
new
Array
();
ok
(
typeof
(
arr
)
===
"object"
,
"arr () is not object"
);
ok
((
arr
.
length
===
0
),
"arr.length is not 0"
);
...
...
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