testrunner: focus & blur events could fail if the window isn't focused