From a8dff20f2ea793eebba186919b9e3c8a384bb593 Mon Sep 17 00:00:00 2001 From: Andrew Nguyen Date: Sun, 30 Nov 2008 06:40:08 -0600 Subject: [PATCH] jscript: Implement the String.blink() method. --- dlls/jscript/string.c | 4 ++-- dlls/jscript/tests/api.js | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/dlls/jscript/string.c b/dlls/jscript/string.c index 4cfc082fb69..94f4733542c 100644 --- a/dlls/jscript/string.c +++ b/dlls/jscript/string.c @@ -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, VARIANT *retv, jsexcept_t *ei, IServiceProvider *sp) { - FIXME("\n"); - return E_NOTIMPL; + static const WCHAR blinktagW[] = {'B','L','I','N','K',0}; + 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, diff --git a/dlls/jscript/tests/api.js b/dlls/jscript/tests/api.js index e0d70256af7..7668509a88c 100644 --- a/dlls/jscript/tests/api.js +++ b/dlls/jscript/tests/api.js @@ -278,6 +278,15 @@ ok(tmp === "test", "'test'.big() = " + tmp); tmp = "test".big(3); ok(tmp === "test", "'test'.big(3) = " + tmp); +tmp = "".blink(); +ok(tmp === "", "''.blink() = " + tmp); +tmp = "".blink(3); +ok(tmp === "", "''.blink(3) = " + tmp); +tmp = "test".blink(); +ok(tmp === "test", "'test'.blink() = " + tmp); +tmp = "test".blink(3); +ok(tmp === "test", "'test'.blink(3) = " + tmp); + var arr = new Array(); ok(typeof(arr) === "object", "arr () is not object"); ok((arr.length === 0), "arr.length is not 0");