shell32/tests: Add some event tests to ExplorerBrowser tests.

This commit is contained in:
David Hedberg 2010-08-24 10:56:24 +02:00 committed by Alexandre Julliard
parent ab63bc0515
commit b2a8de3de6
1 changed files with 15 additions and 0 deletions

View File

@ -631,6 +631,11 @@ static void test_Advise(void)
ok(ebev.ref == 10, "Got %d\n", ebev.ref);
ebev.completed = 0;
ebrowser_browse_to_desktop(peb);
process_msgs();
ok(ebev.completed == 10, "Got %d\n", ebev.completed);
/* Remove a bunch somewhere in the middle */
for(i = 4; i < 8; i++)
{
@ -638,6 +643,11 @@ static void test_Advise(void)
ok(hr == S_OK, "got (0x%08x)\n", hr);
}
ebev.completed = 0;
ebrowser_browse_to_desktop(peb);
process_msgs();
ok(ebev.completed == 6, "Got %d\n", ebev.completed);
if(0)
{
/* Using unadvise with a previously unadvised cookie results
@ -657,6 +667,11 @@ static void test_Advise(void)
ok(ebev.ref == 0, "Got %d\n", ebev.ref);
ebev.completed = 0;
ebrowser_browse_to_desktop(peb);
process_msgs();
ok(ebev.completed == 0, "Got %d\n", ebev.completed);
/* ::Destroy implies ::Unadvise. */
hr = IExplorerBrowser_Advise(peb, pebe, &cookies[0]);
ok(hr == S_OK, "Got 0x%08x\n", hr);