JDF-515 Refined the test for mobile device detection.

Added orientation and landscape mode tests with different viewport sizes.