Jacek Caban (@jacek) commented about dlls/mshtml/tests/script.c:
- }
- (*expect)[idx] = TRUE, (*called)[idx] = FALSE;
- do {
while(!(*called)[idx] && GetMessageW(&msg, NULL, 0, 0)) {
TranslateMessage(&msg);
DispatchMessageW(&msg);
}
- } while(*++expect && *++called);
- CLEAR_CALLED(doc_onstorage[0]);
- CLEAR_CALLED(doc_onstoragecommit[0]);
- CLEAR_CALLED(window_onstorage[0]);
- CLEAR_CALLED(doc_onstorage[1]);
- CLEAR_CALLED(doc_onstoragecommit[1]);
- CLEAR_CALLED(window_onstorage[1]);
+}
Please find a way to avoid things like that, I'm sure it's possible a cleaner solution. If you want event tests in C, there are tools for that in events.c.