jscript: Implement the String.italics() method.
This commit is contained in:
parent
c80a23c639
commit
edba282951
|
@ -418,8 +418,8 @@ static HRESULT String_indexOf(DispatchEx *dispex, LCID lcid, WORD flags, DISPPAR
|
|||
static HRESULT String_italics(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS *dp,
|
||||
VARIANT *retv, jsexcept_t *ei, IServiceProvider *sp)
|
||||
{
|
||||
FIXME("\n");
|
||||
return E_NOTIMPL;
|
||||
static const WCHAR italicstagW[] = {'I',0};
|
||||
return do_attributeless_tag_format(dispex, lcid, flags, dp, retv, ei, sp, italicstagW);
|
||||
}
|
||||
|
||||
static HRESULT String_lastIndexOf(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS *dp,
|
||||
|
|
|
@ -305,6 +305,15 @@ ok(tmp === "<TT>test</TT>", "'test'.fixed() = " + tmp);
|
|||
tmp = "test".fixed(3);
|
||||
ok(tmp === "<TT>test</TT>", "'test'.fixed(3) = " + tmp);
|
||||
|
||||
tmp = "".italics();
|
||||
ok(tmp === "<I></I>", "''.italics() = " + tmp);
|
||||
tmp = "".italics(3);
|
||||
ok(tmp === "<I></I>", "''.italics(3) = " + tmp);
|
||||
tmp = "test".italics();
|
||||
ok(tmp === "<I>test</I>", "'test'.italics() = " + tmp);
|
||||
tmp = "test".italics(3);
|
||||
ok(tmp === "<I>test</I>", "'test'.italics(3) = " + tmp);
|
||||
|
||||
var arr = new Array();
|
||||
ok(typeof(arr) === "object", "arr () is not object");
|
||||
ok((arr.length === 0), "arr.length is not 0");
|
||||
|
|
Loading…
Reference in New Issue