From b6882966bcbcc73893102c87f591ac722c89e339 Mon Sep 17 00:00:00 2001 From: Qian Hong Date: Fri, 3 Oct 2014 05:19:00 +0800 Subject: [PATCH 5/5] jscript/tests: Added spaces tests for Date functions. To: wine-patches Reply-To: wine-devel Cc: Qian Hong --- dlls/jscript/tests/run.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dlls/jscript/tests/run.c b/dlls/jscript/tests/run.c index da60afa..9754aa1 100644 --- a/dlls/jscript/tests/run.c +++ b/dlls/jscript/tests/run.c @@ -2014,6 +2014,13 @@ static const struct spaces_test spaces_tests[] = { {"var a = Math.abs(\" -3.14 \");\ ok(a == 3.14, \"Number returned \"+a);\ reportSuccess();", S_OK}, + {"var a = new Date(\" 100 \");\ + var y = a.getFullYear();\ + ok(isNaN(y), \"Date returned \"+y);\ + reportSuccess();", S_OK}, + {"var a = Date.parse(\" 1970 \");\ + ok(isNaN(a), \"Date.parse returned \"+a);\ + reportSuccess();", S_OK}, {{0}} }; -- 1.9.1