another try to make the tests work
use resize event to tell fire the orientation event in case there is no browser support