Gabriel Ivăncescu : mshtml/tests: Add test for clearing timers with id zero.

Alexandre Julliard julliard at winehq.org
Fri May 20 15:26:48 CDT 2022


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

Author: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Date:   Thu May 19 21:06:38 2022 +0300

mshtml/tests: Add test for clearing timers with id zero.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mshtml/tests/events.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/dlls/mshtml/tests/events.c b/dlls/mshtml/tests/events.c
index 4ceee799dd4..95ed071bf78 100644
--- a/dlls/mshtml/tests/events.c
+++ b/dlls/mshtml/tests/events.c
@@ -2550,6 +2550,9 @@ static void test_timeout(IHTMLDocument2 *doc)
     ok(hres == S_OK, "setTimeout failed: %08lx\n", hres);
     ok(id, "id = 0\n");
 
+    hres = IHTMLWindow2_clearTimeout(window, 0);
+    ok(hres == S_OK, "clearTimeout failed: %08lx\n", hres);
+
     SET_EXPECT(timeout);
     pump_msgs(&called_timeout);
     CHECK_CALLED(timeout);
@@ -2581,6 +2584,13 @@ static void test_timeout(IHTMLDocument2 *doc)
     pump_msgs(&called_timeout);
     CHECK_CALLED(timeout);
 
+    hres = IHTMLWindow2_clearInterval(window, 0);
+    ok(hres == S_OK, "clearInterval failed: %08lx\n", hres);
+
+    SET_EXPECT(timeout);
+    pump_msgs(&called_timeout);
+    CHECK_CALLED(timeout);
+
     hres = IHTMLWindow2_clearInterval(window, id);
     ok(hres == S_OK, "clearTimeout failer: %08lx\n", hres);
 




More information about the wine-cvs mailing list