Does this test run in WSH? I think I implemented the timeout emulation code correctly and supported clearTimeout, but you may wanna check.