Author: akhaldi
Date: Sun Sep 17 22:54:31 2017
New Revision: 75883
URL:
http://svn.reactos.org/svn/reactos?rev=75883&view=rev
Log:
[JSCRIPT_WINETEST] Sync with Wine Staging 2.16. CORE-13762
Modified:
trunk/rostests/winetests/jscript/run.c
Modified: trunk/rostests/winetests/jscript/run.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/jscript/run.c?r…
==============================================================================
--- trunk/rostests/winetests/jscript/run.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/jscript/run.c [iso-8859-1] Sun Sep 17 22:54:31 2017
@@ -1322,7 +1322,7 @@
return S_OK;
case DISPID_GLOBAL_TESTARGTYPES: {
- VARIANT args[6], v;
+ VARIANT args[7], v;
DISPPARAMS dp = {args, NULL, sizeof(args)/sizeof(*args), 0};
HRESULT hres;
@@ -1362,6 +1362,8 @@
V_UI4(args+4) = 0xffffffff;
V_VT(args+5) = VT_BYREF|VT_VARIANT;
V_VARIANTREF(args+5) = &v;
+ V_VT(args+6) = VT_R4;
+ V_R4(args+6) = 0.5;
V_VT(&v) = VT_I4;
V_I4(&v) = 2;
hres = IDispatch_Invoke(V_DISPATCH(pdp->rgvarg), DISPID_VALUE, &IID_NULL,
0, DISPATCH_METHOD, &dp, NULL, NULL, NULL);
@@ -2651,7 +2653,8 @@
CHECK_CALLED(global_propargput_i);
SET_EXPECT(global_testargtypes_i);
- parse_script_a("testArgTypes(dispUnk, intProp(), intProp, getShort(), shortProp,
function(i4ref,ui4,nullunk,d,i,s) {"
+ parse_script_a("testArgTypes(dispUnk, intProp(), intProp, getShort(),
shortProp,"
+ "function(r4,i4ref,ui4,nullunk,d,i,s) {"
" ok(getVT(i) === 'VT_I4', 'getVT(i) = ' +
getVT(i));"
" ok(getVT(s) === 'VT_I4', 'getVT(s) = ' +
getVT(s));"
" ok(getVT(d) === 'VT_DISPATCH', 'getVT(d) = '
+ getVT(d));"
@@ -2661,6 +2664,8 @@
" ok(ui4 > 0, 'ui4 = ' + ui4);"
" ok(getVT(i4ref) === 'VT_I4', 'getVT(i4ref) =
' + getVT(i4ref));"
" ok(i4ref === 2, 'i4ref = ' + i4ref);"
+ " ok(r4 === 0.5, 'r4 = ' + r4);"
+ " ok(getVT(r4) === 'VT_R8', 'getVT(r4) = ' +
getVT(r4));"
"});");
CHECK_CALLED(global_testargtypes_i);