test for deviceorientation