test view orientation.