diff --git a/dlls/shell32/tests/ebrowser.c b/dlls/shell32/tests/ebrowser.c index 8fa8b9ad09..60472a4da3 100644 --- a/dlls/shell32/tests/ebrowser.c +++ b/dlls/shell32/tests/ebrowser.c @@ -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);