As the summary says, WMLTestCase.js needs some love. It depends on timing hacks at the moment, which can be easily resolved. Attaching a patch soon.
Created attachment 32123 [details] Initial patch
I agree with george, the cleanup looks fine...
Landed in r45439.