Add checkHeight() tests to window events