Commit 5a009e43 authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

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

parent a139d251
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment