Jacek Caban : mshtml.idl: Added IHTMLPerformance test.

Alexandre Julliard julliard at winehq.org
Wed Jun 13 16:10:52 CDT 2018


Module: wine
Branch: master
Commit: 8c48c632fc66c8420331ed9c14f7fd3764aa8a0d
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=8c48c632fc66c8420331ed9c14f7fd3764aa8a0d

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Wed Jun 13 14:23:55 2018 +0200

mshtml.idl: Added IHTMLPerformance test.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mshtml/tests/dom.c | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c
index b120b47..3f08a23 100644
--- a/dlls/mshtml/tests/dom.c
+++ b/dlls/mshtml/tests/dom.c
@@ -6742,6 +6742,7 @@ static void test_window(IHTMLDocument2 *doc)
 {
     IHTMLWindow2 *window, *window2, *self, *parent;
     IHTMLWindow5 *window5;
+    IHTMLWindow7 *window7;
     IHTMLDocument2 *doc2 = NULL;
     IDispatch *disp;
     IUnknown *unk;
@@ -6843,6 +6844,29 @@ static void test_window(IHTMLDocument2 *doc)
         win_skip("IHTMLWindow5 not supported!\n");
     }
 
+    hres = IHTMLWindow2_QueryInterface(window, &IID_IHTMLWindow7, (void**)&window7);
+    if(SUCCEEDED(hres)) {
+        IHTMLPerformance *performance;
+
+        ok(window7 != NULL, "window7 == NULL\n");
+
+        hres = IHTMLWindow7_get_performance(window7, &v);
+        todo_wine
+        ok(hres == S_OK, "get_performance failed: %08x\n", hres);
+        if(SUCCEEDED(hres)) {
+            ok(V_VT(&v) == VT_DISPATCH, "V_VT(performance) = %u\n", V_VT(&v));
+
+            hres = IDispatch_QueryInterface(V_DISPATCH(&v), &IID_IHTMLPerformance,
+                                            (void**)&performance);
+            ok(hres == S_OK, "Could not get IHTMLPerformance iface: %08x\n", hres);
+
+            IHTMLPerformance_Release(performance);
+            IHTMLWindow7_Release(window7);
+        }
+    }else {
+        win_skip("IHTMLWindow7 not supported\n");
+    }
+
     IHTMLWindow2_Release(window);
 }
 




More information about the wine-cvs mailing list