Many tests using injected events are flaky using Qt 5.1. It appears to happen if a previous test opens another window making that window active, which results in the main-window not being active when the next test is started.
Created attachment 210617 [details] Patch
Comment on attachment 210617 [details] Patch Clearing flags on attachment: 210617 Committed r155182: <http://trac.webkit.org/changeset/155182>
All reviewed patches have been landed. Closing bug.