Jacek Caban (@jacek) commented about dlls/mshtml/tests/script.c:
static IDispatchEx scriptDisp = { &scriptDispVtbl };
+static BOOL testHostContextDisp_expect;
I think it would be better to have two separated test functions: one expecting 'this' argument and one not expecting it and get rid of this global value.