jscript: Implement the String.strike() method.
This commit is contained in:
parent
424a3f3ffe
commit
bbac6de702
|
@ -997,8 +997,8 @@ static HRESULT String_split(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAM
|
||||||
static HRESULT String_strike(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS *dp,
|
static HRESULT String_strike(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS *dp,
|
||||||
VARIANT *retv, jsexcept_t *ei, IServiceProvider *sp)
|
VARIANT *retv, jsexcept_t *ei, IServiceProvider *sp)
|
||||||
{
|
{
|
||||||
FIXME("\n");
|
static const WCHAR striketagW[] = {'S','T','R','I','K','E',0};
|
||||||
return E_NOTIMPL;
|
return do_attributeless_tag_format(dispex, lcid, flags, dp, retv, ei, sp, striketagW);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT String_sub(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS *dp,
|
static HRESULT String_sub(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS *dp,
|
||||||
|
|
|
@ -323,6 +323,15 @@ ok(tmp === "<SMALL>test</SMALL>", "'test'.small() = " + tmp);
|
||||||
tmp = "test".small(3);
|
tmp = "test".small(3);
|
||||||
ok(tmp === "<SMALL>test</SMALL>", "'test'.small(3) = " + tmp);
|
ok(tmp === "<SMALL>test</SMALL>", "'test'.small(3) = " + tmp);
|
||||||
|
|
||||||
|
tmp = "".strike();
|
||||||
|
ok(tmp === "<STRIKE></STRIKE>", "''.strike() = " + tmp);
|
||||||
|
tmp = "".strike(3);
|
||||||
|
ok(tmp === "<STRIKE></STRIKE>", "''.strike(3) = " + tmp);
|
||||||
|
tmp = "test".strike();
|
||||||
|
ok(tmp === "<STRIKE>test</STRIKE>", "'test'.strike() = " + tmp);
|
||||||
|
tmp = "test".strike(3);
|
||||||
|
ok(tmp === "<STRIKE>test</STRIKE>", "'test'.strike(3) = " + tmp);
|
||||||
|
|
||||||
var arr = new Array();
|
var arr = new Array();
|
||||||
ok(typeof(arr) === "object", "arr () is not object");
|
ok(typeof(arr) === "object", "arr () is not object");
|
||||||
ok((arr.length === 0), "arr.length is not 0");
|
ok((arr.length === 0), "arr.length is not 0");
|
||||||
|
|
Loading…
Reference in New Issue