Jacek Caban : jscript: Added accessing not existing property on IDispatchEx tests.

Alexandre Julliard julliard at winehq.org
Thu Jun 12 15:51:43 CDT 2014


Module: wine
Branch: master
Commit: cbe63d977c8e90a0d384a944f54410874ad6ac67
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cbe63d977c8e90a0d384a944f54410874ad6ac67

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Jun 12 10:44:03 2014 +0200

jscript: Added accessing not existing property on IDispatchEx tests.

---

 dlls/jscript/tests/run.c |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/dlls/jscript/tests/run.c b/dlls/jscript/tests/run.c
index dbd9b6b..f6d600a 100644
--- a/dlls/jscript/tests/run.c
+++ b/dlls/jscript/tests/run.c
@@ -101,6 +101,7 @@ DEFINE_EXPECT(testobj_withprop_i);
 DEFINE_EXPECT(testobj_noprop_d);
 DEFINE_EXPECT(testobj_onlydispid_d);
 DEFINE_EXPECT(testobj_onlydispid_i);
+DEFINE_EXPECT(testobj_notexists_d);
 DEFINE_EXPECT(GetItemInfo_testVal);
 DEFINE_EXPECT(ActiveScriptSite_OnScriptError);
 DEFINE_EXPECT(invoke_func);
@@ -327,6 +328,11 @@ static HRESULT WINAPI testObj_GetDispID(IDispatchEx *iface, BSTR bstrName, DWORD
         *pid = DISPID_TESTOBJ_ONLYDISPID;
         return S_OK;
     }
+    if(!strcmp_wa(bstrName, "notExists")) {
+        CHECK_EXPECT(testobj_notexists_d);
+        test_grfdex(grfdex, fdexNameCaseSensitive);
+        return DISP_E_UNKNOWNNAME;
+    }
 
     ok(0, "unexpected name %s\n", wine_dbgstr_w(bstrName));
     return E_NOTIMPL;
@@ -2055,6 +2061,10 @@ static BOOL run_tests(void)
     parse_script_a("var notExists; notExists = 1;");
     CHECK_CALLED(global_notexists_d);
 
+    SET_EXPECT(testobj_notexists_d);
+    parse_script_a("testObj.notExists;");
+    CHECK_CALLED(testobj_notexists_d);
+
     parse_script_a("function f() { var testPropGet; }");
     parse_script_a("(function () { var testPropGet; })();");
     parse_script_a("(function () { eval('var testPropGet;'); })();");




More information about the wine-cvs mailing list