mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 09:50:52 +00:00
mshtml/tests: Add test for clearing timers with id zero.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a139d25189
commit
5a009e43f9
1 changed files with 10 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue