jscript: Implement the String.blink() method.
This commit is contained in:
parent
dd23e5b19c
commit
a8dff20f2e
|
@ -167,8 +167,8 @@ static HRESULT String_big(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS
|
||||||
static HRESULT String_blink(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS *dp,
|
static HRESULT String_blink(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 blinktagW[] = {'B','L','I','N','K',0};
|
||||||
return E_NOTIMPL;
|
return do_attributeless_tag_format(dispex, lcid, flags, dp, retv, ei, sp, blinktagW);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT String_bold(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS *dp,
|
static HRESULT String_bold(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS *dp,
|
||||||
|
|
|
@ -278,6 +278,15 @@ ok(tmp === "<BIG>test</BIG>", "'test'.big() = " + tmp);
|
||||||
tmp = "test".big(3);
|
tmp = "test".big(3);
|
||||||
ok(tmp === "<BIG>test</BIG>", "'test'.big(3) = " + tmp);
|
ok(tmp === "<BIG>test</BIG>", "'test'.big(3) = " + tmp);
|
||||||
|
|
||||||
|
tmp = "".blink();
|
||||||
|
ok(tmp === "<BLINK></BLINK>", "''.blink() = " + tmp);
|
||||||
|
tmp = "".blink(3);
|
||||||
|
ok(tmp === "<BLINK></BLINK>", "''.blink(3) = " + tmp);
|
||||||
|
tmp = "test".blink();
|
||||||
|
ok(tmp === "<BLINK>test</BLINK>", "'test'.blink() = " + tmp);
|
||||||
|
tmp = "test".blink(3);
|
||||||
|
ok(tmp === "<BLINK>test</BLINK>", "'test'.blink(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